Title: Slow Initialization Time for Sentry SDK in AWS Lambda · Issue #3763 · getsentry/sentry-python · GitHub
Open Graph Title: Slow Initialization Time for Sentry SDK in AWS Lambda · Issue #3763 · getsentry/sentry-python
X Title: Slow Initialization Time for Sentry SDK in AWS Lambda · Issue #3763 · getsentry/sentry-python
Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.18.0 Steps to Reproduce While implementing a simple AWS Lambda function, I observed significant delays related to Sentry SDK initialization. Specifically: import sentry_sdk takes a...
Open Graph Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.18.0 Steps to Reproduce While implementing a simple AWS Lambda function, I observed significant delays related to Sentry SDK initialization....
X Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.18.0 Steps to Reproduce While implementing a simple AWS Lambda function, I observed significant delays related to Sentry SDK initialization....
Opengraph URL: https://github.com/getsentry/sentry-python/issues/3763
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Slow Initialization Time for Sentry SDK in AWS Lambda","articleBody":"### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Version\n\n2.18.0\n\n### Steps to Reproduce\n\nWhile implementing a simple AWS Lambda function, I observed significant delays related to Sentry SDK initialization. Specifically:\n\n1. import sentry_sdk takes approximately ~ 300 ms.\n2. sentry_sdk.init takes an additional 25[SampleSentrySdkFunction.zip](https://github.com/user-attachments/files/17708443/SampleSentrySdkFunction.zip)\n0 ms.\n\nThese delays contribute to an increased cold start time for AWS Lambda functions, which could impact performance in latency-sensitive applications.\n\nI have attached the lambda function I used to test the performance\n\n### Expected Result\n\nExpect the sentry initialization time to be under 50ms \n\n### Actual Result\n\nSentry initialization time is over 500ms\n\nElapsed time import sentry_sdk: 304 ms\nElapsed time sentry_sdk.init: 257 ms","author":{"url":"https://github.com/kalyan-koneru","@type":"Person","name":"kalyan-koneru"},"datePublished":"2024-11-11T21:45:51Z","url":"https://github.com/getsentry/sentry-python/issues/3763"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:81533fbe-baa3-d9dd-a896-9900fe55e6ed |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EAF0:683FF:1AE676:237CEC:6B00BDC7 |
| html-safe-nonce | 81f81783f0ccf84107a4e2ce8b5900bbd665b720dc6ba5b7076883c1d99f136a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUYwOjY4M0ZGOjFBRTY3NjoyMzdDRUM6NkIwMEJEQzciLCJ2aXNpdG9yX2lkIjoiNTgxMzk1MzAwNTM4ODYxMTAxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b4185b48ce0a3c533ad669a95a5d843123882778c31989ebc2470e7a1ff1d8f8 |
| hovercard-subject-tag | issue:2650475616 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-python/3763/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eeb116282d13a77ffa825c284f9d451fe8195557599ce8222ca3d901aadf1256/getsentry/sentry-python/issues/3763 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eeb116282d13a77ffa825c284f9d451fe8195557599ce8222ca3d901aadf1256/getsentry/sentry-python/issues/3763 |
| og:image:alt | How do you use Sentry? Sentry Saas (sentry.io) Version 2.18.0 Steps to Reproduce While implementing a simple AWS Lambda function, I observed significant delays related to Sentry SDK initialization.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kalyan-koneru |
| hostname | github.com |
| expected-hostname | github.com |
| None | 93edd3bebc4afb7ce711ee74cb5d2a95927850b082a4d43e212222389cb1c415 |
| turbo-cache-control | no-preview |
| 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 | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1fee81a280ea86312b69448e261b418189bfd5b5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width