opentelemetry-js/examples/opentracing-shim
Trent Mick 4f9b31b78a
docs: update from deprecated SEMRESATTRS_SERVICE_NAME to ATTR_SERVICE_NAME (#5604)
2025-04-10 07:35:26 +00:00
..
images feat: add OpenTracing example (#581) 2019-12-17 16:52:08 -08:00
README.md chore(lint): refactor Markdown linting to use markdownlint-cli2 (#4713) 2024-05-21 14:44:23 +02:00
client.js Use instrumentation loader to load plugins and instrumentations (#1855) 2021-02-05 19:02:29 +01:00
package.json chore!: bump min-supported node to ^18.19.0 || >=20.6.0 (#5397) 2025-01-31 09:18:27 +00:00
server.js feat(shim-opentracing): update logging based on new spec (#2282) 2021-06-30 11:40:14 -04:00
shim.js docs: update from deprecated SEMRESATTRS_SERVICE_NAME to ATTR_SERVICE_NAME (#5604) 2025-04-10 07:35:26 +00: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

Zipkin UI showing a trace

Jaeger

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

Jaeger UI showing a trace

LICENSE

Apache License 2.0