* chore: rename provider in examples and getting started * chore: update examples, bench, and getting started for api * chore: update examples for latest changes * chore: lint examples |
||
|---|---|---|
| .. | ||
| images | ||
| README.md | ||
| client.js | ||
| package.json | ||
| server.js | ||
| shim.js | ||
| utils.js | ||
README.md
Overview
OpenTracing shim allows existing OpenTracing instrumentation to report to OpenTelemetry.
This is a simple example that demonstrates how existing OpenTracing instrumentation can be integrated with OpenTelemetry.
The example shows key aspects of tracing such as
- Root Span (on client)
- Child Span from a remote parent (on server)
- Span Tag
- Span Log
- Make a shim between OpenTracing and OpenTelemetry tracers
Installation
# from this directory
$ npm install
Run the Application
Zipkin
-
Setup Zipkin Tracing UI
-
Run the server
# from this directory
$ npm run zipkin:server
- Run the client
# from this directory
$ npm run zipkin:client
-
Check trace
zipkin:clientshould output thetraceIdin the terminal.Go to Zipkin with your browser http://localhost:9411/zipkin/traces/(your-trace-id) (e.g http://localhost:9411/zipkin/traces/4815c3d576d930189725f1f1d1bdfcc6)

Jaeger
-
Setup Jaeger Tracing UI
-
Run the server
# from this directory
$ npm run jaeger:server
- Run the client
# from this directory
$ npm run jaeger:client
-
Check trace
jaeger:clientshould output thetraceIdin the terminal.Go to Jaeger with your browser http://localhost:16686/trace/(your-trace-id) (e.g http://localhost:16686/trace/4815c3d576d930189725f1f1d1bdfcc6)

Useful links
- For more information on OpenTelemetry, visit: https://opentelemetry.io/
- For more information on OpenTelemetry for Node.js, visit: https://github.com/open-telemetry/opentelemetry-js/tree/master/packages/opentelemetry-node
- For more information on OpenTracing, visit: https://opentracing.io/
LICENSE
Apache License 2.0