Skip to content

[nextjs] Fix transaction name getting lost when hitting _error page #5826

Closed
@lobsterkatie

Description

@lobsterkatie

In the nextjs SDK, when a user hits the _error page, the original transaction name gets overwritten with _error. This causes two problems:

  1. It makes it so a user would not be able to tell that they have a particularly buggy route, since every time it errored, it would show up in the Sentry UI filed under _error rather than the real route name.

  2. The DSC can get propagated with the original transaction name, but that then doesn't match up with the eventual transaction name.

We should prevent the original name from getting overwritten.

(This is current as of 7.13.0.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: nextjsIssues related to the Sentry Nextjs SDK

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions