We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
OS: Ubuntu Python version: 3.12 SDK version: 1.25.0 API version: 1.25.0
We are recording invalid links when adding links during span creation.
from opentelemetry import trace from opentelemetry.sdk.trace import TracerProvider from opentelemetry.sdk.trace.export import ( SimpleSpanProcessor, ConsoleSpanExporter, ) trace.set_tracer_provider(TracerProvider()) trace.get_tracer_provider().add_span_processor(SimpleSpanProcessor(ConsoleSpanExporter())) tracer = trace.get_tracer("my.tracer") with tracer.start_as_current_span("root", links=[trace.Link(trace.INVALID_SPAN_CONTEXT)]) as root: pass
"links": []
Since this is the preferred method to add links, I suppose we should also validate links at span creation
"links": [ { "context": { "trace_id": "0x00000000000000000000000000000000", "span_id": "0x0000000000000000", "trace_state": "[]" }, "attributes": {} } ],
No response
Yes
The text was updated successfully, but these errors were encountered:
Great Change
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe your environment
OS: Ubuntu
Python version: 3.12
SDK version: 1.25.0
API version: 1.25.0
What happened?
We are recording invalid links when adding links during span creation.
Steps to Reproduce
Expected Result
"links": []
Since this is the preferred method to add links, I suppose we should also validate links at span creation
Actual Result
Additional context
No response
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: