# OpenTelemetry (OTel)

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

**Field:** Infrastructure  
**Category:** Monitoring & Observability  
**Also known as:** OTel, OTLP, OpenTelemetry Collector

## Think of it like

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

## 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

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

## 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.

## Why it matters

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

## Common mistake

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

## Three principles

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

## Related terms

- [Distributed Tracing](https://learn.benibix.com/term/infrastructure/distributed-tracing)
- [Observability](https://learn.benibix.com/term/infrastructure/observability)
- [Metric (Monitoring)](https://learn.benibix.com/term/infrastructure/metric)
- [Logging](https://learn.benibix.com/term/infrastructure/logging)
- [Prometheus](https://learn.benibix.com/term/infrastructure/prometheus)
- [CLAUDE_CODE_ENABLE_TELEMETRY](https://learn.benibix.com/term/ai/claude-code-enable-telemetry-variable)
- [Instrumentation](https://learn.benibix.com/term/infrastructure/instrumentation)

![Three panels side by side about the same slow request. Logs: three lines of text, each with a time and a message, the last one an error. Metrics: a line chart of response time over an hour, with a spike. Traces: a set of stacked bars, one per step of the request, where the database bar is the longest.](https://learn.benibix.com/diagrams/inf-telemetry-signals.svg)

---

Source: https://learn.benibix.com/term/infrastructure/opentelemetry
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
