Miss any of our Open RFC calls?Watch the recordings here! »

@opentelemetry/shim-opentracing

0.9.0 • Public • Published

OpenTracing shim

Gitter chat NPM Published Version dependencies devDependencies Apache License

OpenTracing shim allows existing OpenTracing instrumentation to report to OpenTelemetry

Note: Baggage is currently not propagated, see issues/329.

Installation

npm install --save @opentelemetry/shim-opentracing

Usage

Use the TracerShim wherever you initialize your OpenTracing tracers.

const opentracing = require('opentracing');
 
// Old tracer initialization.
const tracer = myOpenTracingTracer(...);
opentracing.initGlobalTracer(tracer);
 
// New tracer initialization.
import { TracerShim } from '@opentelemetry/shim-opentracing';
 
const tracer = myOpenTelemetryTracer(...)
opentracing.initGlobalTracer(new TracerShim(tracer));
 

See examples/opentracing-shim for a short example.

License

Apache 2.0 - See LICENSE for more information.

Install

npm i @opentelemetry/shim-opentracing

DownloadsWeekly Downloads

173

Version

0.9.0

License

Apache-2.0

Unpacked Size

28.2 kB

Total Files

9

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar