Skip to content

Instrumentation of NestJS guards #13078

@nicohrubec

Description

@nicohrubec

https://docs.nestjs.com/guards

Solution: According to the docs guards are annotated with @Injectable and implement a canActivate method. So we can use that to hook into the framework.

Limitation: Although the nest docs say that guards should always have an @Injectable decorator, guards work just fine without it unless it has dependencies on other services.

Metadata

Metadata

Assignees

Labels

Package: nestjsIssues related to the Sentry Nestjs SDK

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions