Skip to content

Sentry.autoDiscoverNodePerformanceMonitoringIntegrations doesn't seem to exist #7221

Closed

Description

@oliversalzburg

Core or SDK?

Core Sentry product

Which part? Which one?

AWS Lambda

Description

https://docs.sentry.io/platforms/node/guides/aws-lambda/performance/instrumentation/automatic-instrumentation refers to Sentry.autoDiscoverNodePerformanceMonitoringIntegrations, which doesn't seem to exist.

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.

Activity

  1. getsantry commented on Jun 20, 2023

    @getsantry
    Contributor

    Assigning to @getsentry/support for routing, due by Tuesday, June 20th at 5:00 pm (sfo). ⏲️

  2. moved this to Waiting for: Support in GitHub Issues with 👀on Jun 20, 2023
  3. getsantry commented on Jun 20, 2023

    @getsantry
    Contributor

    Routing to @getsentry/product-owners-sdks-web-frontend for triage, due by Thursday, June 22nd at 17:00 (vie). ⏲️

  4. moved this from Waiting for: Support to Waiting for: Product Owner in GitHub Issues with 👀on Jun 20, 2023
  5. Lms24 commented on Jun 22, 2023

    @Lms24
    Member

    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.

  6. oliversalzburg commented on Jun 22, 2023

    @oliversalzburg
    Author

    Oh, interesting. Thanks for the heads-up 🙂

  7. locked and limited conversation to collaborators on Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions