René's URL Explorer Experiment


Title: feat(boto3): Add SQS/SNS trace propagation by pabloDeputter · Pull Request #8145 · getsentry/sentry-python · GitHub

Open Graph Title: feat(boto3): Add SQS/SNS trace propagation by pabloDeputter · Pull Request #8145 · getsentry/sentry-python

X Title: feat(boto3): Add SQS/SNS trace propagation by pabloDeputter · Pull Request #8145 · getsentry/sentry-python

Description: Description Propagates the trace through SQS and SNS messages, so the consumer can be linked back to the request that sent the message. Send side (SendMessage, SendMessageBatch, Publish, PublishBatch): Adds sentry-trace and baggage as String message attributes, on the message or on each batch entry. Only when trace_propagation_targets match the endpoint. Skips a message if the caller already set these attributes, if it would go over the 10-attribute limit, or if it would go over 256 KiB. AWS would reject the message otherwise. Works on a copy of the params. The caller's dict isn't changed. Receive side (ReceiveMessage): Adds sentry-trace and baggage to MessageAttributeNames, so SQS returns them. Only when the span is recorded, and not when the caller already asks for All or .*. Adds a span link to each distinct producer context in the received messages, with sentry.link.type: message_origin. Reads the context from SQS message attributes, and from the JSON envelope of an SNS notification without raw message delivery. Tests: injection and extraction for single and batch calls, the limits above, and a round-trip test: send a message, receive what was injected, and check that the link points at the send span. Stacked on #8142 (SNS), which is stacked on #8137 (SQS). Issues resolves: PY-3008 via @dingsdax. -- View Session [Sentry]

