Skip to content

Remove server OTel instrumentation from react-router #22531

Closed

Description

@chargome

Now that the instrumentation API is the default and the minimum React Router version is 7.15, remove the server-side OTel instrumentation from @sentry/react-router:

  • Delete the InstrumentationBase proxy (server/instrumentation/reactRouter.ts) that patches createRequestHandler.
  • Remove the OTel data-loader span-creation path and its Node-version gate in server/integration/reactRouterServer.ts, plus the related flag in server/serverGlobals.ts.
  • Drop the bogus * route cleanup in processEvent/processSegmentSpan that only exists for the OTel/express path.

Part of #22290.

Activity

  1. linear-code commented on Jul 23, 2026

    @linear-code
  2. self-assigned this
    on Jul 23, 2026
  3. added a commit that references this issue on Jul 24, 2026
    103b15b
  4. github-actions commented on Sep 23, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #22551, which was included in the 11.0.0 release.

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