René's URL Explorer Experiment


Title: feat(aws-lambda): Add span streaming support to AWS Lambda integration by ericapisani · Pull Request #6498 · getsentry/sentry-python · GitHub

Open Graph Title: feat(aws-lambda): Add span streaming support to AWS Lambda integration by ericapisani · Pull Request #6498 · getsentry/sentry-python

X Title: feat(aws-lambda): Add span streaming support to AWS Lambda integration by ericapisani · Pull Request #6498 · getsentry/sentry-python

Description: feat(aws-lambda): Add span streaming support to AWS Lambda integration When span streaming is enabled via the trace_lifecycle experiment, use sentry_sdk.traces.start_span instead of start_transaction so the function span is emitted as a span envelope item with OTel-compatible attributes (cloud.provider, cloud.platform, faas., aws.lambda.). Also adds CLOUD_PLATFORM.AWS_LAMBDA constant and updates the test server helper to route span envelope items into a separate span_items list so tests can assert on streamed spans independently of error envelopes. Depends on getsentry/sentry-conventions#414 being shipped first as it introduces a number of the conventions used here Fixes PY-2307 Fixes #6005

Open Graph Description: feat(aws-lambda): Add span streaming support to AWS Lambda integration When span streaming is enabled via the trace_lifecycle experiment, use sentry_sdk.traces.start_span instead of start_transacti...

