TLDR Snehanshu is experiencing an issue with the Signoz tracer on a Python FastAPI application which involves a large number of irrelevant spans. vishal-signoz suggested verifying the relevance of these spans and questioned about the type of instrumentation used by Snehanshu.
How many spans are there? The community edition supports upto 10k spans in a single trace. The enterprise plan has a feature which allows upto 100k spans in a single trace.
vishal-signoz 2998 spans coming up. However i have attached traces only to few methods. These many spans showing up when jpype is used. Other cases only the required number of spans show up. Is it normal behaviour or something is wrong from my code end?
Can you check if the spans are relevant?
No they are not relevant. they have time spans of 0.01 microseconds.
Our enterprise customers do have thousands of spans so depends on your system.
Outside of the main span which is actually required.
Are they duplicates? Can you their name and attributes?
If you see this screenshot, the upload span is the only required span, however the POST/ ones are in huge number coming up.
Yes they are duplicates the POST/ ones
I didn’t find any relevant github issues on jpype. How did you instrument?
from opentelemetry import trace tracer = trace.get_tracer(__name__) with tracer.start_as_current_span("file_response"):
So you are manually instrumenting?
Yes within each method which i want to be monitored. Usig this. with tracer.start_as_current_span("file_response"):
There is a nested method calls which comes up perfectly as in the screenshot marked with 7, upload.
However i am not able to get why those extra POST spans are showing up.
Also FYI, the API is being run by the command:
OTEL_RESOURCE_ATTRIBUTES=service.name=autofill_exports OTEL_EXPORTER_OTLP_ENDPOINT="
Any reason why you are not using auto instrumentation?
When using auto instrumentation i was not getting spans for individual methods.
Or could you point me to any correct resource?
using auto instrumentation?
vishal-signoz if you could answer this?
Snehanshu
Thu, 17 Aug 2023 04:24:33 UTCHi team, when I am using Signoz tracer to monitor a method in my Python FastAPI application which involves jpype library, there is huge numbr of traces coming up on the UI and also the UI hangs on opening up that particular request. Could anyone help me know why this is happening?