Title: nodeProfilingIntegration from @sentry/profiling-node does not work in aws lambda · Issue #12994 · getsentry/sentry-javascript · GitHub
Open Graph Title: nodeProfilingIntegration from @sentry/profiling-node does not work in aws lambda · Issue #12994 · getsentry/sentry-javascript
X Title: nodeProfilingIntegration from @sentry/profiling-node does not work in aws lambda · Issue #12994 · 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/12994
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"nodeProfilingIntegration from @sentry/profiling-node does not work in aws lambda","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.19.0\n\n### Framework Version\n\nNode 20.14/Node 18\n\n### Link to Sentry event\n\nThere is no event\n\n### SDK Setup/Reproduction Example\n\n```js\nimport * as Sentry from '@sentry/aws-serverless';\nimport { nodeProfilingIntegration } from '@sentry/profiling-node';\n\nSentry.init({\n dsn: 'MY_DSN',\n integrations: [nodeProfilingIntegration()],\n tracesSampleRate: 1.0,\n profilesSampleRate: 1.0,\n});\n```\n\n### Steps to Reproduce\n\nAws sam build the lambda but when i invoke locally or on via amazon server it just crash on start up.\n\n### Expected Result\n\nTo finish init and continue execution.\n\n### Actual Result\n\nLambda crash on start up. nodeProfilingIntegration() crash.\n\nLOG:\n```\nundefined\tERROR\tUncaught Exception \t\n{\n \"errorType\": \"TypeError\",\n \"errorMessage\": \"The \\\"path\\\" argument must be of type string or an instance of URL. Received undefined\",\n \"code\": \"ERR_INVALID_ARG_TYPE\",\n \"stack\": [\n \"TypeError [ERR_INVALID_ARG_TYPE]: The \\\"path\\\" argument must be of type string or an instance of URL. Received undefined\",\n \" at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)\",\n \" at new NodeError (node:internal/errors:405:5)\",\n \" at Object.fileURLToPath (node:internal/url:1477:11)\",\n \" at Object.\u003canonymous> (/src/sdk.ts:384:50)\",\n \" at Module._compile (node:internal/modules/cjs/loader:1364:14)\",\n \" at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)\",\n \" at Module.load (node:internal/modules/cjs/loader:1203:32)\",\n \" at Module._load (node:internal/modules/cjs/loader:1019:12)\",\n \" at Module.require (node:internal/modules/cjs/loader:1231:19)\",\n \" at require (node:internal/modules/helpers:177:18)\",\n \" at _tryRequireFile (file:///var/runtime/index.mjs:1002:37)\",\n \" at _tryRequire (file:///var/runtime/index.mjs:1052:25)\",\n \" at _loadUserApp (file:///var/runtime/index.mjs:1081:22)\",\n \" at UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1119:27)\",\n \" at start (file:///var/runtime/index.mjs:1282:42)\",\n \" at file:///var/runtime/index.mjs:1288:7\",\n \" at ModuleJob.run (node:internal/modules/esm/module_job:195:25)\",\n \" at async ModuleLoader.import (node:internal/modules/esm/loader:337:24)\",\n \" at async loadESM (node:internal/process/esm_loader:34:7)\",\n \" at async handleMainPromise (node:internal/modules/run_main:106:12)\"\n ]\n}\n```","author":{"url":"https://github.com/petar-ps","@type":"Person","name":"petar-ps"},"datePublished":"2024-07-20T18:40:30Z","url":"https://github.com/getsentry/sentry-javascript/issues/12994"}
| 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:7f719428-ad95-5119-a02c-b3faed752854 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8864:C8358:404E981:55EDEBA:6B04064F |
| html-safe-nonce | cfc50ef0683a236dd55ec140fe023c6b13424527ad64eb6bb6f11062d6ceeccf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODY0OkM4MzU4OjQwNEU5ODE6NTVFREVCQTo2QjA0MDY0RiIsInZpc2l0b3JfaWQiOiI1NjIzNjgyMTkxNzg0Njc0ODk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2e68cf7ea7b27cb7a33496a9877a001dedbe42d62b46d9ac4b8f3f000827860e |
| hovercard-subject-tag | issue:2421011665 |
| 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/12994/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cfc2341a682c56be22b05558801406f12ccdd2513d0faa3f54ee2afb4cb95d56/getsentry/sentry-javascript/issues/12994 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cfc2341a682c56be22b05558801406f12ccdd2513d0faa3f54ee2afb4cb95d56/getsentry/sentry-javascript/issues/12994 |
| 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 | petar-ps |
| 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