Socket
Socket
Sign inDemoInstall

github.com/bakins/otlptcp

Package Overview
Dependencies
36
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/bakins/otlptcp


Version published

Readme

Source

otlptcp receiver

otlptcp is a receiver for opentelemetry-collector-contrib that receives traces, metrics, and logs via a tcp listener.

Config

Example:

receivers:
  otlptcp:
    listen_address: 0.0.0.0:14317

exporters:
  otlp:
    endpoint: otelcol:4317

service:
  pipelines:
    traces:
      receivers: [otlptcp]
      exporters: [otlp]
    metrics:
      receivers: [otlptcp]
      exporters: [otlp]
    logs:
      receivers: [otlptcp]
      exporters: [otlp]

Availible configuration options:

  • listen_address - listening address in the form of <ip>:port. default is 0.0.0.0:14317
  • max_message_size - maximum size of a single message. Default to 1m.
  • listen_network - listent network. Only tcp is supported.

Usage in collector

See https://opentelemetry.io/docs/collector/custom-collector/

Protocol

Each message is prefixed with 5 bytes.

The first byte is an unsigned 8 bit integer that denotes the type of the message. Valid values are:

The next 4 bytes should be an unsigned 32 bit integer in big-endian order.

The message is a protocol buffer encoded request of the appropriate message type.

FAQs

Last updated on 20 Mar 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc