-
Notifications
You must be signed in to change notification settings - Fork 541
Fix some methods in POTelSpan #3492
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
Conversation
5279037
to
e7d1ecb
Compare
❌ 4425 Tests Failed:
View the top 3 failed tests by shortest run time
To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard |
e7d1ecb
to
93fc2d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noticed couple things, else lgtm
if not isinstance(self._otel_span, ReadableSpan): | ||
return None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can have a decorator at some point that does this, we could reuse that everywhere for this is-recording-span check. Don't have to do it now, just a note for later when we're cleaning stuff up
* Use `ReadableSpan` checks for attribute and parent access (handles the `NonRecordingSpan` case as a result) * deleted methods `continue_from_environ`, `continue_from_headers` and `from_traceparent` from `POTelSpan`, the new interface will not support them, but we might shim them later to not break code from outside the otel stuff * replaced `continue_from_headers` with `continue_trace` in grpc
Co-authored-by: Ivana Kellyer <ivana.kellyer@sentry.io>
Co-authored-by: Ivana Kellyer <ivana.kellyer@sentry.io>
Co-authored-by: Ivana Kellyer <ivana.kellyer@sentry.io>
bbb0630
to
545f3a1
Compare
ReadableSpan
checks for attribute and parent access (handles theNonRecordingSpan
case as a result)continue_from_environ
,continue_from_headers
andfrom_traceparent
fromPOTelSpan
, the new interface will not support them, but we might shim them later to not break code from outside the otel stuffcontinue_from_headers
withcontinue_trace
in grpc