Skip to content
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

Add root_span implementation #3513

Merged
merged 1 commit into from
Sep 10, 2024
Merged

Add root_span implementation #3513

merged 1 commit into from
Sep 10, 2024

Conversation

sl0thentr0py
Copy link
Member

  • add and track underlying root span in a hidden attr _sentry_root_otel_span in all subsequent children spans in the span processor on start
  • wrap this underlying root otel span in a POTelSpan to act as a proxy
  • make POTelSpan constructor work with explicitly passed in otel_span
  • implement __eq__ on POTelSpan to make sure proxies to the same underlying _otel_span are considered the same

Copy link

codecov bot commented Sep 10, 2024

❌ 4397 Tests Failed:

Tests completed Failed Passed Skipped
16718 4397 12321 1916
View the top 3 failed tests by shortest run time
tests.integrations.celery.test_celery test_producer_span_data[redis]
Stack Traces | 0s run time
No failure message available
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_breadcrumbs_with_pii
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

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.

Nice, and looks pretty non-invasive, too 👍🏻 Left one nit

* add and track underlying root span in a hidden attr `_sentry_root_otel_span` in all subsequent children spans in the span processor on start
* wrap this underlying root otel span in a `POTelSpan` to act as a proxy
* make `POTelSpan` constructor work with explicitly passed in `otel_span`
* implement `__eq__` on `POTelSpan` to make sure proxies to the same
  underlying `_otel_span` are considered the same
@sl0thentr0py sl0thentr0py merged commit 0e0b5b0 into potel-base Sep 10, 2024
9 of 97 checks passed
@sl0thentr0py sl0thentr0py deleted the neel/potel/root-span branch September 10, 2024 12:02
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