opentelemetry-js/examples/basic-tracer-node
Daniel Dyla 65b5ba2d04
chore: 0.8.3 release proposal (#1122)
2020-05-28 16:13:08 -04:00
..
docker/ot Collector exporter (#552) 2019-12-04 08:43:09 -08:00
images chore: Docs wording and example for basic-tracer (#361) 2019-09-28 02:26:19 +02:00
README.md Simplify Basic Tracer example (#842) 2020-03-10 16:42:46 -07:00
index.js Fix:Spelling Mistake (#1104) 2020-05-26 10:33:10 -04:00
package.json chore: 0.8.3 release proposal (#1122) 2020-05-28 16:13:08 -04:00

README.md

Overview

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.

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