@elastic/opentelemetry-node

1.1.1 • Public • Published

EDOT Node.js

The Elastic Distribution of OpenTelemetry Node.js (EDOT Node.js) is a lightweight wrapper around the OpenTelemetry SDK for Node.js that makes it easy to get started using OpenTelemetry in your Node.js applications, especially if you are using Elastic Observability as your observability solution.

# Install it
npm install --save @elastic/opentelemetry-node

# Configure it
export OTEL_EXPORTER_OTLP_ENDPOINT="...your-OTLP/collector-endpoint..."
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=..."
export OTEL_SERVICE_NAME="my-app"

# Start it with your application
node --import @elastic/opentelemetry-node my-app.js

See the EDOT Node.js docs for details. Some direct links:

How does EDOT Node.js differ from the OpenTelemetry JS SDK?

EDOT Node.js is very similar to the @opentelemetry/auto-instrumentations-node package from OpenTelemetry in its usage goal: a single-dependency that provides a simple path to zero-code instrumentation of Node.js applications. In general, Elastic's goal is to contribute all SDK improvements upstream. That said, there are sometimes differences that are specific to Elastic (e.g. talking to an Elastic service for central configuration, Elastic-authored additional instrumentations). Here is a concise list of differences:

Package Sidebar

Install

npm i @elastic/opentelemetry-node

Weekly Downloads

3,434

Version

1.1.1

License

Apache-2.0

Unpacked Size

111 kB

Total Files

23

Last publish

Collaborators

  • jen-huang
  • delvedor
  • lukasolson
  • ccowan
  • jbudz
  • thomasneirynck
  • verogo
  • weltenwort
  • pugnascotia
  • zinckiwi
  • brandon.kobel
  • nreese
  • mgreau
  • jonahbull
  • leathekd
  • lukeelmers
  • ddillinger
  • jasonstoltz
  • bamieh
  • markov00
  • joshmock
  • vignesh.shanmugam
  • watson
  • rhodesjason
  • jmlrt
  • mattkime
  • afoucret
  • nickpeihl
  • axw
  • mistic
  • elasticmachine
  • gtback
  • pickypg
  • trentm
  • andrewvc-elastic
  • jorge.sanz
  • stratoula
  • nkammah
  • streamich
  • nickofthyme
  • phoey1
  • breehall
  • kyrspl
  • johnwcambra
  • colleen.mcginnis
  • legrego
  • banerjeesoham004
  • patryk.kopycinski
  • kibanamachine
  • tkajtoch
  • cindy_c
  • cbishopewc
  • lenegadewoll
  • asnyder-elastic
  • lgestc
  • weronika-olejniczak
  • elena-shostak
  • kc13greiner
  • yan.savitski
  • jeramysoucy
  • miguel-elastic
  • bradtimmerman
  • obltmachine
  • jbwelastic
  • acstll
  • bmorelli25
  • sddonne