Open Graph Description: Description Propagates the trace through SQS and SNS messages, so the consumer can be linked back to the request that sent the message. Send side (SendMessage, SendMessageBatch, Publish, PublishBat...

X Description: Description Propagates the trace through SQS and SNS messages, so the consumer can be linked back to the request that sent the message. Send side (SendMessage, SendMessageBatch, Publish, PublishBat...

Opengraph URL: https://github.com/getsentry/sentry-python/pull/8145

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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-controllerpull_requests
route-actionfiles
fetch-noncev2:b6c060c4-0c84-9098-d201-f8cfd6db5b71
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8214:26ECEB:6DB79B:8F378C:6B00D2BE
html-safe-nonce79c1b84042380464f3731b59360130de4ee3583500c60767e0bc30f63f51e2cb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjE0OjI2RUNFQjo2REI3OUI6OEYzNzhDOjZCMDBEMkJFIiwidmlzaXRvcl9pZCI6IjYyMDIwMjE0NDY4MTkwNDE5ODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacfedf9604274a5bfd81ca6f7bed4bb3ebf559ee9365017a04c331cdf31d9bc531
hovercard-subject-tagpull_request:5065870939
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/getsentry/sentry-python/pull/8145/files
twitter:imagehttps://avatars.githubusercontent.com/u/71842639?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/71842639?s=400&v=4
og:image:altDescription Propagates the trace through SQS and SNS messages, so the consumer can be linked back to the request that sent the message. Send side (SendMessage, SendMessageBatch, Publish, PublishBat...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None85bbdfe2b6ba16e234513bc6ceff5d848ef8449820c900692a2b4e67061931e5
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id137814779
octolytics-dimension-repository_nwogetsentry/sentry-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id137814779
octolytics-dimension-repository_network_root_nwogetsentry/sentry-python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4943239a6d2c591325dad6e5c313e1cafda877f6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/pull/8145/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F8145%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F8145%2Ffiles
Sign uphttps://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
Reloadhttps://github.com/getsentry/sentry-python/pull/8145/files
Reloadhttps://github.com/getsentry/sentry-python/pull/8145/files
Reloadhttps://github.com/getsentry/sentry-python/pull/8145/files
getsentryhttps://github.com/getsentry
sentry-pythonhttps://github.com/getsentry/sentry-python
Codehttps://github.com/getsentry/sentry-python
Issues345 (345)https://github.com/getsentry/sentry-python/issues
Pull requests42 (42)https://github.com/getsentry/sentry-python/pulls
Discussionshttps://github.com/getsentry/sentry-python/discussions
Actionshttps://github.com/getsentry/sentry-python/actions
Security and quality2 (2)https://github.com/getsentry/sentry-python/security
Insightshttps://github.com/getsentry/sentry-python/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fgetsentry%2Fsentry-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgetsentry%2Fsentry-python%2Fissues%2Fnew%2Fchoose
sentrivanahttps://github.com/sentrivana
major/3.0https://github.com/getsentry/sentry-python/tree/major/3.0
pablo/boto3-add-sqs/sns-propagationhttps://github.com/getsentry/sentry-python/tree/pablo/boto3-add-sqs/sns-propagation
Conversation 4 https://github.com/getsentry/sentry-python/pull/8145
Commits 23 https://github.com/getsentry/sentry-python/pull/8145/commits
Checks 154 https://github.com/getsentry/sentry-python/pull/8145/checks
Files changed https://github.com/getsentry/sentry-python/pull/8145/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/8145/files
feat(boto3): Add SQS/SNS trace propagation https://github.com/getsentry/sentry-python/pull/8145/files#top
Show all changes 23 commits https://github.com/getsentry/sentry-python/pull/8145/files
70dca2a . pabloDeputter Oct 26, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/70dca2abe81b786685d089e3e7e541290268e317
0f90423 wip pabloDeputter Oct 27, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/0f904231b43598cf6c6c16dd20933b0b2f8c3bf2
053099c . pabloDeputter Oct 26, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/053099c9578f0ffe273ad6aa502fb8d7a33dad2a
c73d9ba fix(boto3): Add `capture_internal_exceptions()` guard to `get_span_na… pabloDeputter Oct 28, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/c73d9ba872907ab99c77eb7206f968b61f9220e6
61994bf fix(boto3): Simplify error type handling in batch operations pabloDeputter Oct 28, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/61994bf639603921585f14f8a313facf4b0493aa
6ccbcd8 wip pabloDeputter Oct 28, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/6ccbcd846f6572bab0c4d37127b62836fbeb4bee
9235dd0 Merge branch 'major/3.0' into pablo/boto3-add-sqs-extension pabloDeputter Oct 28, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/9235dd04369d1d4ff38f43d87a1e692986ad6e16
be20b35 Merge branch 'pablo/boto3-add-sqs-extension' into pablo/boto3-add-sns… pabloDeputter Oct 28, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/be20b35aca35857ce3ccb8eef8747df6473455e2
50a49d1 add "publish_batch" method requirement pabloDeputter Oct 28, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/50a49d1655072f8a76fc7f53245220648fa4c6ac
4738824 fix pabloDeputter Oct 28, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/4738824fba6517c91a69e4c7532c218303f645f3
d810859 wip: check CI for different botocore versions pabloDeputter Oct 29, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/d81085973646a6700778338b003b0a8f2b3f2126
c640799 fix(boto3): make sure span is sent pabloDeputter Oct 30, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/c640799da086e733083e4f808952eb51e95d0eef
f6c8099 Merge remote-tracking branch 'origin/major/3.0' into pablo/boto3-add-… sentry-junior[bot] Nov 9, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/f6c80994ff07938e1019e8f2b3921f0f61f9d91c
0cb573d Merge branch 'pablo/boto3-add-sqs-extension' into pablo/boto3-add-sns… sentry-junior[bot] Nov 9, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/0cb573df0848f686470ba845a3a4b282bd990b2a
3bb4eab Merge branch 'pablo/boto3-add-sns-extension' into prop sentry-junior[bot] Nov 9, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/3bb4eab424a9e3ef9a0981a278391da8522d3857
bb65d32 test(boto3): Round-trip SQS/SNS trace propagation sentry-junior[bot] Nov 9, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/bb65d326f7a38b72fa12b41e97cb1e0cd55be0f1
48eae1c ref(boto3): Guard SQS ARN and batch-count reads separately sentry-junior[bot] Nov 9, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/48eae1cfb41695e21fd7ebec5664e8e646bf42f1
0e58846 Merge branch 'pablo/boto3-add-sqs-extension' into pablo/boto3-add-sns… sentry-junior[bot] Nov 9, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/0e58846e9fd8017d5d384f5ad3a45d1eeb0f19c6
54710b7 ref(boto3): Share the batch error.type code with SQS sentry-junior[bot] Nov 9, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/54710b71f6488903dc074a1c5777c88d77eea178
3d35077 Merge branch 'pablo/boto3-add-sns-extension' into pablo/boto3-add-sqs… sentry-junior[bot] Nov 9, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/3d350776cfd82fcefe8292124aca81b0f195f919
7d93a71 Merge branch 'major/3.0' into pablo/boto3-add-sqs/sns-propagation sentrivana Nov 11, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/7d93a71c8941fe81e33e11960fe8fbcc5a8cbfd2
0966c93 ref(boto3): Remove duplicated span name override sentry-junior[bot] Nov 11, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/0966c93839f81defdd35393fd3fef7fee5527dc6
73b5bf7 Merge remote-tracking branch 'origin/major/3.0' into pablo/boto3-add-… sentry-junior[bot] Nov 11, 2026 https://github.com/getsentry/sentry-python/pull/8145/commits/73b5bf79c2ff3cf55fec1ab993b8b3a636fd4bbc
Clear filters https://github.com/getsentry/sentry-python/pull/8145/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/8145/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/8145/files
consts.py https://github.com/getsentry/sentry-python/pull/8145/files#diff-719f41f07f1275f8a1b02085180aa234b257226fc976d776ebef5d8dff9db017
sns.py https://github.com/getsentry/sentry-python/pull/8145/files#diff-1dfc5ad00c8fb0a99a0894db395df84b79898280847c305cf684077e7346c729
sqs.py https://github.com/getsentry/sentry-python/pull/8145/files#diff-bbd7bfc71adf1d59f7636024a96cece43de66884325c6c6451893030ebfdada7
_utils.py https://github.com/getsentry/sentry-python/pull/8145/files#diff-2b1e82d16283ac767318c81c24f432ddaa946ca8c66465686e9c5f8e7671bdad
test_sqs.py https://github.com/getsentry/sentry-python/pull/8145/files#diff-8abc3f86c37d7b8740a54bc41423b27e855890d29de17653a15f218cd22a48e4
test_trace_propagation.py https://github.com/getsentry/sentry-python/pull/8145/files#diff-2dcb7032ba88576d48c1fa5c30d0a1417f9f9ba146361d401a02fdd9d6a75796
https://github.com/getsentry/sentry-python/blob/major/3.0/.github/CODEOWNERS#L1
sentry_sdk/consts.pyhttps://github.com/getsentry/sentry-python/pull/8145/files#diff-719f41f07f1275f8a1b02085180aa234b257226fc976d776ebef5d8dff9db017
View file https://github.com/getsentry/sentry-python/blob/73b5bf79c2ff3cf55fec1ab993b8b3a636fd4bbc/sentry_sdk/consts.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/8145/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/8145/files#diff-719f41f07f1275f8a1b02085180aa234b257226fc976d776ebef5d8dff9db017
https://github.com/getsentry/sentry-python/pull/8145/files#diff-719f41f07f1275f8a1b02085180aa234b257226fc976d776ebef5d8dff9db017
https://github.com/getsentry/sentry-python/blob/major/3.0/.github/CODEOWNERS#L1
sentry_sdk/integrations/boto3/_services/sns.pyhttps://github.com/getsentry/sentry-python/pull/8145/files#diff-1dfc5ad00c8fb0a99a0894db395df84b79898280847c305cf684077e7346c729
View file https://github.com/getsentry/sentry-python/blob/73b5bf79c2ff3cf55fec1ab993b8b3a636fd4bbc/sentry_sdk/integrations/boto3/_services/sns.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/8145/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/8145/files#diff-1dfc5ad00c8fb0a99a0894db395df84b79898280847c305cf684077e7346c729
https://github.com/getsentry/sentry-python/pull/8145/files#diff-1dfc5ad00c8fb0a99a0894db395df84b79898280847c305cf684077e7346c729
https://github.com/getsentry/sentry-python/pull/8145/files#diff-1dfc5ad00c8fb0a99a0894db395df84b79898280847c305cf684077e7346c729
https://github.com/getsentry/sentry-python/blob/major/3.0/.github/CODEOWNERS#L1
sentry_sdk/integrations/boto3/_services/sqs.pyhttps://github.com/getsentry/sentry-python/pull/8145/files#diff-bbd7bfc71adf1d59f7636024a96cece43de66884325c6c6451893030ebfdada7
View file https://github.com/getsentry/sentry-python/blob/73b5bf79c2ff3cf55fec1ab993b8b3a636fd4bbc/sentry_sdk/integrations/boto3/_services/sqs.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/8145/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/8145/files#diff-bbd7bfc71adf1d59f7636024a96cece43de66884325c6c6451893030ebfdada7
https://github.com/getsentry/sentry-python/pull/8145/files#diff-bbd7bfc71adf1d59f7636024a96cece43de66884325c6c6451893030ebfdada7
https://github.com/getsentry/sentry-python/pull/8145/files#diff-bbd7bfc71adf1d59f7636024a96cece43de66884325c6c6451893030ebfdada7
https://github.com/getsentry/sentry-python/pull/8145/files#diff-bbd7bfc71adf1d59f7636024a96cece43de66884325c6c6451893030ebfdada7
https://github.com/getsentry/sentry-python/blob/major/3.0/.github/CODEOWNERS#L1
sentry_sdk/integrations/boto3/_utils.pyhttps://github.com/getsentry/sentry-python/pull/8145/files#diff-2b1e82d16283ac767318c81c24f432ddaa946ca8c66465686e9c5f8e7671bdad
View file https://github.com/getsentry/sentry-python/blob/73b5bf79c2ff3cf55fec1ab993b8b3a636fd4bbc/sentry_sdk/integrations/boto3/_utils.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/8145/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/8145/files#diff-2b1e82d16283ac767318c81c24f432ddaa946ca8c66465686e9c5f8e7671bdad
https://github.com/getsentry/sentry-python/pull/8145/files#diff-2b1e82d16283ac767318c81c24f432ddaa946ca8c66465686e9c5f8e7671bdad
https://github.com/getsentry/sentry-python/pull/8145/files#diff-2b1e82d16283ac767318c81c24f432ddaa946ca8c66465686e9c5f8e7671bdad
https://github.com/getsentry/sentry-python/blob/major/3.0/.github/CODEOWNERS#L1
tests/integrations/boto3/test_sqs.pyhttps://github.com/getsentry/sentry-python/pull/8145/files#diff-8abc3f86c37d7b8740a54bc41423b27e855890d29de17653a15f218cd22a48e4
View file https://github.com/getsentry/sentry-python/blob/73b5bf79c2ff3cf55fec1ab993b8b3a636fd4bbc/tests/integrations/boto3/test_sqs.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/8145/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/8145/files#diff-8abc3f86c37d7b8740a54bc41423b27e855890d29de17653a15f218cd22a48e4
https://github.com/getsentry/sentry-python/pull/8145/files#diff-8abc3f86c37d7b8740a54bc41423b27e855890d29de17653a15f218cd22a48e4
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/8145/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/8145/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.