Skip to content

feat(tracing): Add option to exclude specific span origins #4463

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

Open
wants to merge 7 commits into
base: potel-base
Choose a base branch
from

Conversation

sentrivana
Copy link
Contributor

@sentrivana sentrivana commented Jun 13, 2025

Allow to turn off span creation based on span origin.

Useful when you're double instrumenting a library with e.g. Sentry and OpenTelemetry and you want to turn off Sentry spans.

Copy link

codecov bot commented Jun 13, 2025

Codecov Report

Attention: Patch coverage is 84.61538% with 2 lines in your changes missing coverage. Please review.

Project coverage is 84.76%. Comparing base (c21525e) to head (2f4016a).
Report is 1 commits behind head on potel-base.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
sentry_sdk/tracing_utils.py 75.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@              Coverage Diff               @@
##           potel-base    #4463      +/-   ##
==============================================
- Coverage       84.77%   84.76%   -0.01%     
==============================================
  Files             144      144              
  Lines           14788    14799      +11     
  Branches         2361     2364       +3     
==============================================
+ Hits            12537    12545       +8     
- Misses           1527     1528       +1     
- Partials          724      726       +2     
Files with missing lines Coverage Δ
sentry_sdk/consts.py 99.59% <ø> (ø)
sentry_sdk/tracing.py 80.55% <100.00%> (+0.20%) ⬆️
sentry_sdk/tracing_utils.py 84.65% <75.00%> (-0.19%) ⬇️

... and 1 file with indirect coverage changes

@sentrivana sentrivana changed the title feat(tracing): Add option to disable specific span origins feat(tracing): Add option to exclude specific span origins Jun 16, 2025
@sentrivana sentrivana marked this pull request as ready for review June 16, 2025 11:41
@sentrivana sentrivana requested a review from a team as a code owner June 16, 2025 11:41
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.

1 participant