FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: Remove 0000 trace_id fallbacks by sl0thentr0py · Pull Request #6570 · getsentry/sentry-python · GitHub

fix: Remove 0000 trace_id fallbacks - #6570

Merged
sl0thentr0py merged 2 commits into
masterfrom
neel/zero-trace-id
Jun 16, 2026
Merged

fix: Remove 0000 trace_id fallbacks#6570
sl0thentr0py merged 2 commits into
masterfrom
neel/zero-trace-id

Conversation

sl0thentr0py commented Jun 15, 2026
edited
Loading

Copy link
Copy Markdown
Member

Issues

sl0thentr0py requested a review from a team as a code owner June 15, 2026 14:05

linear-code Bot commented Jun 15, 2026

Copy link
Copy Markdown

PY-2526

Comment thread sentry_sdk/scope.py
has_tracing_enabled(self.get_client().options)
and self._span is not None
and not isinstance(self._span, NoOpStreamedSpan)
and not isinstance(self._span, (NoOpStreamedSpan, NoOpSpan))

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

generalized these instance checks just in case

Comment thread sentry_sdk/scope.py
Comment thread sentry_sdk/_log_batcher.py Outdated
sl0thentr0py force-pushed the neel/zero-trace-id branch 4 times, most recently from d668a2e to 0077f8b Compare June 15, 2026 15:51
Comment thread sentry_sdk/scope.py

github-actions Bot commented Jun 15, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Codecov Results 📊

90848 passed | ⏭️ 6037 skipped | Total: 96885 | Pass Rate: 93.77% | Execution Time: 321m 27s

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests
Failed Tests
Skipped Tests

✨ No test changes detected

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2420 uncovered lines.
✅ Project coverage is 89.76%. Comparing base (base) to head (head).

Files with missing lines (3)
File Patch % Lines
sentry_sdk/_log_batcher.py 100.00% ⚠️ 1 partials
sentry_sdk/_metrics_batcher.py 100.00% ⚠️ 1 partials
sentry_sdk/scope.py 100.00% ⚠️ 1 partials
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    89.75%    89.76%    +0.01%
==========================================
  Files          192       192         —
  Lines        23630     23636        +6
  Branches      8134      8140        +6
==========================================
+ Hits         21208     21216        +8
- Misses        2422      2420        -2
- Partials      1341      1341         —

Generated by Codecov Action

sl0thentr0py and others added 2 commits June 16, 2026 13:46
When no span is active, span_id is now omitted from the envelope
entirely rather than included as None.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
sl0thentr0py merged commit 6a4c3a1 into master Jun 16, 2026
144 checks passed
sl0thentr0py deleted the neel/zero-trace-id branch June 16, 2026 12:02
mgaligniana pushed a commit to mgaligniana/sentry-python that referenced this pull request Aug 9, 2026
#### Issues

* resolves: getsentry#6558
* resolves: PY-2526

---------

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Remove 0000 trace fallback

2 participants


Back | FazBrowse Home | New Git URL