Skip to content

Instrumentation of NestJS pipes #13121

@nicohrubec

Description

@nicohrubec

https://docs.nestjs.com/pipes

Solution: According to the docs pipes are annotated with @Injectable and implement a transform method. So we can use that to hook into the framework. There are built-in pipes provided by nest and users can also implement custom pipes. This approach should work for both.

Limitation: Although the nest docs say that pipes should always have an @Injectable decorator, pipes 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