@fetsorn/opentelemetry-console-exporter
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

OpenTelemetry Console Trace Exporter

NPM Published Version

OpenTelemetry Console Trace Exporter allows the user to send collected traces to console.debug.

Setup

Google Cloud Trace is a managed service provided by Google Cloud Platform.

Installation

npm install --save @fetsorn/opentelemetry-console-exporter

Usage

Install the exporter on your application, register the exporter, and start tracing.

const { ConsoleExporter } = require('@fetsorn/opentelemetry-console-exporter');

const exporter = new TraceExporter({
  // If you want more detailed view, you will need to specify `isDetailed = true` here
});

Now, register the exporter.

provider.addSpanProcessor(new BatchSpanProcessor(exporter));

Exporter requires BatchSpanProcessor to analyze the trace hierarchy.

  • BatchSpanProcessor: The implementation of the SpanProcessor that batches ended spans and pushes them to the configured SpanExporter.

Useful links

Package Sidebar

Install

npm i @fetsorn/opentelemetry-console-exporter

Weekly Downloads

43

Version

0.0.3

License

MIT

Unpacked Size

26.2 kB

Total Files

17

Last publish

Collaborators

  • fetsorn