opentelemetry-exporter-console-pretty

1.0.1 • Public • Published

Pretty Console Exporter For OpenTelemetry JS

Getting started

  1. Install via your package manager
$ pnpm add opentelemetry-exporter-console-pretty
$ yarn add opentelemetry-exporter-console-pretty
$ npm i -S opentelemetry-exporter-console-pretty
  1. 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
  ]
})

Screenshot

Image showing colourful console output

Readme

Keywords

none

Package Sidebar

Install

npm i opentelemetry-exporter-console-pretty

Weekly Downloads

142

Version

1.0.1

License

ISC

Unpacked Size

644 kB

Total Files

5

Last publish

Collaborators

  • nordfjord