getsentry / getsentry/sentry-javascript

Instrumentation of NestJS functional middleware

Offen
#13,287 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Improvement Nest.js Spans
Vorherrschende Sprache
TypeScript
Sterne
8.7k
Forks
1.8k
Ø Merge
1 T. 17 Std.
Gemergte PRs (30 T.)
515

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.