X Description: feat(aws-lambda): Add span streaming support to AWS Lambda integration When span streaming is enabled via the trace_lifecycle experiment, use sentry_sdk.traces.start_span instead of start_transacti...

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

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:b6f2ba6d-a9f1-0456-31ce-be9b6cc92271
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC62C:2564F:749E9C:9C4501:6B00D836
html-safe-nonce0c9e4b46ec4b96b3a2bf97e7e022a929b925e38ac9f1019a6e1956f34a712f32
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjJDOjI1NjRGOjc0OUU5Qzo5QzQ1MDE6NkIwMEQ4MzYiLCJ2aXNpdG9yX2lkIjoiMjUyODYyOTc2Nzg4MDYyODI3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacae45d65c58b3d49bb5af137c031f35499caeedf39898031043039392df6e64fb
hovercard-subject-tagpull_request:3797926957
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/6498/files
twitter:imagehttps://avatars.githubusercontent.com/u/5655473?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5655473?s=400&v=4
og:image:altfeat(aws-lambda): Add span streaming support to AWS Lambda integration When span streaming is enabled via the trace_lifecycle experiment, use sentry_sdk.traces.start_span instead of start_transacti...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b
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
release84c8c5cc25e2fb7f2308428458538436baecc6d2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/pull/6498/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F6498%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%2F6498%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/6498/files
Reloadhttps://github.com/getsentry/sentry-python/pull/6498/files
Reloadhttps://github.com/getsentry/sentry-python/pull/6498/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
ericapisanihttps://github.com/ericapisani
masterhttps://github.com/getsentry/sentry-python/tree/master
py-2307-migrate-aws-lambdahttps://github.com/getsentry/sentry-python/tree/py-2307-migrate-aws-lambda
Conversation 8 https://github.com/getsentry/sentry-python/pull/6498
Commits 6 https://github.com/getsentry/sentry-python/pull/6498/commits
Checks 144 https://github.com/getsentry/sentry-python/pull/6498/checks
Files changed https://github.com/getsentry/sentry-python/pull/6498/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6498/files
feat(aws-lambda): Add span streaming support to AWS Lambda integration https://github.com/getsentry/sentry-python/pull/6498/files#top
Show all changes 6 commits https://github.com/getsentry/sentry-python/pull/6498/files
5bef11c feat(aws-lambda): Add span streaming support to AWS Lambda integration ericapisani Jun 3, 2026 https://github.com/getsentry/sentry-python/pull/6498/commits/5bef11cd271de6ca6204fc9f82dd04806782e961
590ec69 Update tests to not filter for segment spans - we know the order in w… ericapisani Jun 3, 2026 https://github.com/getsentry/sentry-python/pull/6498/commits/590ec6959df693b40162e8432552df044f8a0b8c
1047bdb Filter for segment to avoid the flaky case where http.client spans ar… ericapisani Jun 4, 2026 https://github.com/getsentry/sentry-python/pull/6498/commits/1047bdb80200dd58a33631ed63f1d00ece6b1c12
976c97d Add info about the size of the batch that was previously added on tag ericapisani Jun 4, 2026 https://github.com/getsentry/sentry-python/pull/6498/commits/976c97d43167c6f7cd2069c30a7c2394f5da3282
3d9451f Address the encoding issue raised by warden ericapisani Jun 4, 2026 https://github.com/getsentry/sentry-python/pull/6498/commits/3d9451fbfa80dabb49069e1cddd5c4a26bd922f3
c744f3e lint ericapisani Jun 4, 2026 https://github.com/getsentry/sentry-python/pull/6498/commits/c744f3e4f9cc5ad0566e812b5dec07030bc816ce
Clear filters https://github.com/getsentry/sentry-python/pull/6498/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6498/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6498/files
aws_lambda.py https://github.com/getsentry/sentry-python/pull/6498/files#diff-238dfe566f7c7d1a51c4dec7945d5ddad3ce62a2a9b04d9868e074eb6ead480e
cloud_resource_context.py https://github.com/getsentry/sentry-python/pull/6498/files#diff-0a4c8f69a5028e995c44ef20b3a8e95badebb70b3dbeea743daee10cfe90d8a6
.gitignore https://github.com/getsentry/sentry-python/pull/6498/files#diff-d19b6197c8ef4149c977057ffb222d981aeaee870d13eb0438af1b9db33e4e0b
index.py https://github.com/getsentry/sentry-python/pull/6498/files#diff-42531f43ebd923b7f44f31429fb040f2100d8fd00765862e6c8f2b0f98dfc723
.gitignore https://github.com/getsentry/sentry-python/pull/6498/files#diff-d4847c3b1633cbed3b54797cc8b667ecb92a5124c841930e37905b34b47d9930
index.py https://github.com/getsentry/sentry-python/pull/6498/files#diff-a3e363bb23d6dbaa4395345f8ed7de49c94c8f8f08a5f364fb97aa229b4d42ee
.gitignore https://github.com/getsentry/sentry-python/pull/6498/files#diff-66f86304aced746033cdd1bc203b37af02765aa5023cc280afdc16d3e8a4c91a
index.py https://github.com/getsentry/sentry-python/pull/6498/files#diff-6737e48286fff1b6daa56890ae6fad6880c379581e1c504deaca434e8c238454
test_aws_lambda.py https://github.com/getsentry/sentry-python/pull/6498/files#diff-a04fe015bb221641f947f35df5cb4bd91b1166c0e0d279b7d09e1fc09f482282
utils.py https://github.com/getsentry/sentry-python/pull/6498/files#diff-f59d72a2edf344dc1662557a1e43e7e2bddd6a5fc3bf4ca7b88beb48e0074fc7
tox.ini https://github.com/getsentry/sentry-python/pull/6498/files#diff-ef2cef9f88b4fe09ca3082140e67f5ad34fb65fb6e228f119d3812261ae51449
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
sentry_sdk/integrations/aws_lambda.pyhttps://github.com/getsentry/sentry-python/pull/6498/files#diff-238dfe566f7c7d1a51c4dec7945d5ddad3ce62a2a9b04d9868e074eb6ead480e
View file https://github.com/getsentry/sentry-python/blob/c744f3e4f9cc5ad0566e812b5dec07030bc816ce/sentry_sdk/integrations/aws_lambda.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/6498/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/6498/files#diff-238dfe566f7c7d1a51c4dec7945d5ddad3ce62a2a9b04d9868e074eb6ead480e
https://github.com/getsentry/sentry-python/pull/6498/files#diff-238dfe566f7c7d1a51c4dec7945d5ddad3ce62a2a9b04d9868e074eb6ead480e
https://github.com/getsentry/sentry-python/pull/6498/files#diff-238dfe566f7c7d1a51c4dec7945d5ddad3ce62a2a9b04d9868e074eb6ead480e
https://github.com/getsentry/sentry-python/pull/6498/files#diff-238dfe566f7c7d1a51c4dec7945d5ddad3ce62a2a9b04d9868e074eb6ead480e
https://github.com/getsentry/sentry-python/pull/6498/files#diff-238dfe566f7c7d1a51c4dec7945d5ddad3ce62a2a9b04d9868e074eb6ead480e
https://github.com/getsentry/sentry-python/pull/6498/files#diff-238dfe566f7c7d1a51c4dec7945d5ddad3ce62a2a9b04d9868e074eb6ead480e
https://github.com/getsentry/sentry-python/pull/6498/files#diff-238dfe566f7c7d1a51c4dec7945d5ddad3ce62a2a9b04d9868e074eb6ead480e
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
sentry_sdk/integrations/cloud_resource_context.pyhttps://github.com/getsentry/sentry-python/pull/6498/files#diff-0a4c8f69a5028e995c44ef20b3a8e95badebb70b3dbeea743daee10cfe90d8a6
View file https://github.com/getsentry/sentry-python/blob/c744f3e4f9cc5ad0566e812b5dec07030bc816ce/sentry_sdk/integrations/cloud_resource_context.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/6498/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/6498/files#diff-0a4c8f69a5028e995c44ef20b3a8e95badebb70b3dbeea743daee10cfe90d8a6
https://github.com/getsentry/sentry-python/pull/6498/files#diff-0a4c8f69a5028e995c44ef20b3a8e95badebb70b3dbeea743daee10cfe90d8a6
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
...ntegrations/aws_lambda/lambda_functions_with_embedded_sdk/BasicOkSpanStreaming/.gitignorehttps://github.com/getsentry/sentry-python/pull/6498/files#diff-d19b6197c8ef4149c977057ffb222d981aeaee870d13eb0438af1b9db33e4e0b
View file https://github.com/getsentry/sentry-python/blob/c744f3e4f9cc5ad0566e812b5dec07030bc816ce/tests/integrations/aws_lambda/lambda_functions_with_embedded_sdk/BasicOkSpanStreaming/.gitignore
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/6498/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
.../integrations/aws_lambda/lambda_functions_with_embedded_sdk/BasicOkSpanStreaming/index.pyhttps://github.com/getsentry/sentry-python/pull/6498/files#diff-42531f43ebd923b7f44f31429fb040f2100d8fd00765862e6c8f2b0f98dfc723
View file https://github.com/getsentry/sentry-python/blob/c744f3e4f9cc5ad0566e812b5dec07030bc816ce/tests/integrations/aws_lambda/lambda_functions_with_embedded_sdk/BasicOkSpanStreaming/index.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/6498/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
...grations/aws_lambda/lambda_functions_with_embedded_sdk/BasicOkSpanStreamingPii/.gitignorehttps://github.com/getsentry/sentry-python/pull/6498/files#diff-d4847c3b1633cbed3b54797cc8b667ecb92a5124c841930e37905b34b47d9930
View file https://github.com/getsentry/sentry-python/blob/c744f3e4f9cc5ad0566e812b5dec07030bc816ce/tests/integrations/aws_lambda/lambda_functions_with_embedded_sdk/BasicOkSpanStreamingPii/.gitignore
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/6498/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
...tegrations/aws_lambda/lambda_functions_with_embedded_sdk/BasicOkSpanStreamingPii/index.pyhttps://github.com/getsentry/sentry-python/pull/6498/files#diff-a3e363bb23d6dbaa4395345f8ed7de49c94c8f8f08a5f364fb97aa229b4d42ee
View file https://github.com/getsentry/sentry-python/blob/c744f3e4f9cc5ad0566e812b5dec07030bc816ce/tests/integrations/aws_lambda/lambda_functions_with_embedded_sdk/BasicOkSpanStreamingPii/index.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/6498/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
...grations/aws_lambda/lambda_functions_with_embedded_sdk/RaiseErrorSpanStreaming/.gitignorehttps://github.com/getsentry/sentry-python/pull/6498/files#diff-66f86304aced746033cdd1bc203b37af02765aa5023cc280afdc16d3e8a4c91a
View file https://github.com/getsentry/sentry-python/blob/c744f3e4f9cc5ad0566e812b5dec07030bc816ce/tests/integrations/aws_lambda/lambda_functions_with_embedded_sdk/RaiseErrorSpanStreaming/.gitignore
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/6498/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
...tegrations/aws_lambda/lambda_functions_with_embedded_sdk/RaiseErrorSpanStreaming/index.pyhttps://github.com/getsentry/sentry-python/pull/6498/files#diff-6737e48286fff1b6daa56890ae6fad6880c379581e1c504deaca434e8c238454
View file https://github.com/getsentry/sentry-python/blob/c744f3e4f9cc5ad0566e812b5dec07030bc816ce/tests/integrations/aws_lambda/lambda_functions_with_embedded_sdk/RaiseErrorSpanStreaming/index.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/6498/{{ revealButtonHref }}
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6498/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/6498/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.