Hi , I want to get all the traces and logs collect...
# support
p
Hi , I want to get all the traces and logs collected by signoz and traces spans using APIs. what would be the right way of doing it? Is it possible to use otel python client? How do i use trace apis correctly? i want to get filter similar way i am doing in UI as below. Focusing on selected span where there is an error. Anyone can please help
a
Yes, you can use the OpenTelemetry (OTel) Python client to collect and send traces to SigNoz. Additionally, you can query the SigNoz trace data using its Query APIs to filter traces based on errors and other attributes.
p
Thanks for your response @AbdulSalaam Noibi I am interested in this one Additionally, you can query the SigNoz trace data using its Query APIs to filter traces based on errors and other attributes. i have few questions below: 1. Is this available only on signoz cloud? 2. Do we have any documentation for using query apis? 3. I am struggling a little to get the correct data using APIs(May be because I am new )
a
No, the Query API is available in both SigNoz Cloud (hosted version) and Self-hosted SigNoz (on-prem or local setup) If you're running a self-hosted version, ensure that SigNoz Query Service is accessible. There's actually an official SigNoz documentation that covers the Query API in detail: https://signoz.io/api-reference/#/ To get your correct data, ensure your API endpoint "http://localhost:3301/api/v1/query" is correct. You can also set your Content-Type to application/json to get the correct data. I hope this helps
p
Thanks @AbdulSalaam Noibi I will check
n
Hey @pratik dave were you able to resolve the issue?