| 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:93964661-5171-0a36-8840-e543a8d0ea26 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D9DC:7A60E:82FD99:AB67C4:6B00DBA8 |
| html-safe-nonce | 12e65654bd735040fc2d23cc0d4760d08344ccd13d02dc7152318bd917de91e1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOURDOjdBNjBFOjgyRkQ5OTpBQjY3QzQ6NkIwMERCQTgiLCJ2aXNpdG9yX2lkIjoiNzM2NzkxMzQ0NzcxNzEzMzIyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 462bb8e2ee932c50230971ec4c0adb830b2d058ea7289ed9efac9905fc93dd8c |
| hovercard-subject-tag | pull_request:3358603482 |
| 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/5593/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 new sentry_sdk.traces.continue_trace and sentry_sdk.traces.new_trace APIs.
Issues
Reminders
Please add tests to validate your changes, and lint your code using tox -e linters.... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5425dc24e8bd8d6fca9641a12afc984825a43875 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/getsentry/sentry-python/pull/5593/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F5593%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%2F5593%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/5593/files |
| Reload | https://github.com/getsentry/sentry-python/pull/5593/files |
| Reload | https://github.com/getsentry/sentry-python/pull/5593/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-6-add-continue-and-new-trace | https://github.com/getsentry/sentry-python/tree/ivana/span-first-6-add-continue-and-new-trace |
|
Conversation
3
| https://github.com/getsentry/sentry-python/pull/5593 |
|
Commits
22
| https://github.com/getsentry/sentry-python/pull/5593/commits |
|
Checks
160
| https://github.com/getsentry/sentry-python/pull/5593/checks |
|
Files changed
| https://github.com/getsentry/sentry-python/pull/5593/files |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/5593/files |
|
ref: Add new_trace, continue_trace to span first (6)
| https://github.com/getsentry/sentry-python/pull/5593/files#top |
|
Show all changes
22 commits
| https://github.com/getsentry/sentry-python/pull/5593/files |
|
946decc
ref: Remove flag storage from StreamedSpan
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5593/commits/946decc9ff9b9f057612f39a297b4df95a5ab0dd |
|
f3ee55c
ref: Tweak StreamedSpan interface
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5593/commits/f3ee55c909ee080c6807f32fc5943e77b44fde20 |
|
47ed910
Add missing logger
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5593/commits/47ed910d32d99c66d2a142a21d8494aa02740492 |
|
5023c76
fixes
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5593/commits/5023c76a6248ab91e23939e7225d093bcad41ac5 |
|
6445447
ref: Add active to StreamedSpan
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5593/commits/644544705c10cb26a5c238ff9475742eb7a132ee |
|
47e6211
Add property
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5593/commits/47e6211f473ebad9caf55762ce83dd3b73136a81 |
|
1e7b694
ref: Add no-op streaming span class
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5593/commits/1e7b694d9f1e9ac9d3ff9b86d20cb9d83178247a |
|
80bfe5a
Remove redundant stuff
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5593/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/5593/commits/1f0ffc19c27d72221ca8def732c83fbc4e19c100 |
|
d773428
ref: Add experimental streaming API
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5593/commits/d77342836cc94dbc98870b63d1d030b586a98ebd |
|
647fa79
reformat
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5593/commits/647fa79ed6e5839b1c34cd71f5167fe98c5dbf7a |
|
49bdbe6
Add a __repr__
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5593/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/5593/commits/cdd8bd6d4b9710c6311cb75d3b959124aebef271 |
|
54f81af
ref: Add new_trace, continue_trace to span first
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5593/commits/54f81afad43200d26176527a0de9757687406146 |
|
4b14e8d
Remove redundant code
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5593/commits/4b14e8d534e686b5a18f931655128453f0ecc14b |
|
474f8e6
simplify
sentrivana Mar 5, 2026
| https://github.com/getsentry/sentry-python/pull/5593/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/5593/commits/9996e29dc80e7291eaf6b80a4d396b86712e5a1d |
|
f223574
Correctly detect user-set parent_span=None
sentrivana Mar 6, 2026
| https://github.com/getsentry/sentry-python/pull/5593/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/5593/commits/05a41574fb126d76507948455432c413616fee37 |
|
9e8e60e
mypy
sentrivana Mar 6, 2026
| https://github.com/getsentry/sentry-python/pull/5593/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/5593/commits/777a246f093859a8855644fdb08cfc10ed42977f |
|
b225c32
Merge branch 'master' into ivana/span-first-6-add-continue-and-new-trace
sentrivana Mar 9, 2026
| https://github.com/getsentry/sentry-python/pull/5593/commits/b225c3275642802bd9c87cc45f8a1c11222bcaa3 |
|
Clear filters
| https://github.com/getsentry/sentry-python/pull/5593/files |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/5593/files |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/5593/files |
|
| https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1 |
| sentry_sdk/traces.py | https://github.com/getsentry/sentry-python/pull/5593/files#diff-555ec33b3918c08498e19be9fcbe494a146cd2937357d9440dd04a8d6cbd8275 |
|
View file
| https://github.com/getsentry/sentry-python/blob/b225c3275642802bd9c87cc45f8a1c11222bcaa3/sentry_sdk/traces.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/getsentry/sentry-python/pull/5593/{{ revealButtonHref }} |
|
| https://github.com/getsentry/sentry-python/pull/5593/files#diff-555ec33b3918c08498e19be9fcbe494a146cd2937357d9440dd04a8d6cbd8275 |
|
| https://github.com/getsentry/sentry-python/pull/5593/files#diff-555ec33b3918c08498e19be9fcbe494a146cd2937357d9440dd04a8d6cbd8275 |
|
| https://github.com/getsentry/sentry-python/pull/5593/files#diff-555ec33b3918c08498e19be9fcbe494a146cd2937357d9440dd04a8d6cbd8275 |
|
| https://github.com/getsentry/sentry-python/pull/5593/files#diff-555ec33b3918c08498e19be9fcbe494a146cd2937357d9440dd04a8d6cbd8275 |
|
| https://github.com/getsentry/sentry-python/pull/5593/files#diff-555ec33b3918c08498e19be9fcbe494a146cd2937357d9440dd04a8d6cbd8275 |
|
| https://github.com/getsentry/sentry-python/pull/5593/checks?check_run_id=66258831225 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/5593/files |
|
| https://github.com/getsentry/sentry-python/pull/5593/files#diff-555ec33b3918c08498e19be9fcbe494a146cd2937357d9440dd04a8d6cbd8275 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/5593/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 |