getsentry / getsentry/sentry-javascript

Instrumentation of NestJS functional middleware

Đang mở
#13,287 0 bình luận 1 reaction 0 người được giao Xem trên GitHub
Improvement Nest.js Spans
Ngôn ngữ chính
TypeScript
Star
8.7k
Fork
1.8k
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
515

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.