Title: `request` not captured in `@sentry/aws-serverless` + express · Issue #14239 · getsentry/sentry-javascript · GitHub
Open Graph Title: `request` not captured in `@sentry/aws-serverless` + express · Issue #14239 · getsentry/sentry-javascript
X Title: `request` not captured in `@sentry/aws-serverless` + express · Issue #14239 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/14239
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`request` not captured in `@sentry/aws-serverless` + express","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/aws-serverless\n\n### SDK Version\n\n8.37.1\n\n### Framework Version\n\nAWS Lambda + Express 4.21.1\n\n### Link to Sentry event\n\nhttps://patina-health.sentry.io/issues/5996169896?project=6044571\n\n### Reproduction Example/SDK Setup\n\n```typescript\nimport * as Sentry from '@sentry/aws-serverless';\n\nSentry.init({\n dsn: process.env.SENTRY_DSN,\n environment: 'development',\n integrations: [Sentry.expressIntegration()],\n tracesSampleRate: 1.0,\n profilesSampleRate: 1.0,\n});\n\nimport * as Sentry from '@sentry/aws-serverless';\nimport express from 'express';\nimport serverless from 'serverless-http';\n\nconst app = express();\n\napp.get('/debug-sentry', (req, res) => {\n throw new Error('My first Sentry error!');\n});\n\nSentry.setupExpressErrorHandler(app);\n\nexport const handler = Sentry.wrapHandler(serverless(app));\n```\n\n### Steps to Reproduce\n\nRun the above code ideally deployed to AWS. Invoke with payload similar to:\n\n```json\n{\n \"headers\": { \"content-type\": \"application/json\" },\n \"httpMethod\": \"GET\",\n \"path\": \"/debug-sentry\"\n}\n```\n\nError is reported to Sentry but the `request` information is not included\n\n### Expected Result\n\nSentry event should include the `request` information. \n\nThis worked correctly with the same setup on Sentry 7\n\n### Actual Result\n\nSentry event does include `aws.cloudwatch.logs` and `aws.lambda` but no request information","author":{"url":"https://github.com/relm923","@type":"Person","name":"relm923"},"datePublished":"2024-11-12T01:19:49Z","url":"https://github.com/getsentry/sentry-javascript/issues/14239"}
| 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:63199e3a-ab89-7c5d-dcc8-9feb7f68a8ad |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E198:FFCCA:13C858:1A20AC:6B04CA75 |
| html-safe-nonce | a35ef6a269a91291efb2e8744c8b090bbb1e138162acd9d6b7079e11d18dc44d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTk4OkZGQ0NBOjEzQzg1ODoxQTIwQUM6NkIwNENBNzUiLCJ2aXNpdG9yX2lkIjoiNDAwNDM3Nzk0NTIxNjE3NDcwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ca8e73a35164195d1d0dd77772056d6461a4712523859c011314176c700d8459 |
| hovercard-subject-tag | issue:2650755131 |
| 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/14239/issue_layout |
| twitter:image | https://opengraph.githubassets.com/05574afedeef1f76bcc3d71d3f3668f5862d39087e701b56dd8168d34a42b121/getsentry/sentry-javascript/issues/14239 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/05574afedeef1f76bcc3d71d3f3668f5862d39087e701b56dd8168d34a42b121/getsentry/sentry-javascript/issues/14239 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | relm923 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4 |
| 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 | 0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd |
| 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