Nestjs-OpenTelemetry icon indicating copy to clipboard operation
Nestjs-OpenTelemetry copied to clipboard

Question: How to use custom instrumentations

Open iddan opened this issue 2 years ago • 2 comments

How can I use custom instrumentations with this library? I looked in the code for registerInstrumentations but couldn't find any example.

iddan avatar Jun 19 '22 23:06 iddan

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

Maklestiguan avatar Sep 12 '22 05:09 Maklestiguan

Thanks! Maybe better add it to the main readme?

iddan avatar Sep 12 '22 10:09 iddan

#49

MetinSeylan avatar Oct 15 '22 17:10 MetinSeylan

Thank you!

iddan avatar Oct 17 '22 08:10 iddan