-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TraceID is the same for all spans #3172
Comments
@ty-elastic could you please check if |
yes, indeed, that fixes it. I now see random Trace IDs for each trace generated. |
@xrmx , I'm casually looking at the source of that instrumentation. What is it that would cause Trace ID not to be regenerated? Presumably that instrumentation is somehow being invoked to create a new Trace when my app is run, with that singular Trace ID on the context as the active parent, and then everything else is inherently a child span? Is there something about thew way I'm invoking my app that is triggering the click instrumentation to get accidentally hooked? |
|
Also related: #3171 |
Describe your environment
OS: python:3.12.6-slim-bookworm
Python version: python:3.12.6
SDK version: 0.50b0/1.29.0
API version: 0.50b0/1.29.0
What happened?
Create a simple zero-code Python app invoked with
opentelemetry-instrument
. Whether you use auto-instrumentation (here, a flask endpoint) or add manual instrumentation (@tracer.start_as_current_span
), the Trace IDs created for subsequent traces are all the same when using version0.50b0/1.29.0
. Keeping everything else the same, using0.49b2/1.28.2
, Trace IDs are randomly generated.Steps to Reproduce
See https://github.com/ty-elastic/otel-python-bug and observe Collector debug output varying the version of the python OTel libraries used.
Basically, create a simple python app and use zero-code instrumentation. Either use an auto-instrumented library (like flask) or manually create spans. Using
0.50b0/1.29.0
, Trace ID doesn't change between traces; using0.49b2/1.28.2
it does (as expected).Expected Result
Trace ID is randomly generated.
Actual Result
Trace ID is the same for every trace.
Additional context
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: