Nestjs-OpenTelemetry
Nestjs-OpenTelemetry copied to clipboard
Question: How to use custom instrumentations
How can I use custom instrumentations with this library? I looked in the code for registerInstrumentations
but couldn't find any example.
Basically you should provide it in module config, since it extends Partial<NodeSDKConfiguration>
, then merges default config and what you have provided (defaults get overridden) and then nodeSDK
goes with your config as constructor args
Thanks! Maybe better add it to the main readme?
#49
Thank you!