opentelemetry-js/examples/basic-tracer-node
Daniel Dyla bebd82a7f1
chore!: rename collector exporters (#2476)
* chore!: rename collector exporters

* chore: finish renaming

* chore: finish renaming

* chore: typo
2021-09-15 20:41:08 +02:00
..
docker/ot chore: update example (#2222) 2021-06-01 16:28:03 -04: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