liveBook · Manning

OTLP

As explained in Logs and Telemetry

The OpenTelemetry Protocol (OTLP) is a vendor-neutral protocol for transmitting telemetry data between instrumentation, collectors, and backends.

OTLP is the OpenTelemetry Protocol: a vendor-neutral way to structure, encode, and transmit telemetry. It carries logs, metrics, and traces between instrumented applications, collectors, and analysis services. Its purpose is interoperability: a component that produces compliant telemetry can send it to another compliant component rather than relying on a custom integration. section 1.3.2 section 3.1

OTLP is more than a wire destination. It establishes common signal structures so collectors can receive distinct logs, traces, and metrics, transform or associate them, and forward them to downstream OpenTelemetry services or specialist analysis tools. Fluent Bit can occupy either side of that flow: receive OTLP as a collector or export normalized events onward. section 3.6.7 section 5.10

Choose an OTLP transport according to peer capability:

  • Prefer gRPC over HTTP/2 with compact Protobuf3 payloads when both ends support it. section 1.3.2 section 3.6.7
  • Use HTTP/1.1 with Protobuf3 payloads or JSON messages as permitted alternatives when HTTP/2 support is unavailable. section 3.6.7
  • Check version and endpoint support before deployment: signal structures have only recently become stable, and implementations may not support every allowed mechanism. section 3.6.7 section 5.10

Receive separate OTLP signals

An OpenTelemetry input can listen locally on separate ports for logs, traces, and metrics. Configure the traces listener with raw_traces enabled, then send every received record to stdout while validating the pipeline. This makes a small local collector useful for confirming that each signal reaches Fluent Bit in the expected form. section 3.6.7

For containerized applications, sending logs directly from application code or a logging-framework appender to an OTLP-compliant collector avoids an intermediate file or container-management path. Direct routing makes it easier to correlate logs with metrics and traces. OpenTelemetry SDKs support code-level emission, while the Logs Bridge API lets logging frameworks add OTLP-capable appenders. section 4.6.1

Export normalized telemetry

An OpenTelemetry output can send JSON over HTTP(S) to separate logs, traces, and metrics URIs. Set the destination host and port, configure the three signal paths, and repeat add_label to attach shared context such as an application and client label. Enable response-payload logging when an active delivery confirmation is operationally important. section 5.10

Figure 3.8 The phases and separation of steps involved in Open Telemetry traffic
figure

Follow the signal flow through the OpenTelemetry stages to locate where collection, processing, and export occur. section 3.6.7

How Logs and Telemetry covers it

How deep it goes
Explains transports, compatibility limits, input listeners, and output URI and label configuration without implementing application-side APIs.
Examples
Configures Fluent Bit listeners for logs, traces, and metrics, then exports signals through separate HTTP URIs with labels.
What it assumes
Assumes familiarity with Fluent Bit inputs and outputs while introducing OTLP signal transport and endpoint configuration.
What you can do after
Operate/configure OTLP ingestion and export in Fluent Bit while selecting a transport compatible with receiving services.
How it connects
Connects OpenTelemetry Collector, gRPC, HTTP/2, Protobuf, JSON, logs, metrics, traces, Prometheus, and Grafana.

Also explained in

Compare how 2 books explain OTLP →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Logs and Telemetry. The section links point to the parts of the book it draws on.