-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZO-1629: Work around NonRecordingSpan opentelemetry bug
AFAICT otel violates its own API here, should use get_span_context() instead: File "opentelemetry/instrumentation/utils.py", line 160, in _generate_opentelemetry_traceparent _span_id = trace.format_span_id(span.context.span_id) AttributeError: 'NonRecordingSpan' object has no attribute 'context' I'm backporting open-telemetry/opentelemetry-python-contrib#1200 which sidesteps the issue by using propagate to generate the traceparent header instead of doing it manually.
- Loading branch information
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ZO-1629: Work around NonRecordingSpan opentelemetry bug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters