npm.io
1.0.2 • Published 3 years ago

opentelemetry-tracing

Licence
ISC
Version
1.0.2
Deps
20
Size
9 kB
Vulns
24
Weekly
0

Opentelemetry Tracing

Description

Support add tracing in NodeJS project

Installation

$ npm install opentelemetry-tracing
or 
$ yarn add opentelemetry-tracing

Inject plugin

// import lib
import * as tracer from 'opentelemetry-tracing';

// Inject current project
await tracer.start({
	serviceName: "<service_name>",
	otlpEndpoint: "<domain_otlp | domain_jagger | .... >",
	version: "<version_tracing>",
	exporter: "<exporter>",
});
Note:

You can view list exporter has supported https://opentelemetry.io/docs/instrumentation/js/exporters

License

Nest is MIT licensed.

Keywords