Title: Exclude optional performance instrumentation by default for AWS Serverless · Issue #11991 · getsentry/sentry-javascript · GitHub
Open Graph Title: Exclude optional performance instrumentation by default for AWS Serverless · Issue #11991 · getsentry/sentry-javascript
X Title: Exclude optional performance instrumentation by default for AWS Serverless · Issue #11991 · getsentry/sentry-javascript
Description: Problem Statement Opentelemetry adds a massive amount of overhead. The screen shot below represents a minimized / treeshook lambda built with esbuild that has very little of its own code. I understand some of the challenges here (ie. not...
Open Graph Description: Problem Statement Opentelemetry adds a massive amount of overhead. The screen shot below represents a minimized / treeshook lambda built with esbuild that has very little of its own code. I underst...
X Description: Problem Statement Opentelemetry adds a massive amount of overhead. The screen shot below represents a minimized / treeshook lambda built with esbuild that has very little of its own code. I underst...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/11991
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Exclude optional performance instrumentation by default for AWS Serverless","articleBody":"### Problem Statement\n\nOpentelemetry adds a massive amount of overhead. The screen shot below represents a minimized / treeshook lambda built with `esbuild` that has very little of its own code.\r\n\u003cimg width=\"1119\" alt=\"image\" src=\"https://github.com/getsentry/sentry-javascript/assets/1885864/ec109224-8c70-4bb5-8d52-c8b7d78faa24\">\r\n\r\nI understand some of the challenges here (ie. nothing is free or magic), but Sentry + Opentelemetry is > 50% of the bundled lambda.\r\n\r\nFor opentelemetry specifically, it bundles a whole series of instrumentation hooks which will never be consumed.\r\n\u003cimg width=\"1119\" alt=\"image\" src=\"https://github.com/getsentry/sentry-javascript/assets/1885864/966c1394-ab98-4235-9efb-ca8213b6e65d\">\r\n\r\nOf the 16 bundled instrumentation hooks, we will only use three of them:\r\n* instrumentation-aws-sdk\r\n* instrumentation-http\r\n* instrumentation-aws-lambda\r\n\r\nThere is a guide which mentions \"customizing\" the opentelemetry configuration:\r\nhttps://docs.sentry.io/platforms/javascript/guides/node/migration/v7-to-v8/v8-opentelemetry/#custom-opentelemetry-setup\r\n\r\nBut it seems incomplete. It is not clear how or where I would instantiate the three instrumentation providers.\n\n### Solution Brainstorm\n\nIt would be great if there was a complete example of an aws lambda which configures only three instrumentation providers:\r\n* instrumentation-aws-sdk\r\n* instrumentation-http\r\n* instrumentation-aws-lambda\r\n\r\nThis should be a \"gold-standard\" for how to configure sentry for aws-lambda, because even with full ESM + treeshaking + minification the size of Sentry + Opentelemetry is a substantial problem.","author":{"url":"https://github.com/jd-carroll","@type":"Person","name":"jd-carroll"},"datePublished":"2024-05-12T04:48:18Z","url":"https://github.com/getsentry/sentry-javascript/issues/11991"}
| 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:c6c65e0a-cfbd-27f1-4063-e084b6e0d2a9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A73E:103A59:3FCB606:549A287:6B03F5EA |
| html-safe-nonce | 92e4614465fcd08f1518dcc9c22c13ccb66b2921f973c4fa353ab8ded82aaebf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzNFOjEwM0E1OTozRkNCNjA2OjU0OUEyODc6NkIwM0Y1RUEiLCJ2aXNpdG9yX2lkIjoiNDIwNTcyMDY1NjIyODM4MjE4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5cf8b5eb01584d890f57e37d3a1f8bc89d6311c6ef6c80f4486f4fe031feca3e |
| hovercard-subject-tag | issue:2291165449 |
| 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/11991/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ca18e8e095a6712381d1dfb30ae9e37bd81f3708ec1ecf7e8f6d1f6e9b8eb3af/getsentry/sentry-javascript/issues/11991 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ca18e8e095a6712381d1dfb30ae9e37bd81f3708ec1ecf7e8f6d1f6e9b8eb3af/getsentry/sentry-javascript/issues/11991 |
| og:image:alt | Problem Statement Opentelemetry adds a massive amount of overhead. The screen shot below represents a minimized / treeshook lambda built with esbuild that has very little of its own code. I underst... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jd-carroll |
| 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