sentry-python icon indicating copy to clipboard operation
sentry-python copied to clipboard

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

Open sentrivana opened this issue 6 months ago • 1 comments

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.

sentrivana avatar Jun 13 '25 13:06 sentrivana

Codecov Report

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

Project coverage is 84.91%. Comparing base (03659a4) to head (3b72b0c). Report is 7 commits behind head on potel-base.

:white_check_mark: 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 :warning:
Additional details and impacted files
@@              Coverage Diff               @@
##           potel-base    #4463      +/-   ##
==============================================
- Coverage       84.92%   84.91%   -0.02%     
==============================================
  Files             158      158              
  Lines           15361    15372      +11     
  Branches         2422     2425       +3     
==============================================
+ Hits            13046    13053       +7     
- Misses           1569     1570       +1     
- Partials          746      749       +3     
Files with missing lines Coverage Δ
sentry_sdk/consts.py 99.66% <ø> (ø)
sentry_sdk/tracing.py 81.66% <100.00%> (+0.19%) :arrow_up:
sentry_sdk/tracing_utils.py 84.17% <75.00%> (-0.18%) :arrow_down:

... and 2 files with indirect coverage changes

codecov[bot] avatar Jun 13 '25 13:06 codecov[bot]