opentelemetry-exporter-console-pretty
v1.0.1
Published
## Getting started
Downloads
1,220
Readme
Pretty Console Exporter For OpenTelemetry JS
Getting started
- Install via your package manager
$ pnpm add opentelemetry-exporter-console-pretty
$ yarn add opentelemetry-exporter-console-pretty
$ npm i -S opentelemetry-exporter-console-pretty
- Use it as a span processor
const { NodeSDK } = require('@opentelemetry/sdk-node')
const { PrettyConsoleProcessor } = require('opentelemetry-exporter-console-pretty')
const sdk = new NodeSdk({
spanProcessor: new PrettyConsoleProcessor(),
instrumentations: [
// your instrumentations
]
})