Title: @sentry/serverless adds ~300ms to function duration · Issue #3051 · getsentry/sentry-javascript · GitHub
Open Graph Title: @sentry/serverless adds ~300ms to function duration · Issue #3051 · getsentry/sentry-javascript
X Title: @sentry/serverless adds ~300ms to function duration · Issue #3051 · getsentry/sentry-javascript
Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javascript/releases Provide a link to the aff...
Open Graph Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
X Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/3051
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@sentry/serverless adds ~300ms to function duration","articleBody":"\u003c!-- Requirements: please go through this checklist before opening a new issue -->\r\n\r\n- [x] Review the documentation: https://docs.sentry.io/\r\n- [x] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues\r\n- [x] Use the latest release: https://github.com/getsentry/sentry-javascript/releases\r\n- [x] Provide a link to the affected event from your Sentry account\r\n\r\n## Package + Version\r\n\r\n \"@sentry/node\": \"^5.27.4\",\r\n \"@sentry/serverless\": \"^5.27.4\",\r\n\r\n## Description\r\n\r\nI've noticed that the response time of my functions is slow, added tracing, and noticed that at the end of every invocation my lambda sends POST request to sentry. Here you can see a trace:\r\n\r\n\r\nIt's okay to increase response time for requests with error, but if there is no error, I expect that response would be sent immediately. There is minimal code that I've tested:\r\n\r\n```js\r\nimport * as Sentry from '@sentry/serverless';\r\n\r\nSentry.AWSLambda.init({\r\n dsn: process.env.SENTRY_DSN,\r\n tracesSampleRate: 1.0\r\n});\r\n\r\nexport const handler = Sentry.AWSLambda.wrapHandler(\r\n (event, context, callback) => {\r\n context.callbackWaitsForEmptyEventLoop = false;\r\n\r\n callback(null, { statusCode: 200 });\r\n },\r\n { callbackWaitsForEmptyEventLoop: false, flushTimeout: 2000 }\r\n);\r\n```","author":{"url":"https://github.com/kostia-official","@type":"Person","name":"kostia-official"},"datePublished":"2020-11-14T09:40:18Z","url":"https://github.com/getsentry/sentry-javascript/issues/3051"}
| 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:5c5e7325-503e-4309-f9a7-cacb24346c23 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 91A6:760A7:42330FC:5876746:6B040F98 |
| html-safe-nonce | bfcca6270d44aca0a653a47c1e2122e1dea5d7ca74f0cf54d0ca2344695f701d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUE2Ojc2MEE3OjQyMzMwRkM6NTg3Njc0Njo2QjA0MEY5OCIsInZpc2l0b3JfaWQiOiI2ODY1NTUzODY0OTU2MDU1NDQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 15a9daa18341d9c33c4f52aae223c9ba200bea43393a2ca96486aac6ed65784e |
| hovercard-subject-tag | issue:742969666 |
| 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-javascript/3051/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4a2f612f8400eab91e05c9abe8c26a4283bf06d7c3f6fa445d64e5039e5899c9/getsentry/sentry-javascript/issues/3051 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4a2f612f8400eab91e05c9abe8c26a4283bf06d7c3f6fa445d64e5039e5899c9/getsentry/sentry-javascript/issues/3051 |
| og:image:alt | Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kostia-official |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width