Register http instrumentation after server is configured but before it is started. #2317
Replies: 1 comment 2 replies
-
Could you provide some more information here how your lib should interact with NestJS? e.g.
More or less all instrumentations available now in this repo use monkey patching. e.g. for http the I guess something similar should work for NestJs. Hooks require to start monitoring it by patching whatever is needed. I don't know the NestJs internals so cant give an exact guideline. In general if monkey patching can be avoided by using public APIs of a package it's better do use these APIs. |
Beta Was this translation helpful? Give feedback.
-
Most of the examples shows tracing functions being called with
-r
on nodejs, I'm trying to build a lib for NestJS but this framework might not have a way to call the instrumentation functions before server configurations are defined.Is there a better way to do that?
Beta Was this translation helpful? Give feedback.
All reactions