Skip to content

feat(tracing): Add W3C traceparent support #4249

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 13 commits into
base: master
Choose a base branch
from

Conversation

hangy
Copy link

@hangy hangy commented Apr 7, 2025

This adds support for propagating the sentry-trace ID as a W3C TraceSpan header to support #2684, loosely based on getsentry/sentry-php@a31d418

I'm not a Python developer by trade and get confused by whitespace instead of curly braces, so please tread carefully. 😉

@hangy hangy changed the title [WIP] feat: Add W3C traceparent support [WIP] feat(tracing): Add W3C traceparent support Apr 8, 2025
@hangy hangy changed the title [WIP] feat(tracing): Add W3C traceparent support feat(tracing): Add W3C traceparent support Apr 11, 2025
@hangy hangy marked this pull request as ready for review April 11, 2025 21:12
@hangy hangy requested a review from a team as a code owner April 11, 2025 21:12
Copy link

codecov bot commented Apr 22, 2025

Codecov Report

Attention: Patch coverage is 75.00000% with 13 lines in your changes missing coverage. Please review.

Project coverage is 80.29%. Comparing base (c361337) to head (0b4084c).
Report is 3 commits behind head on master.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
sentry_sdk/tracing_utils.py 76.00% 1 Missing and 5 partials ⚠️
sentry_sdk/scope.py 54.54% 2 Missing and 3 partials ⚠️
...entry_sdk/integrations/opentelemetry/propagator.py 50.00% 1 Missing ⚠️
sentry_sdk/tracing.py 92.85% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4249   +/-   ##
=======================================
  Coverage   80.28%   80.29%           
=======================================
  Files         142      142           
  Lines       15925    15976   +51     
  Branches     2724     2739   +15     
=======================================
+ Hits        12786    12828   +42     
- Misses       2263     2266    +3     
- Partials      876      882    +6     
Files with missing lines Coverage Δ
...entry_sdk/integrations/opentelemetry/propagator.py 82.14% <50.00%> (+0.32%) ⬆️
sentry_sdk/tracing.py 78.83% <92.85%> (+0.39%) ⬆️
sentry_sdk/scope.py 85.61% <54.54%> (-0.47%) ⬇️
sentry_sdk/tracing_utils.py 84.96% <76.00%> (+0.18%) ⬆️

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