#What are the differences between MetinSeylan/Nestjs-OpenTelemetry and pragmaticivan/nestjs-otel?

7 messages · Page 1 of 1 (latest)

ruby fable
ionic plover
#

I'm not super familiar with the first, but nestjs-otel does not do any instrumentation that should be done by conventional opentelemetry library.

https://www.npmjs.com/package/@opentelemetry/instrumentation-nestjs-core

^ It expects you to use this instead because as nestjs evolves, the opentelemetry will support it natively.

#

There's also a known problem when you don't do the instrumentation before NestJS start. The dependency tree is not able to enforce opentelemetry as the first package to be load, and you would actually want that to be the first thing before you import any library.

#

By using the method where you import instrumentation as the first thing, now you get a lot of auto instrumentation for many known nodejs libraries with https://www.npmjs.com/package/@opentelemetry/auto-instrumentations-node

#

I do suggest you investigate both though, I can't point out differences as I've only used one of them in production 😹

ruby fable
#

Thanks for the detailed answer! 🙂