René's URL Explorer Experiment


Title: feat(serverless): Python Serverless nocode instrumentation by ahmedetefy · Pull Request #1004 · getsentry/sentry-python · GitHub

Open Graph Title: feat(serverless): Python Serverless nocode instrumentation by ahmedetefy · Pull Request #1004 · getsentry/sentry-python

X Title: feat(serverless): Python Serverless nocode instrumentation by ahmedetefy · Pull Request #1004 · getsentry/sentry-python

Description: This PR adds the feature of being able to instrument python SDK into AWS lambda function without requiring the user to explicitly install the sentry SDK or initialize it What was done in the PR? Renamed scripts/build-aws-layer.py to scripts/build_aws_layer.py so that it is importable Refactored build_aws_layer.py so that the code is reusable Added scripts/init_serverless_sdk.py to initialize serverless sdk and reinvoke the Aws lambda layer handler function once initializing is complete. It is added to serverless sdk zip when it is created but is not part of the official sdk e2e test to ensure that the no code instrumentation works

Open Graph Description: This PR adds the feature of being able to instrument python SDK into AWS lambda function without requiring the user to explicitly install the sentry SDK or initialize it What was done in the PR? R...

X Description: This PR adds the feature of being able to instrument python SDK into AWS lambda function without requiring the user to explicitly install the sentry SDK or initialize it What was done in the PR? R...

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

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:350a105d-eabd-d44d-4fbf-9a4d8814e3fc
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9E20:4279A:57EDC8:7850F7:6B00D4AB
html-safe-nonce0c6a00bc9aaf34f0ba2b63956d54f700fc8e5d1b3a870340e0aef5d11f725b3e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTIwOjQyNzlBOjU3RURDODo3ODUwRjc6NkIwMEQ0QUIiLCJ2aXNpdG9yX2lkIjoiMTYxMDgwNTA4MzYxMDYwMDYxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0ca3c0605ca4fee55b95d1e6d091dda1bc2ed4ff0e87b2e24de44b610d0c235a
hovercard-subject-tagpull_request:571058958
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/1004/files
twitter:imagehttps://avatars.githubusercontent.com/u/10855986?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/10855986?s=400&v=4
og:image:altThis PR adds the feature of being able to instrument python SDK into AWS lambda function without requiring the user to explicitly install the sentry SDK or initialize it What was done in the PR? R...
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/1004/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F1004%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%2F1004%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/1004/files
Reloadhttps://github.com/getsentry/sentry-python/pull/1004/files
Reloadhttps://github.com/getsentry/sentry-python/pull/1004/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
ahmedetefyhttps://github.com/ahmedetefy
masterhttps://github.com/getsentry/sentry-python/tree/master
feat/python_serverless_nocode_instrumentationhttps://github.com/getsentry/sentry-python/tree/feat/python_serverless_nocode_instrumentation
Conversation 2 https://github.com/getsentry/sentry-python/pull/1004
Commits 29 https://github.com/getsentry/sentry-python/pull/1004/commits
Checks 0 https://github.com/getsentry/sentry-python/pull/1004/checks
Files changed https://github.com/getsentry/sentry-python/pull/1004/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/1004/files
feat(serverless): Python Serverless nocode instrumentation https://github.com/getsentry/sentry-python/pull/1004/files#top
Show all changes 29 commits https://github.com/getsentry/sentry-python/pull/1004/files
32a97c8 Moved logic from aws_lambda.py to aws_lambda.__init__ ahmedetefy Feb 10, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/32a97c80597eb5bed347743a371828466a974085
913be92 Added init function that revokes original handler ahmedetefy Feb 10, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/913be92764e75f5f81590b3ecbffcf87164164bc
77d57e8 Added documentation ahmedetefy Feb 10, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/77d57e87cdb67abf6a39f5def3d72f49dfd4eaaa
1c03288 fix: Formatting Feb 10, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/1c032881e1dc8b46bc22eab690ad3a2aee623b64
d0e21f8 Added test definition for serverless no code instrumentation ahmedetefy Feb 11, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/d0e21f8ea01a733bd25eb69f6323820eeaa7fbfa
e31ef7c TODO comments ahmedetefy Feb 11, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/e31ef7c3842b4d4d38309c14748973e9ad06306f
6a6c669 Merge branch 'master' of github.com:getsentry/sentry-python into feat… ahmedetefy Feb 11, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/6a6c66923d9e9d9f404f1842a5b30e1439fb0ab0
80ce8eb Merge branch 'master' of github.com:getsentry/sentry-python into feat… ahmedetefy Feb 11, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/80ce8ebea265bdea8063968eda676f8219df7a3a
092a182 Refactored AWSLambda Layer script and fixed missing dir bug ahmedetefy Feb 12, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/092a1823b91e80ac0e840d8e35c6dca60802a385
4a74db6 Removed redunant line ahmedetefy Feb 12, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/4a74db6cff3e57f6c6d09fdc98a65a3e9700a235
90b5a2d Organized import ahmedetefy Feb 12, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/90b5a2d1c3ed38f8a5e1d16f95f156aae835a745
ae39bd2 Moved build-aws-layer script to integrations/aws_lambda ahmedetefy Feb 12, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/ae39bd2f4e26fc3586b6fe4eee247b5a321f8735
6c69ddb Added check if path fails ahmedetefy Feb 12, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/6c69ddb15fb2ac79fdcf5a599f16b0ad2f5c592e
66d9495 Renamed script to have underscore rather than dashes ahmedetefy Feb 12, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/66d9495e635b4ee2c2e2ee99732079941f446e3d
37dd471 Fixed naming change for calling script ahmedetefy Feb 12, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/37dd47135fe2cc1fb7dbb46c92770d2ee5c36fe7
20181ff Tests to ensure lambda check does not fail existing tests ahmedetefy Feb 12, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/20181fffb0f01dcb7380b045b875dc1946ff848c
a38e022 Merging changes in master ahmedetefy Feb 15, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/a38e0222bb5cce1b17dad51604b8ef2504287634
d0cfa8e Added dest abs path as an arg ahmedetefy Feb 15, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/d0cfa8e0b110befef54db0900398c015e2d58019
0a5702e Testing init script ahmedetefy Feb 15, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/0a5702e69501e965b839786c526b7a100bbdea09
2a0128a Modifying tests to accomodate addtion of layer ahmedetefy Feb 15, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/2a0128a1a42c0794372ecc682c9ef48e9fd20999
f9cecdc Added test that ensures serverless auto instrumentation works as expe… ahmedetefy Feb 15, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/f9cecdcd531630a543e55e66c2f4bccc42c938f6
9db56e0 Removed redundant test arg from sentry_sdk init in serverless init ahmedetefy Feb 15, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/9db56e0194ef86048993ea6b2fa5c938c783618b
9b8ebc2 Removed redundant todo statement ahmedetefy Feb 15, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/9b8ebc2e4ba0498fbfeb4ebc4b3670464b3e9299
6ce581e Refactored layer and function creation into its own function ahmedetefy Feb 15, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/6ce581e90df2525bf742b07b40bb784c43a7a925
18d2124 Linting fixes ahmedetefy Feb 15, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/18d2124ad59297da2c3c9e6b306554b8b64c47dc
9de62fd Linting fixes ahmedetefy Feb 15, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/9de62fd730476b98f4d72be88ee882825488a192
cf0738e Moved scripts from within sdk to scripts dir ahmedetefy Feb 17, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/cf0738ea55738394b5110a01f7302e29917ad803
77a9f08 Updated documentation ahmedetefy Feb 17, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/77a9f085e0c5e14d85f2a05172cea8bc22323429
383951c Pinned dependency to fix CI issue ahmedetefy Feb 17, 2021 https://github.com/getsentry/sentry-python/pull/1004/commits/383951c781c3b0cae846d8a43a6616e1d0ab6d7c
Clear filters https://github.com/getsentry/sentry-python/pull/1004/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/1004/files
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/1004/files
Makefile https://github.com/getsentry/sentry-python/pull/1004/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
build-awslambda-layer.py https://github.com/getsentry/sentry-python/pull/1004/files#diff-64c0c6f5868d73562cca7f83ad120ea37a52e14358fecdea8fa331c626102d69
build_awslambda_layer.py https://github.com/getsentry/sentry-python/pull/1004/files#diff-cf262a8e81f40473554b5e03d5416a916511207def10c70de59dbf7e6e64767c
init_serverless_sdk.py https://github.com/getsentry/sentry-python/pull/1004/files#diff-eedb6a9d99192da6e583f4209281b857c6ee3fe444589e80e6e7d8ce9013f048
client.py https://github.com/getsentry/sentry-python/pull/1004/files#diff-15f8a47270d0fccc57db12d87d4e520f0c6bdf364e3e6a149f05f8de45e7209f
test_aws.py https://github.com/getsentry/sentry-python/pull/1004/files#diff-27551c0ce36797d83ab9713daccd65033a7e6e69557a6041b47aa9f44c249b6a
tox.ini https://github.com/getsentry/sentry-python/pull/1004/files#diff-ef2cef9f88b4fe09ca3082140e67f5ad34fb65fb6e228f119d3812261ae51449
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
Makefilehttps://github.com/getsentry/sentry-python/pull/1004/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
View file https://github.com/getsentry/sentry-python/blob/383951c781c3b0cae846d8a43a6616e1d0ab6d7c/Makefile
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/1004/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/1004/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
scripts/build-awslambda-layer.pyhttps://github.com/getsentry/sentry-python/pull/1004/files#diff-64c0c6f5868d73562cca7f83ad120ea37a52e14358fecdea8fa331c626102d69
View file https://github.com/getsentry/sentry-python/blob/89f7b158e1922540a7f38112a26f4c54004d126b/scripts/build-awslambda-layer.py
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/1004/files
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
scripts/build_awslambda_layer.pyhttps://github.com/getsentry/sentry-python/pull/1004/files#diff-cf262a8e81f40473554b5e03d5416a916511207def10c70de59dbf7e6e64767c
View file https://github.com/getsentry/sentry-python/blob/383951c781c3b0cae846d8a43a6616e1d0ab6d7c/scripts/build_awslambda_layer.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/1004/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
scripts/init_serverless_sdk.pyhttps://github.com/getsentry/sentry-python/pull/1004/files#diff-eedb6a9d99192da6e583f4209281b857c6ee3fe444589e80e6e7d8ce9013f048
View file https://github.com/getsentry/sentry-python/blob/383951c781c3b0cae846d8a43a6616e1d0ab6d7c/scripts/init_serverless_sdk.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/1004/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/blob/master/.github/CODEOWNERS#L1
tests/integrations/aws_lambda/client.pyhttps://github.com/getsentry/sentry-python/pull/1004/files#diff-15f8a47270d0fccc57db12d87d4e520f0c6bdf364e3e6a149f05f8de45e7209f
View file https://github.com/getsentry/sentry-python/blob/383951c781c3b0cae846d8a43a6616e1d0ab6d7c/tests/integrations/aws_lambda/client.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-python/pull/1004/{{ revealButtonHref }}
https://github.com/getsentry/sentry-python/pull/1004/files#diff-15f8a47270d0fccc57db12d87d4e520f0c6bdf364e3e6a149f05f8de45e7209f
https://github.com/getsentry/sentry-python/pull/1004/files#diff-15f8a47270d0fccc57db12d87d4e520f0c6bdf364e3e6a149f05f8de45e7209f
https://github.com/getsentry/sentry-python/pull/1004/files#diff-15f8a47270d0fccc57db12d87d4e520f0c6bdf364e3e6a149f05f8de45e7209f
https://github.com/getsentry/sentry-python/pull/1004/files#diff-15f8a47270d0fccc57db12d87d4e520f0c6bdf364e3e6a149f05f8de45e7209f
Please reload this pagehttps://github.com/getsentry/sentry-python/pull/1004/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.