Skip to content

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

@codecov
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
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.

3 participants