| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:de667164-fe8f-8d57-a305-c7077c13afa6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B76E:65478:9795FB:CB4784:6B00E6FA |
| html-safe-nonce | 338bc6560746a8ee6700ec15304cc38126acf57322cbf71aa72fdf98f53ec333 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzZFOjY1NDc4Ojk3OTVGQjpDQjQ3ODQ6NkIwMEU2RkEiLCJ2aXNpdG9yX2lkIjoiODc5Nzc0NjAyMzc3MTQ2NTQ2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f1fedd01f64b822b2c2e8c664ed4121365d59bfe5bdbefd66763d080f2dd59b3 |
| hovercard-subject-tag | pull_request:3358674011 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/getsentry/sentry-python/pull/5594/files |
| twitter:image | https://avatars.githubusercontent.com/u/131587164?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/131587164?s=400&v=4 |
| og:image:alt | Description
Add the streaming equivalent of the @trace decorator.
Issues
Reminders
Please add tests to validate your changes, and lint your code using tox -e linters.
Add GH Issue ID & Linear... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 137814779 |
| octolytics-dimension-repository_nwo | getsentry/sentry-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 137814779 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-python |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/getsentry/sentry-python/pull/5594/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F5594%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F5594%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=getsentry%2Fsentry-python |
| Reload | https://github.com/getsentry/sentry-python/pull/5594/files |
| Reload | https://github.com/getsentry/sentry-python/pull/5594/files |
| Reload | https://github.com/getsentry/sentry-python/pull/5594/files |
| getsentry | https://github.com/getsentry |
| sentry-python | https://github.com/getsentry/sentry-python |
| Code | https://github.com/getsentry/sentry-python |
| Issues345 (345) | https://github.com/getsentry/sentry-python/issues |
| Pull requests42 (42) | https://github.com/getsentry/sentry-python/pulls |
| Discussions | https://github.com/getsentry/sentry-python/discussions |
| Actions | https://github.com/getsentry/sentry-python/actions |
| Security and quality2 (2) | https://github.com/getsentry/sentry-python/security |
| Insights | https://github.com/getsentry/sentry-python/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fgetsentry%2Fsentry-python%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fgetsentry%2Fsentry-python%2Fissues%2Fnew%2Fchoose |
| sentrivana | https://github.com/sentrivana |
| master | https://github.com/getsentry/sentry-python/tree/master |
| ivana/span-first-7-add-trace-decorator | https://github.com/getsentry/sentry-python/tree/ivana/span-first-7-add-trace-decorator |
|
Conversation
17
| https://github.com/getsentry/sentry-python/pull/5594 |
|
Commits
31
| https://github.com/getsentry/sentry-python/pull/5594/commits |
|
Checks
155
| https://github.com/getsentry/sentry-python/pull/5594/checks |
|
Files changed
| https://github.com/getsentry/sentry-python/pull/5594/files |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/5594/files |
|
ref: Add streaming trace decorator (7)
| https://github.com/getsentry/sentry-python/pull/5594/files#top |
|
Show all changes
31 commits
| https://github.com/getsentry/sentry-python/pull/5594/files |
|
946decc
ref: Remove flag storage from StreamedSpan
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/946decc9ff9b9f057612f39a297b4df95a5ab0dd |
|
f3ee55c
ref: Tweak StreamedSpan interface
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/f3ee55c909ee080c6807f32fc5943e77b44fde20 |
|
47ed910
Add missing logger
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/47ed910d32d99c66d2a142a21d8494aa02740492 |
|
5023c76
fixes
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/5023c76a6248ab91e23939e7225d093bcad41ac5 |
|
6445447
ref: Add active to StreamedSpan
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/644544705c10cb26a5c238ff9475742eb7a132ee |
|
47e6211
Add property
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/47e6211f473ebad9caf55762ce83dd3b73136a81 |
|
1e7b694
ref: Add no-op streaming span class
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/1e7b694d9f1e9ac9d3ff9b86d20cb9d83178247a |
|
80bfe5a
Remove redundant stuff
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/80bfe5a2af99d568a51135a842c9398154d48751 |
|
1f0ffc1
Merge branch 'master' into ivana/span-first-4-add-noop-span
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/1f0ffc19c27d72221ca8def732c83fbc4e19c100 |
|
d773428
ref: Add experimental streaming API
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/d77342836cc94dbc98870b63d1d030b586a98ebd |
|
647fa79
reformat
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/647fa79ed6e5839b1c34cd71f5167fe98c5dbf7a |
|
49bdbe6
Add a __repr__
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/49bdbe61a58043a88982c38f682a79dec76e7e7f |
|
cdd8bd6
Merge branch 'master' into ivana/span-first-5-add-start-span-api
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/cdd8bd6d4b9710c6311cb75d3b959124aebef271 |
|
54f81af
ref: Add new_trace, continue_trace to span first
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/54f81afad43200d26176527a0de9757687406146 |
|
941863e
ref: Add streaming trace decorator
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/941863e2f692f067deaf23e9b21452679f513f53 |
|
4b14e8d
Remove redundant code
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/4b14e8d534e686b5a18f931655128453f0ecc14b |
|
474f8e6
simplify
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/474f8e6e1e2740043acead83d915b5f1f4ef0a82 |
|
9996e29
Merge branch 'ivana/span-first-5-add-start-span-api' into ivana/span-…
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/9996e29dc80e7291eaf6b80a4d396b86712e5a1d |
|
e20d4fd
Merge branch 'ivana/span-first-6-add-continue-and-new-trace' into iva…
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/e20d4fd40818f015bfdba49742b7847fdc86b1c1 |
|
f2738ff
reorder imports
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/f2738ff53a93069b1eadc0d920befedde9a970b8 |
|
c974d3e
add dummy __enter__, __exit__
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/c974d3edca3a39d33a4cd9a1869a7521026c3237 |
|
831adae
type hint
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/831adae305487de271d9113776a08db111174fe3 |
|
1dcf176
remove unused import
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/1dcf176a90df631b1002eb0b601d5c80861a9962 |
|
f223574
Correctly detect user-set parent_span=None
sentrivana Mar 6, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/f2235745e492a8429ed4f88cb53cdb2054aef73e |
|
05a4157
Merge branch 'master' into ivana/span-first-5-add-start-span-api
sentrivana Mar 6, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/05a41574fb126d76507948455432c413616fee37 |
|
9e8e60e
mypy
sentrivana Mar 6, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/9e8e60ef87bbd8a2167bbd3310c17b92b84a94e9 |
|
777a246
Merge branch 'ivana/span-first-5-add-start-span-api' into ivana/span-…
sentrivana Mar 6, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/777a246f093859a8855644fdb08cfc10ed42977f |
|
9b1e2f3
Merge branch 'ivana/span-first-6-add-continue-and-new-trace' into iva…
sentrivana Mar 6, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/9b1e2f30db58bfc7655215fd379e63663d155b93 |
|
1006e7b
remove unused imports
sentrivana Mar 6, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/1006e7b30294e54445a4bc9b996cad895b1f009b |
|
57f8181
Merge branch 'master' into ivana/span-first-7-add-trace-decorator
sentrivana Mar 9, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/57f8181eae331be3bb548b6346b82225dba27e89 |
|
876532f
ref: Per-bucket limits, fix envelope chunking (8) (#5595)
sentrivana Mar 9, 2026
| https://github.com/getsentry/sentry-python/pull/5594/commits/876532fcc7058a3c1c7228f95a608e890a8d7724 |
|
Clear filters
| https://github.com/getsentry/sentry-python/pull/5594/files |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/5594/files |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/5594/files |
|
_span_batcher.py
| https://github.com/getsentry/sentry-python/pull/5594/files#diff-f400f2b5275be953a87e1a2fa25659221ab46d1f696f7d1104694c55ea621189 |
|
traces.py
| https://github.com/getsentry/sentry-python/pull/5594/files#diff-555ec33b3918c08498e19be9fcbe494a146cd2937357d9440dd04a8d6cbd8275 |
|
tracing_utils.py
| https://github.com/getsentry/sentry-python/pull/5594/files#diff-7c64294459f5053c93d44e0e33e4e73ffcef0adefcd77ba91f4031aa461a8c42 |
|
| https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1 |
| sentry_sdk/_span_batcher.py | https://github.com/getsentry/sentry-python/pull/5594/files#diff-f400f2b5275be953a87e1a2fa25659221ab46d1f696f7d1104694c55ea621189 |
|
View file
| https://github.com/getsentry/sentry-python/blob/876532fcc7058a3c1c7228f95a608e890a8d7724/sentry_sdk/_span_batcher.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/getsentry/sentry-python/pull/5594/{{ revealButtonHref }} |
|
| https://github.com/getsentry/sentry-python/pull/5594/files#diff-f400f2b5275be953a87e1a2fa25659221ab46d1f696f7d1104694c55ea621189 |
|
| https://github.com/getsentry/sentry-python/pull/5594/files#diff-f400f2b5275be953a87e1a2fa25659221ab46d1f696f7d1104694c55ea621189 |
|
| https://github.com/getsentry/sentry-python/pull/5594/files#diff-f400f2b5275be953a87e1a2fa25659221ab46d1f696f7d1104694c55ea621189 |
|
| https://github.com/getsentry/sentry-python/pull/5594/files#diff-f400f2b5275be953a87e1a2fa25659221ab46d1f696f7d1104694c55ea621189 |
| sentry | https://github.com/apps/sentry |
| Mar 9, 2026 | https://github.com/getsentry/sentry-python/pull/5594/files#r2904060313 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/5594/files |
|
| https://github.com/getsentry/sentry-python/pull/5594/files#diff-f400f2b5275be953a87e1a2fa25659221ab46d1f696f7d1104694c55ea621189 |
|
| https://github.com/getsentry/sentry-python/pull/5594/files#diff-f400f2b5275be953a87e1a2fa25659221ab46d1f696f7d1104694c55ea621189 |
|
| https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1 |
| sentry_sdk/traces.py | https://github.com/getsentry/sentry-python/pull/5594/files#diff-555ec33b3918c08498e19be9fcbe494a146cd2937357d9440dd04a8d6cbd8275 |
|
View file
| https://github.com/getsentry/sentry-python/blob/876532fcc7058a3c1c7228f95a608e890a8d7724/sentry_sdk/traces.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/getsentry/sentry-python/pull/5594/{{ revealButtonHref }} |
|
| https://github.com/getsentry/sentry-python/pull/5594/files#diff-555ec33b3918c08498e19be9fcbe494a146cd2937357d9440dd04a8d6cbd8275 |
|
| https://github.com/getsentry/sentry-python/pull/5594/files#diff-555ec33b3918c08498e19be9fcbe494a146cd2937357d9440dd04a8d6cbd8275 |
|
| https://github.com/getsentry/sentry-python/pull/5594/files#diff-555ec33b3918c08498e19be9fcbe494a146cd2937357d9440dd04a8d6cbd8275 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/5594/files |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/5594/files |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/5594/files |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/5594/files |
|
| https://github.com/getsentry/sentry-python/pull/5594/files#diff-555ec33b3918c08498e19be9fcbe494a146cd2937357d9440dd04a8d6cbd8275 |
|
| https://github.com/getsentry/sentry-python/pull/5594/files#diff-555ec33b3918c08498e19be9fcbe494a146cd2937357d9440dd04a8d6cbd8275 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/5594/files |
|
| https://github.com/getsentry/sentry-python/pull/5594/files#diff-555ec33b3918c08498e19be9fcbe494a146cd2937357d9440dd04a8d6cbd8275 |
|
| https://github.com/getsentry/sentry-python/pull/5594/files#diff-555ec33b3918c08498e19be9fcbe494a146cd2937357d9440dd04a8d6cbd8275 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/5594/files |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/5594/files |
|
| https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1 |
| sentry_sdk/tracing_utils.py | https://github.com/getsentry/sentry-python/pull/5594/files#diff-7c64294459f5053c93d44e0e33e4e73ffcef0adefcd77ba91f4031aa461a8c42 |
|
View file
| https://github.com/getsentry/sentry-python/blob/876532fcc7058a3c1c7228f95a608e890a8d7724/sentry_sdk/tracing_utils.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/getsentry/sentry-python/pull/5594/{{ revealButtonHref }} |
|
| https://github.com/getsentry/sentry-python/pull/5594/files#diff-7c64294459f5053c93d44e0e33e4e73ffcef0adefcd77ba91f4031aa461a8c42 |
|
| https://github.com/getsentry/sentry-python/pull/5594/files#diff-7c64294459f5053c93d44e0e33e4e73ffcef0adefcd77ba91f4031aa461a8c42 |
|
| https://github.com/getsentry/sentry-python/pull/5594/files#diff-7c64294459f5053c93d44e0e33e4e73ffcef0adefcd77ba91f4031aa461a8c42 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/5594/files |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/5594/files |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/5594/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |