Title: Issue titles from errors captured with `@sentry/aws-serverless` differ from `@sentry/node` · Issue #15788 · getsentry/sentry-javascript · GitHub
Open Graph Title: Issue titles from errors captured with `@sentry/aws-serverless` differ from `@sentry/node` · Issue #15788 · getsentry/sentry-javascript
X Title: Issue titles from errors captured with `@sentry/aws-serverless` differ from `@sentry/node` · Issue #15788 · getsentry/sentry-javascript
Description: Description Originally posted in this comment by @rowbot-weisguy @relm923 good point. We use CDK so I've been bundling it using esbuild via aws-cdk-lib/aws-lambda-nodejs. Today, given your advice, I set up a separate layer and marked exp...
Open Graph Description: Description Originally posted in this comment by @rowbot-weisguy @relm923 good point. We use CDK so I've been bundling it using esbuild via aws-cdk-lib/aws-lambda-nodejs. Today, given your advice, ...
X Description: Description Originally posted in this comment by @rowbot-weisguy @relm923 good point. We use CDK so I've been bundling it using esbuild via aws-cdk-lib/aws-lambda-nodejs. Today, given your advi...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/15788
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issue titles from errors captured with `@sentry/aws-serverless` differ from `@sentry/node`","articleBody":"### Description\n\nOriginally posted [in this comment](https://github.com/getsentry/sentry-javascript/issues/14239#issuecomment-2744729113) by @rowbot-weisguy\n\n> [@relm923](https://github.com/relm923) good point. We use CDK so I've been bundling it using `esbuild` via `aws-cdk-lib/aws-lambda-nodejs`.\n> \n> Today, given your advice, I set up a separate layer and marked `express` as an external module. It works! Warning is gone and I managed to get traces that I wanted to see from the lambda as long as I explicitly include the integrations I care about (e.g. `expressIntegration`, `redisIntegration`, and `postgresIntegration`).\n> \n> I'm still noticing the generated issue titles (span names?) are a little unhelpful.\n> \n> In development, using `@sentry/node` I see:\n> \n> \n> \n> Lovely! The path is so helpful to know immediately. Whereas in deployed lambdas, using `@sentry/aws-serverless` I see:\n> \n> \n> \n> So I tried implementing your suggestion [@andreiborza](https://github.com/andreiborza):\n> \n> ```ts\n> // instrument.lambda.ts\n> import * as Sentry from \"@sentry/aws-serverless\";\n> import { nodeProfilingIntegration } from \"@sentry/profiling-node\";\n> \n> import { env } from \"./env\";\n> \n> Sentry.init({\n> dsn: env.PILOT_API_SENTRY_DSN,\n> defaultIntegrations: false,\n> integrations: [\n> ...Sentry.getDefaultIntegrations({}).filter(\n> (integration) => ![\"Aws\", \"AwsLambda\"].includes(integration.name),\n> ),\n> nodeProfilingIntegration(),\n> Sentry.expressIntegration(),\n> Sentry.redisIntegration(),\n> Sentry.postgresIntegration(),\n> ],\n> environment: env.PILOT_API_SENTRY_ENVIRONMENT,\n> tracesSampleRate: Number(env.PILOT_API_SENTRY_TRACING_SAMPLE_RATE),\n> profilesSampleRate: Number(env.PILOT_API_SENTRY_PROFILING_SAMPLE_RATE),\n> });\n> \n> export const wrapHandler = Sentry.wrapHandler;\n> This change made no visible difference to spans / names, and I'm not sure if there's a different way I should disable the Aws integration.\n> ```\n> \n> \n> \n> Would love to make sure our Sentry issues are informative at a glance, so please let me know if there's something else I can do here. This is my first time instrumenting Sentry w/ Express & Lambda, so I have no experience with previous versions to share.\n\n","author":{"url":"https://github.com/s1gr1d","@type":"Person","name":"s1gr1d"},"datePublished":"2025-03-24T08:46:24Z","url":"https://github.com/getsentry/sentry-javascript/issues/15788"}
| 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:1e1bbeda-76a0-7e15-efc4-0235cb171135 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 89F8:3B1B50:675087:894117:6B04C703 |
| html-safe-nonce | 072a60f8c3183d9e559c8536666f39f5f3af42df8a8e4f7908c635860b0e1fbc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUY4OjNCMUI1MDo2NzUwODc6ODk0MTE3OjZCMDRDNzAzIiwidmlzaXRvcl9pZCI6IjMxODQzMTI2NjUxMzI4MTIwMzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 516954dc902a0744cbd9479da0c4cf28b5976ca9e6e0f4fd7e80cfd2e4e807ab |
| hovercard-subject-tag | issue:2942473616 |
| 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/15788/issue_layout |
| twitter:image | https://opengraph.githubassets.com/afbf8a4562358263b79e0ad5cb07465e64eb6748b23677ed98148f3b87e32008/getsentry/sentry-javascript/issues/15788 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/afbf8a4562358263b79e0ad5cb07465e64eb6748b23677ed98148f3b87e32008/getsentry/sentry-javascript/issues/15788 |
| og:image:alt | Description Originally posted in this comment by @rowbot-weisguy @relm923 good point. We use CDK so I've been bundling it using esbuild via aws-cdk-lib/aws-lambda-nodejs. Today, given your advice, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | s1gr1d |
| 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