@jrosadob/ms-trace
v0.0.18
Published
ms-trace
Downloads
42
Maintainers
Readme
@jrosadob/ms-trace
[![npm version](https://badge.fury.io/js/@jrosadob%2Fms-trace.svg)](https://badge.fury.io/js/@jrosadob%2Fms-trace)
Package dependencies
This package use:
$ npm i --save @opentelemetry/sdk-node
$ npm i --save @opentelemetry/auto-instrumentations-node
$ npm i --save @opentelemetry/exporter-trace-otlp-http
$ npm i --save @jrosadob/ms-config
How use
Install
$ npm i @jrosadob/ms-trace
Sample .env
file
The rest of the configuration should be on the configuration server in yml format.
app:
name: AppName
tracer:
exporter:
url: http://localhost:4318/v1/traces
Use in main.ts
This sample show how use ConfigServer in main.ts