Open your terminal, navigate to the location of your project on your drive, and install OpenTelemetry’s automatic instrumentation meta package and Honeycomb’s OpenTelemetry Node.js distribution package:
yarn add \
@opentelemetry/auto-instrumentations-node \
@honeycombio/opentelemetry-node
Module | Description |
---|---|
auto-instrumentations-node |
OpenTelemetry’s meta package that provides a way to add automatic instrumentation to any Node application to capture telemetry data from a number of popular libraries and frameworks, like express , dns , http , and more. |
opentelemetry-node |
Honeycomb’s Node.js distribution package that streamlines configuration and allows you to instrument as quickly and easily as possible. |
Alternatively, install individual instrumentation packages.
If using TypeScript, install ts-node
to run the code:
yarn add --dev ts-node