Skip to content

Removing generic server instrumentation from @sentry/nextjs #6642

Description

@lforst

The generic server instrumentation in the Next.js SDK contains a lot of code, complexity, and a spoooky side-effect. All of the performance and error instrumentation is already covered by our wrappers.

Upsides:

  • Way less code to maintain
  • Removes a side effect from the package
  • Allows us to simplify our isBuild function

Potential downsides:

  • We stop sending certain transactions which may trigger some things in the product (alerts, ...) (See discussion in this issue)
  • If people turn off auto-wrapping with instrumentServerFunctions: false they will not send any server-side transactions anymore

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions