Skip to content

Removing generic server instrumentation from @sentry/nextjs #6642

Closed
@lforst

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions