Skip to content

NestJS Instrumentation Library not Collecting Trace Data #3503

Answered by Flarna
Nathan-Bernardo asked this question in Q&A
Discussion options

You must be logged in to vote

import tracer from './tracer'; should be the very first line in main.ts to ensure instrumentations are registered before the actual module is loaded. Once it's loaded it's to late...

Also tracer.start() should be called before you import nestjs,...

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Nathan-Bernardo
Comment options

@behrad-kzm
Comment options

Answer selected by Nathan-Bernardo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants