getsentry / getsentry/sentry-javascript
Instrumentation of NestJS functional middleware
未关闭
Improvement
Nest.js
Spans
- 主要语言
- TypeScript
- 星标
- 8.7k
- 派生
- 1.8k
- 平均合并
- 1 天 17 小时
- 30 天内合并 PR
- 515
描述
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.
贡献指南
评估
这个 Issue 还没有评估数据。