opentelemetry-js/examples/opentracing-shim
Daniel Dyla c5bc4382ec
update examples and getting started for provider and api package (#750)
* 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
2020-02-05 10:44:05 -08:00
..
images feat: add OpenTracing example (#581) 2019-12-17 16:52:08 -08:00
README.md feat: add OpenTracing example (#581) 2019-12-17 16:52:08 -08:00
client.js feat: lint examples (#649) 2020-01-24 08:03:04 -05:00
package.json feat: lint examples (#649) 2020-01-24 08:03:04 -05:00
server.js feat: lint examples (#649) 2020-01-24 08:03:04 -05:00
shim.js update examples and getting started for provider and api package (#750) 2020-02-05 10:44:05 -08:00
utils.js feat: lint examples (#649) 2020-01-24 08:03:04 -05:00

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

# from this directory
$ npm run zipkin:server
  • Run the client
# from this directory
$ npm run zipkin:client

Jaeger

# from this directory
$ npm run jaeger:server
  • Run the client
# from this directory
$ npm run jaeger:client

LICENSE

Apache License 2.0