Hi Can we do trace testing using signoz as backend...
# support
p
Hi Can we do trace testing using signoz as backend ? or is there any other way to do trace testing after setting up signoz with otel ? I deployed signoz using helm chart on my kubernetes cluster and I can able to see the traces.
p
cc @Vishal Sharma
v
What kind of testing do you want to enable using traces? Can you please give me some examples?
p
Okay Below screenshot I am getting users from my microservice My tracetest definition file is
Copy code
type: Test
spec:
  name: Go Get users
  description: "Get users"
  trigger:
    type: http
    httpRequest:
      url: <http://go-service.default.svc.cluster.local:6000/users>
      method: GET
      headers:
      - key: Content-Type
        value: application/json
  specs:
    - selector: span[name = "GET /users"]
      assertions:
        - attr:tracetest.span.duration <= 500ms
        - attr:http.status_code = 200
  outputs:
    - name: USER_ID
      selector: span[name = "GET /users"]
      value: attr:http.response.body | json_path '.id'
I am getting an error like
I added tracetest exporter in helm chart config to collector file. helm template --debug . my config looks like and in pipeline
Copy code
traces/1:
          exporters:
          - otlp/1
          processors:
          - batch
          receivers:
          - otlp
https://github.com/MrAzharuddin/go-backend Golang repo with instrumentation
Do we have any idea on this ?
v
Trace test supports otel exporter. This issue doesn’t seems to relate to SigNoz. Please open an issue with tracetest github: https://github.com/kubeshop/tracetest