opentelemetry-js/examples/basic-tracer-node
Sebastian Poxhofer e32879abbc
feat(otlp-exporter-http): change otlp-http port to canonical 4318 (#2557)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2022-01-20 08:57:46 -05:00
..
docker/ot feat(otlp-exporter-http): change otlp-http port to canonical 4318 (#2557) 2022-01-20 08:57:46 -05:00
images chore: Docs wording and example for basic-tracer (#361) 2019-09-28 02:26:19 +02:00
README.md chore!: rename collector exporters (#2476) 2021-09-15 20:41:08 +02:00
index.js chore: rename sdks to better represent what they are [#2146] (#2340) 2021-08-05 21:13:18 +02:00
package.json chore: release proposal 0.25.0 (#2415) 2021-08-18 16:13:38 -04:00

README.md

Overview

This example shows how to use @opentelemetry/sdk-trace-base 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.

Installation

# from this directory
npm install

(Optional) Setup Jaeger Tracing: needs to be running on localhost port 16686.

Run the Application

# from this directory
npm start

Jaeger UI

Open 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.

LICENSE

Apache License 2.0