Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opentelemetry/exporter-jaeger

Package Overview
Dependencies
Maintainers
3
Versions
205
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/exporter-jaeger

OpenTelemetry Exporter Jaeger allows user to send collected traces to Jaeger

  • 1.30.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
452K
decreased by-5.64%
Maintainers
3
Weekly downloads
 
Created

What is @opentelemetry/exporter-jaeger?

@opentelemetry/exporter-jaeger is an npm package that allows you to export OpenTelemetry traces to Jaeger, a popular open-source distributed tracing system. This package is part of the OpenTelemetry project, which provides a set of APIs, libraries, agents, and instrumentation to enable observability for cloud-native software.

What are @opentelemetry/exporter-jaeger's main functionalities?

Exporting Traces to Jaeger

This code sample demonstrates how to set up the Jaeger exporter with OpenTelemetry in a Node.js application. It configures the exporter to send traces to a Jaeger instance running locally and starts a simple trace.

const { NodeTracerProvider } = require('@opentelemetry/node');
const { SimpleSpanProcessor } = require('@opentelemetry/tracing');
const { JaegerExporter } = require('@opentelemetry/exporter-jaeger');

const provider = new NodeTracerProvider();
const exporter = new JaegerExporter({
  serviceName: 'my-service',
  endpoint: 'http://localhost:14268/api/traces',
});

provider.addSpanProcessor(new SimpleSpanProcessor(exporter));
provider.register();

// Now you can start tracing your application
const tracer = provider.getTracer('example-tracer');
const span = tracer.startSpan('example-span');
span.end();

Configuring Exporter Options

This code sample shows how to configure additional options for the Jaeger exporter, such as setting custom tags and specifying the maximum packet size.

const exporter = new JaegerExporter({
  serviceName: 'my-service',
  endpoint: 'http://localhost:14268/api/traces',
  tags: [], // Optional: Add custom tags
  maxPacketSize: 65000, // Optional: Set max packet size
});

Other packages similar to @opentelemetry/exporter-jaeger

Keywords

FAQs

Package last updated on 18 Dec 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc