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
AbdulSalaam Noibi
03/31/2025, 11:02 AM
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
pratik dave
04/01/2025, 4:15 AM
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
AbdulSalaam Noibi
04/01/2025, 8:46 PM
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
pratik dave
04/04/2025, 2:13 AM
Thanks @AbdulSalaam Noibi I will check
n
Nagesh Bansal
04/08/2025, 6:46 PM
Hey @pratik dave were you able to resolve the issue?
SigNoz is an open-source APM. It helps developers monitor their applications & troubleshoot problems, an open-source alternative to DataDog, NewRelic, etc.