Skip to content
BENIBIX Learn

OpenTelemetry (OTel)

Infrastructure📈 Monitoring & ObservabilityTelemetry and Dashboard Tools

Also known as OTel, OTLP, OpenTelemetry Collector

An open way to send out traces, metrics and logs. Any tool can read them.

Think of it like

It is like a plug that fits every socket. Your data can go to any tool you choose.

Example

Emma's team adds OpenTelemetry to its services. A year later, it moves to a new tool. It changes one setting, not its code.

Why it matters

Without one standard, every tool needs its own code in your app. Changing tools then means rewriting it.

Definition

OpenTelemetry is a free, open standard and set of tools for sending out telemetry. It covers all three signals: traces, metrics and logs. You add it to your code once. It can then send data to almost any tool, free or paid. It does not store or show the data itself. It was formed by merging two older projects, OpenTracing and OpenCensus.

Example code

bash
export OTEL_SERVICE_NAME=shop
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
Two settings name the service and say where to send its data, here on the usual HTTP port.
OpenTelemetry can send out all three of these from the same code. They go to any tool you pick.

Common mistake

Expecting it to show charts. It only gathers and sends data; another tool has to store and show it.

Key takeaways

  1. 1
    One standard. The same format for every tool.
  2. 2
    All three signals. Traces, metrics and logs together.
  3. 3
    Not a store. It sends data, other tools keep it.