Skip to content

ref: Remove transaction-based tracing - #7468

Merged
sentrivana merged 24 commits into
major/3.0from
ivana/major/rip-out-old-tracing
Sep 14, 2026
Merged

sentrivana merged 24 commits into
major/3.0from
ivana/major/rip-out-old-tracing

Conversation

@sentrivana

@sentrivana sentrivana commented Sep 11, 2026

Copy link
Copy Markdown
Contributor
  • Remove the Span and Transaction classes and associated types
  • Remove transaction/old span support from transport, client, scope
  • Rewire top-level API to sentry_sdk.traces.*
  • Remove old span counting/reporting (dropped_spans etc.)
  • Remove has_span_streaming_enabled
  • ...and more

It's a big diff but no logic changes, just removing anything old span related.

Closes https://linear.app/getsentry/issue/PY-2654/rewire-top-level-tracing-api-to-span-streaming
Closes https://linear.app/getsentry/issue/PY-2655/remove-legacy-tracing
Closes https://linear.app/getsentry/issue/PY-2653/remove-has-span-streaming-enabled-branches-from-core

@linear-code

linear-code Bot commented Sep 11, 2026

Copy link
Copy Markdown

PY-2654

PY-2655

PY-2653

@sentrivana sentrivana changed the title ref: Rewire top-level tracing API to span streaming ref: Remove transaction-based tracing Sep 11, 2026
@github-actions

github-actions Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

67139 passed | ⏭️ 3292 skipped | Total: 70431 | Pass Rate: 95.33% | Execution Time: 211m 53s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -63300
Passed Tests 📉 -59461
Failed Tests
Skipped Tests 📉 -3839

All tests are passing successfully.

✅ Patch coverage is 94.87%. Project has 2272 uncovered lines.
❌ Project coverage is 89.46%. Comparing base (e2a6518) to head (7f6d894).

Files with missing lines (1)
File Patch % Lines
sentry_sdk/api.py 80.00% ⚠️ 2 Missing
Coverage diff
@@            Coverage Diff             @@
##        master       #PR       +/-##
==========================================
- Coverage    90.21%    89.46%    -0.75%
==========================================
  Files          193       180       -13
  Lines        25790     21546     -4244
  Branches      9532      7822     -1710
==========================================
+ Hits         23265     19274     -3991
- Misses        2525      2272      -253
- Partials      1431      1223      -208

Generated by Codecov Action

@sentrivana
sentrivana force-pushed the ivana/major/rip-out-old-tracing branch from 2f92421 to e16fa1e Compare September 11, 2026 14:02
@sentrivana
sentrivana changed the base branch from major/3.0 to ivana/major/remove-_set_span_data_attribute September 11, 2026 14:02
sentrivana added a commit that referenced this pull request Sep 11, 2026
- Remove `Span`s from type annotations in integrations
- Remove helpers like `set_on_span`, `set_span_data_attribute`


Taking at least some stuff out of
#7468 to make it more
reviewable
Base automatically changed from ivana/major/remove-_set_span_data_attribute to major/3.0 September 11, 2026 14:03
@sentrivana
sentrivana force-pushed the ivana/major/rip-out-old-tracing branch from a96d5b4 to 452e47b Compare September 11, 2026 14:43
@sentrivana
sentrivana changed the base branch from major/3.0 to ivana/major/more-tests-ofc September 11, 2026 14:43
Base automatically changed from ivana/major/more-tests-ofc to major/3.0 September 14, 2026 07:49
@sentrivana
sentrivana marked this pull request as ready for review September 14, 2026 07:59
@sentrivana
sentrivana requested a review from a team as a code owner September 14, 2026 07:59

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f6a1dc8. Configure here.

Comment thread sentry_sdk/client.py
Comment thread sentry_sdk/scope.py
@sentrivana
sentrivana merged commit ddf54ef into major/3.0 Sep 14, 2026
147 checks passed
@sentrivana
sentrivana deleted the ivana/major/rip-out-old-tracing branch September 14, 2026 09:12
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