Skip to content

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

Merged
merged 5 commits into from
Sep 6, 2024
Merged

Conversation

sl0thentr0py
Copy link
Member

  • 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

@sl0thentr0py sl0thentr0py force-pushed the neel/potel/potel-span-fixes branch from 5279037 to e7d1ecb Compare September 3, 2024 11:44
Copy link

codecov bot commented Sep 3, 2024

❌ 4425 Tests Failed:

Tests completed Failed Passed Skipped
16701 4425 12276 1916
View the top 3 failed tests by shortest run time
tests.integrations.celery.test_celery test_transaction_events[<lambda>3-success]
Stack Traces | 0s run time
No failure message available
tests.integrations.clickhouse_driver.test_clickhouse_driver test_clickhouse_dbapi_spans_with_pii
Stack Traces | 0s run time
No failure message available
tests.integrations.httpx.test_httpx test_option_trace_propagation_targets[httpx_client14-trace_propagation_targets14-https://example.com-True]
Stack Traces | 0s run time
No failure message available

To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard

@sl0thentr0py sl0thentr0py force-pushed the neel/potel/potel-span-fixes branch from e7d1ecb to 93fc2d6 Compare September 3, 2024 11:46
Copy link
Contributor

@sentrivana sentrivana left a 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

Comment on lines +1270 to +1271
if not isinstance(self._otel_span, ReadableSpan):
return None
Copy link
Contributor

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

sl0thentr0py and others added 4 commits September 6, 2024 15:17
* 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>
@sl0thentr0py sl0thentr0py force-pushed the neel/potel/potel-span-fixes branch from bbb0630 to 545f3a1 Compare September 6, 2024 13:17
@sl0thentr0py sl0thentr0py merged commit b8e687e into potel-base Sep 6, 2024
8 of 39 checks passed
@sl0thentr0py sl0thentr0py deleted the neel/potel/potel-span-fixes branch September 6, 2024 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants