getsentry / getsentry/sentry-javascript

Instrumentation of NestJS functional middleware

Open
#13,287 0 comments 1 reaction 0 assignees View on GitHub
Improvement Nest.js Spans
Dominant language
TypeScript
Stars
8.7k
Forks
1.8k
Avg merge
1d 17h
Merged PRs (30d)
515

Description

https://docs.nestjs.com/middleware#functional-middleware

Currently we have auto instrumentation for class based middleware. To do that we hook into the `@Injectable` decorator and patch the implemented `use` method on the class. However, nest also allows to add middlewares that are vanilla functions via `app.use` or the `MiddlewareConsumer`. These functional middlewares can be manually decorated with `SentryTraced` to get instrumentation but it would be better to have them auto-instumented.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.