@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    64
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    64
  • 0.0.2
    0
  • 0.0.1
    2

Package Sidebar

Install

npm i @fetsorn/opentelemetry-console-exporter

Weekly Downloads

66

Version

0.0.3

License

MIT

Unpacked Size

26.2 kB

Total Files

17

Last publish

Collaborators

  • fetsorn