Skip to content

feat: add SentryIsolationScope decorator #14845

Closed
Closed
@feelgood1987

Description

@feelgood1987

Problem Statement

Add a new decorator, SentryIsolationScope, to create and apply an isolation scope to the relevant method.
Similar to the SentryCron or SentryTrace decorators, this would be useful in situations where we don't have HTTP requests but still need an isolation scope.
For instance, in our case, some MQ event consumers subscribe to a message broker like RabbitMQ. In such cases, there are no HTTP requests, so every Sentry.getIsolationScope call targets the global scope.
Having a decorator to create and assign an isolation scope to these functions would be a great feature for such use cases.

Solution Brainstorm

I've looked for a similar feature but unfortunately couldn't find any, so I've created this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: nestjsIssues related to the Sentry Nestjs SDK

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions