getNodeAutoInstrumentations()
instruments express apps along with other apps.
At this point, all incoming HTTP requests are being traced automatically.
ParentBased
sampler:
getNodeAutoInstrumentations()
function we used earlier automatically includes all the instrumentation packages from the OpenTelemetry JavaScript Contrib repository.
When you use getNodeAutoInstrumentations()
, you get automatic instrumentation for popular frameworks like Express, Fastify, Koa, and many other libraries including HTTP clients, databases, and more.