This example shows how to use @opentelemetry/tracing to instrument a simple Node.js application - e.g. a batch job.
Our example will export spans data simultaneously on Console and Jaeger, however you can run your code anywhere and can use any exporter that OpenTelemetry supports.
# from this directory
npm install(Optional) Setup Jaeger Tracing: needs to be running on localhost port 16686.
# from this directory
npm startOpen the Jaeger UI in your browser http://localhost:16686
Select basic-service under Service Name and click on Find Traces.
Click on the trace to view its details.
- For more information on OpenTelemetry, visit: https://opentelemetry.io/
- For more information on tracing, visit: https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-tracing
Apache License 2.0

