Skip to content

Express request.user is not used since 8.40.0 #14847

@richardsimko

Description

@richardsimko

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/node

SDK Version

8.47.0

Framework Version

Express 5.0.1

Link to Sentry event

https://fl101.sentry.io/issues/6062464177/events/77ae0d4d27ca49da82cb9f19d8bca736/?project=4505209444958208

Reproduction Example/SDK Setup

We're running a web app with Express and Sentry tracked User ID and email automatically (Based on req.user I would assume?) until 8.40.0. Since then it has been broken and the docs don't really provide any guidance for how to properly set the user ID in the context of a request.

Steps to Reproduce

  1. Set up an Express app with Sentry <8.40.0
  2. Validate the User is set
  3. Upgrade Sentry
  4. User is no longer set

Expected Result

User is set or documentation is provided for how to do it manually as well as a note in the changelog that this is no longer done automatically.

Actual Result

User is not set

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: nodeIssues related to the Sentry Node SDK

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions