New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fetsorn/opentelemetry-console-exporter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fetsorn/opentelemetry-console-exporter

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

0.0.3
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

opentelemetry

FAQs

Package last updated on 26 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts