You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sentry.autoDiscoverNodePerformanceMonitoringIntegrations doesn't seem to exist #7221
In particular, this is surprising, because I'm viewing the serverless-related documentation, and this page is using the node package. The latter exports the referenced method, but not the serverless package, that you'll be using in AWS Lambda.
Suggested Solution
Re-export the method from node in the serverless package or fix the docs.
Hi @oliversalzburg, thanks for raising this! Seems like we missed to export this function from our @sentry/serverless SDK when we internally refactored our tracing package.
For the sake of consistency we'll add the missing export to the SDK. However, we'll also adjust the docs with a warning that using this functionality comes with a potentially hefty performance impact that can significantly increase the runtime of a serverless function. Auto-discovery checks if certain database tools (e.g. Apollo, Postgres, etc) are installed by dynamically requiring them. This takes some time.
Activity
getsantry commentedon Jun 20, 2023
Assigning to @getsentry/support for routing, due by Tuesday, June 20th at 5:00 pm (sfo). ⏲️
getsantry commentedon Jun 20, 2023
Routing to @getsentry/product-owners-sdks-web-frontend for triage, due by Thursday, June 22nd at 17:00 (vie). ⏲️
Lms24 commentedon Jun 22, 2023
Hi @oliversalzburg, thanks for raising this! Seems like we missed to export this function from our
@sentry/serverlessSDK when we internally refactored our tracing package.For the sake of consistency we'll add the missing export to the SDK. However, we'll also adjust the docs with a warning that using this functionality comes with a potentially hefty performance impact that can significantly increase the runtime of a serverless function. Auto-discovery checks if certain database tools (e.g. Apollo, Postgres, etc) are installed by dynamically requiring them. This takes some time.
oliversalzburg commentedon Jun 22, 2023
Oh, interesting. Thanks for the heads-up 🙂