| 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:6e26c181-8ae3-b1b6-da95-1fc5e31bed60 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BC10:11EACE:BB64BB:FB1793:6B00F6BD |
| html-safe-nonce | 6062eef27ffc00d314a534ec4281ab4e97f12e0b866ba9bdd95b8d919835fc73 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzEwOjExRUFDRTpCQjY0QkI6RkIxNzkzOjZCMDBGNkJEIiwidmlzaXRvcl9pZCI6Ijc1ODcxODg3NTk1ODY3MzE3MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9daffeca778060b6a6661d870e9405de418990374fde2ff1633f604f646eacc8 |
| hovercard-subject-tag | pull_request:4252844691 |
| 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/7170/files |
| twitter:image | https://avatars.githubusercontent.com/u/224035503?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/224035503?s=400&v=4 |
| og:image:alt | Description
Mark the corresponding bucket as pending in the span buffer when a segment span is added.
This aims to keep memory pressure low. Segment spans typically finish after their children. Th... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/getsentry/sentry-python/pull/7170/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F7170%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%2F7170%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/7170/files |
| Reload | https://github.com/getsentry/sentry-python/pull/7170/files |
| Reload | https://github.com/getsentry/sentry-python/pull/7170/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 |
| alexander-alderman-webb | https://github.com/alexander-alderman-webb |
| master | https://github.com/getsentry/sentry-python/tree/master |
| webb/flush-segment-buckets | https://github.com/getsentry/sentry-python/tree/webb/flush-segment-buckets |
|
Conversation
8
| https://github.com/getsentry/sentry-python/pull/7170 |
|
Commits
22
| https://github.com/getsentry/sentry-python/pull/7170/commits |
|
Checks
144
| https://github.com/getsentry/sentry-python/pull/7170/checks |
|
Files changed
| https://github.com/getsentry/sentry-python/pull/7170/files |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7170/files |
|
ref: Flush trace buckets when segment spans finish
| https://github.com/getsentry/sentry-python/pull/7170/files#top |
|
Show all changes
22 commits
| https://github.com/getsentry/sentry-python/pull/7170/files |
|
0414de5
Revert "fix(batcher): Add global flush trigger based on the span numb…
alexander-alderman-webb Aug 11, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/0414de55921f2c481338136aeb89091879419ae3 |
|
dd57e21
Revert "feat(batcher): Add global flush trigger based on summed size …
alexander-alderman-webb Aug 11, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/dd57e21e763889cff0367efaa1b9a8fdab23a6e2 |
|
8669777
Revert "feat(batcher): Add hard span limit (#7143)"
alexander-alderman-webb Aug 11, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/8669777b18ce37bb1b52530fafb4953175f8dfa9 |
|
46cf5ce
ref: Flush trace bucket when segment span finishes
alexander-alderman-webb Aug 11, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/46cf5ce0214dc09433a94d57f8e9779ebde84d25 |
|
51a768e
make mypy happy
alexander-alderman-webb Aug 11, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/51a768e97985e15159e4f04a1cf74c58eeded96b |
|
379b8c4
simplify and fix tests
alexander-alderman-webb Aug 11, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/379b8c4effc32bb4b751f63d3096c1d9ed074952 |
|
9241cee
.
alexander-alderman-webb Aug 11, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/9241cee48aa069eb691ab8d00098e1d2752e0078 |
|
b3da36f
add span to pending bucket
alexander-alderman-webb Aug 11, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/b3da36f149264fa35ae33a4177a86068ebf768a6 |
|
7652579
modify pending flush inside lock
alexander-alderman-webb Aug 11, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/76525790a18035dc1c231a30a535feee02c5b2ee |
|
78b2893
flush async
alexander-alderman-webb Aug 11, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/78b2893fba8b3cba1a6c0bc6d446181c5da7bd21 |
|
0478e71
fix race on 3.14t
alexander-alderman-webb Aug 12, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/0478e7188ea3350f6038a18067d7b90b274f1b60 |
|
602a412
clean up comments
alexander-alderman-webb Aug 12, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/602a4129e51768161b490ce17e7d1cfa7433a2b2 |
|
bd5a977
conftest update
alexander-alderman-webb Aug 12, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/bd5a977d0d5976d43e11e1dd42418db57905eb54 |
|
02c0a67
work on fixture changes
alexander-alderman-webb Aug 12, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/02c0a678680245618e4c9f7f881fc5071fceac1c |
|
8057cac
add re-entrancy guard
alexander-alderman-webb Aug 12, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/8057cac2b0e9ca11f17e27922142f4191bd949fd |
|
5653f6c
edit comment
alexander-alderman-webb Aug 12, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/5653f6c0919b76c562b2e88027dff95caaad76ad |
|
5ee9fb6
resolve django test failures
alexander-alderman-webb Aug 12, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/5ee9fb6325790f1c3bf9ded94a068e43d06ec415 |
|
40dfb01
second iteration django tests
alexander-alderman-webb Aug 12, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/40dfb01b5db345c8638f7f7496f1c33e7fee8bdd |
|
c29c865
resolve flask test failures
alexander-alderman-webb Aug 12, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/c29c865b5ee0e9de276922797043a24303f6af56 |
|
14d342d
resolve common test failures
alexander-alderman-webb Aug 12, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/14d342dce7e7da8deb9f3a6ec85b07119daeef58 |
|
e0150a4
merge master
alexander-alderman-webb Aug 12, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/e0150a4d8dbf0cf8abccbc6d964b147491fadba3 |
|
54334a3
clean up comment
alexander-alderman-webb Aug 12, 2026
| https://github.com/getsentry/sentry-python/pull/7170/commits/54334a33205b1f197b18ef487b1fc612ef6a16ad |
|
Clear filters
| https://github.com/getsentry/sentry-python/pull/7170/files |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7170/files |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7170/files |
|
_span_batcher.py
| https://github.com/getsentry/sentry-python/pull/7170/files#diff-f400f2b5275be953a87e1a2fa25659221ab46d1f696f7d1104694c55ea621189 |
|
conftest.py
| https://github.com/getsentry/sentry-python/pull/7170/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128 |
|
test_basic.py
| https://github.com/getsentry/sentry-python/pull/7170/files#diff-18f1bd8241119d62eddf36e6bf69d0f29bd8968bf2aca21d9d6238040c60189b |
|
test_cache_module.py
| https://github.com/getsentry/sentry-python/pull/7170/files#diff-c1f33e78b1097a7bf798677671ca8e96a19673afcac6faa0c7637e2f953f6fee |
|
test_flask.py
| https://github.com/getsentry/sentry-python/pull/7170/files#diff-01db75b6a9e974a9450a181c711ba26dbff2f28520e7c4ff2044fbf0efa8af7d |
|
test_span_batcher.py
| https://github.com/getsentry/sentry-python/pull/7170/files#diff-770f63c0b84ba5cc921a4cde924003962d60143916fb5eab5e8b901f6f25458d |
|
test_span_streaming.py
| https://github.com/getsentry/sentry-python/pull/7170/files#diff-e2e61cb0ef656c44ac2595edfd38baa79c29327254e95505cba4e2aa9fcfa514 |
|
| https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1 |
| sentry_sdk/_span_batcher.py | https://github.com/getsentry/sentry-python/pull/7170/files#diff-f400f2b5275be953a87e1a2fa25659221ab46d1f696f7d1104694c55ea621189 |
|
View file
| https://github.com/getsentry/sentry-python/blob/54334a33205b1f197b18ef487b1fc612ef6a16ad/sentry_sdk/_span_batcher.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/getsentry/sentry-python/pull/7170/{{ revealButtonHref }} |
|
| https://github.com/getsentry/sentry-python/pull/7170/files#diff-f400f2b5275be953a87e1a2fa25659221ab46d1f696f7d1104694c55ea621189 |
|
| https://github.com/getsentry/sentry-python/pull/7170/files#diff-f400f2b5275be953a87e1a2fa25659221ab46d1f696f7d1104694c55ea621189 |
|
| https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1 |
| tests/conftest.py | https://github.com/getsentry/sentry-python/pull/7170/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128 |
|
View file
| https://github.com/getsentry/sentry-python/blob/54334a33205b1f197b18ef487b1fc612ef6a16ad/tests/conftest.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/getsentry/sentry-python/pull/7170/{{ revealButtonHref }} |
|
| https://github.com/getsentry/sentry-python/pull/7170/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128 |
|
| https://github.com/getsentry/sentry-python/pull/7170/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128 |
|
| https://github.com/getsentry/sentry-python/pull/7170/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128 |
| ericapisani | https://github.com/ericapisani |
| Aug 12, 2026 | https://github.com/getsentry/sentry-python/pull/7170/files#r3766725881 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7170/files |
| alexander-alderman-webb | https://github.com/alexander-alderman-webb |
| Aug 12, 2026 | https://github.com/getsentry/sentry-python/pull/7170/files#r3767075659 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| sentry-python/sentry_sdk/_span_batcher.py | https://github.com/getsentry/sentry-python/blob/4e4ea83b4fafaae3d53e68d756c55c74fee37545/sentry_sdk/_span_batcher.py#L94 |
| 4e4ea83 | https://github.com/getsentry/sentry-python/commit/4e4ea83b4fafaae3d53e68d756c55c74fee37545 |
| sentry-python/sentry_sdk/client.py | https://github.com/getsentry/sentry-python/blob/4e4ea83b4fafaae3d53e68d756c55c74fee37545/sentry_sdk/client.py#L1381 |
| 4e4ea83 | https://github.com/getsentry/sentry-python/commit/4e4ea83b4fafaae3d53e68d756c55c74fee37545 |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7170/files |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7170/files |
|
| https://github.com/getsentry/sentry-python/pull/7170/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128 |
|
| https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1 |
| tests/integrations/django/test_basic.py | https://github.com/getsentry/sentry-python/pull/7170/files#diff-18f1bd8241119d62eddf36e6bf69d0f29bd8968bf2aca21d9d6238040c60189b |
|
View file
| https://github.com/getsentry/sentry-python/blob/54334a33205b1f197b18ef487b1fc612ef6a16ad/tests/integrations/django/test_basic.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/getsentry/sentry-python/pull/7170/{{ revealButtonHref }} |
|
| https://github.com/getsentry/sentry-python/pull/7170/files#diff-18f1bd8241119d62eddf36e6bf69d0f29bd8968bf2aca21d9d6238040c60189b |
|
| https://github.com/getsentry/sentry-python/pull/7170/files#diff-18f1bd8241119d62eddf36e6bf69d0f29bd8968bf2aca21d9d6238040c60189b |
|
| https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1 |
| tests/integrations/django/test_cache_module.py | https://github.com/getsentry/sentry-python/pull/7170/files#diff-c1f33e78b1097a7bf798677671ca8e96a19673afcac6faa0c7637e2f953f6fee |
|
View file
| https://github.com/getsentry/sentry-python/blob/54334a33205b1f197b18ef487b1fc612ef6a16ad/tests/integrations/django/test_cache_module.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/getsentry/sentry-python/pull/7170/{{ revealButtonHref }} |
|
| https://github.com/getsentry/sentry-python/pull/7170/files#diff-c1f33e78b1097a7bf798677671ca8e96a19673afcac6faa0c7637e2f953f6fee |
|
| https://github.com/getsentry/sentry-python/pull/7170/files#diff-c1f33e78b1097a7bf798677671ca8e96a19673afcac6faa0c7637e2f953f6fee |
|
| https://github.com/getsentry/sentry-python/pull/7170/files#diff-c1f33e78b1097a7bf798677671ca8e96a19673afcac6faa0c7637e2f953f6fee |
|
| https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1 |
| tests/integrations/flask/test_flask.py | https://github.com/getsentry/sentry-python/pull/7170/files#diff-01db75b6a9e974a9450a181c711ba26dbff2f28520e7c4ff2044fbf0efa8af7d |
|
View file
| https://github.com/getsentry/sentry-python/blob/54334a33205b1f197b18ef487b1fc612ef6a16ad/tests/integrations/flask/test_flask.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/getsentry/sentry-python/pull/7170/{{ revealButtonHref }} |
|
| https://github.com/getsentry/sentry-python/pull/7170/files#diff-01db75b6a9e974a9450a181c711ba26dbff2f28520e7c4ff2044fbf0efa8af7d |
|
| https://github.com/getsentry/sentry-python/pull/7170/files#diff-01db75b6a9e974a9450a181c711ba26dbff2f28520e7c4ff2044fbf0efa8af7d |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7170/files |
| Please reload this page | https://github.com/getsentry/sentry-python/pull/7170/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 |