Skip to content

Scopes are leaking in NestJS requests #15940

Closed
@sagrawal31

Description

@sagrawal31

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nestjs

SDK Version

9.10.1

Framework Version

Nest 10.3.10

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

  1. Create a NestJS app.
  2. Add a controller with a simple log.
  3. Add a NestJS interceptor which sets tags/context/user conditionally (maybe based on some header/authentication).
  4. Hit the first request, which should set some tag/context/user.
  5. Hit the second request, which should not set any request and log an error to Sentry.

Expected Result

The tracked should not have any custom tag/context or user.

Actual Result

The tracked error have the tags/context/user from the previous request.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions