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

@opentelemetry/exporter-logs-otlp-proto

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/exporter-logs-otlp-proto

An OTLP exporter to send logs using protobuf over HTTP

  • 0.55.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created

What is @opentelemetry/exporter-logs-otlp-proto?

@opentelemetry/exporter-logs-otlp-proto is an npm package that allows you to export logs using the OpenTelemetry Protocol (OTLP) in protobuf format. This package is part of the OpenTelemetry project, which provides a set of APIs, libraries, agents, and instrumentation to enable observability in your applications.

What are @opentelemetry/exporter-logs-otlp-proto's main functionalities?

Exporting Logs

This feature allows you to export logs to an OTLP endpoint using the protobuf format. The code sample demonstrates how to set up the OTLPProtoLogExporter, create a LoggerProvider, and emit a log message.

const { OTLPProtoLogExporter } = require('@opentelemetry/exporter-logs-otlp-proto');
const { LoggerProvider } = require('@opentelemetry/sdk-logs');
const { SimpleLogRecordProcessor } = require('@opentelemetry/sdk-logs');

const exporter = new OTLPProtoLogExporter({
  url: 'http://localhost:4317',
});

const loggerProvider = new LoggerProvider();
loggerProvider.addLogRecordProcessor(new SimpleLogRecordProcessor(exporter));

const logger = loggerProvider.getLogger('example-logger');

logger.emit({
  severityText: 'INFO',
  body: 'This is an example log message',
});

Other packages similar to @opentelemetry/exporter-logs-otlp-proto

Keywords

FAQs

Package last updated on 18 Nov 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