Trace Testing with SigNoz and Otel in Kubernetes

TLDR Pradeep asks about trace testing using SigNoz as a backend. vishal-signoz requests examples of desired testing. Pradeep shares code snippets but has not received a solution yet.

Photo of Pradeep
Pradeep
Mon, 22 May 2023 07:27:57 UTC

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.

Photo of Prashant
Prashant
Mon, 22 May 2023 09:50:21 UTC

cc vishal-signoz

Photo of vishal-signoz
vishal-signoz
Mon, 22 May 2023 10:15:58 UTC

What kind of testing do you want to enable using traces? Can you please give me some examples?

Photo of Pradeep
Pradeep
Mon, 22 May 2023 10:20:31 UTC

Okay Below screenshot I am getting users from my microservice My tracetest definition file is ```type: Test spec: name: Go Get users description: "Get users" trigger: type: http httpRequest: url: 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'```

Photo of Pradeep
Pradeep
Mon, 22 May 2023 10:21:10 UTC

I am getting an error like

Photo of Pradeep
Pradeep
Mon, 22 May 2023 10:24:05 UTC

I added tracetest exporter in helm chart config to collector file. helm template --debug . my config looks like and in pipeline ``` traces/1: exporters: - otlp/1 processors: - batch receivers: - otlp```

Photo of Pradeep
Pradeep
Mon, 22 May 2023 10:31:58 UTC

Golang repo with instrumentation