Trace Testing with SigNoz and Otel in Kubernetes
TLDR Pradeep asks about trace testing using SigNoz as a backend. Vishal requests examples of desired testing. Pradeep shares code snippets but has not received a solution yet.
May 22, 2023 (1 week ago)
Pradeep
07:27 AMCan 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.
Prashant
09:50 AMVishal
10:15 AMPradeep
10:20 AMBelow 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'
Pradeep
10:21 AMPradeep
10:24 AMhelm template --debug .
my config looks like
and in pipeline
traces/1:
exporters:
- otlp/1
processors:
- batch
receivers:
- otlp
SigNoz Community
Similar Threads
Configuring SigNoz with Istio Traces and Service Monitors
Zakaria asked about integrating SigNoz with istio traces and Prometheus service monitors. Srikanth suggested using OpenTelemetry operator and provided guidance for troubleshooting and solving configuration issues in the process.
Troubleshooting Signoz Dashboard Not Showing Traces
prasanth encountered issues with Signoz dashboard not displaying traces. Srikanth recommended configuring the `OTEL_EXPORTER_OTLP_ENDPOINT`, but they are still facing issues with the exporter's connection.
Troubleshooting SigNoz Auto-Instrumentation Configuration
igor is having trouble configuring auto-instrumentation for Java applications using SigNoz, with traces not appearing in the SigNoz UI. Prashant advises to check logs of the otel sidecar, use service name for endpoint, verify supported libraries, and test with telemetrygen. However, the issue still persists.
SigNoz Support for K8s Kubelet Logs and Traces
stefan inquires about SigNoz supporting k8s kubelet logs and traces. Prashant confirms they don't collect kubelet and API server traces yet and suggests creating an issue for it.
Troubleshooting SigNoz Deployment on Kubernetes Cluster
Rasheedat deployed SigNoz on a cluster but only received logs. Vishal suggested installing a sample app and following the troubleshooting guide.