What Is OpenTelemetry? How It Works and How to Get Started


On November 18, 1883, noon arrived twice in several American cities. Once according to local time, and again when clocks were adjusted to the new railway standard.
Cities had kept local time, and railway companies operated according to their own chosen times. As routes connected, those differences became dangerous. Coordinating trains required knowing when they would reach particular points. Conflicting time standards created confusion that could contribute to collisions and deaths.
The Library of Congress calls it the “Day of Two Noons.” Standard railway time gave operators a shared reference for coordinating journeys across the network.
So why are we talking about railway timetables in a guide to OpenTelemetry?
Consider a customer placing an order. Their request passes through checkout, inventory, payment, and delivery services. Each service produces records of its activity, collectively called telemetry.
Different teams may record that activity differently. When payment succeeds but the order fails, engineers must connect those records before they can explain what happened.
Each railway could operate by its own clock, but coordinating the network required a shared standard. Similarly, understanding a request across services requires a common way to generate and connect its telemetry.
OpenTelemetry provides that foundation.
OpenTelemetry, often shortened to OTel, is an open-source, vendor-neutral framework for generating, collecting, processing, and exporting telemetry.
It provides APIs, SDKs, instrumentation libraries, and a Collector that help teams capture application behavior consistently. CNCF announced OpenTelemetry’s graduation in May 2026, marking a maturity milestone for the project.
Instrumentation means giving software the ability to report what it does. OpenTelemetry provides a common foundation for that reporting, while an observability backend supplies storage, searches, dashboards, and alerts.
This gives teams more flexibility over where telemetry goes. Switching backends can still require rebuilding queries and dashboards, but application instrumentation becomes less dependent on one vendor.
Return to the customer charged for an order they cannot find. Engineers need to establish where the transaction failed and whether other customers are affected.
Three types of telemetry help answer those questions.

A trace contains spans, each representing an operation. Context propagation carries identifiers between services so related operations remain connected.
Logs can also include trace and span identifiers. With compatible instrumentation and backend support, engineers can move from a failed operation to its supporting records instead of searching by timestamp.
Follow the order through a typical setup.
Instrumentation captures operations such as checking inventory or processing payment. The API provides interfaces for creating telemetry. The SDK implements those interfaces and manages processing and export.
An exporter sends the data onward, often using OTLP, the OpenTelemetry Protocol.
Many teams send it through the OpenTelemetry Collector. The Collector receives telemetry, applies configured processing, and forwards it to an observability backend.

Its pipelines connect receivers, processors, and exporters. This gives teams a shared place to manage processing and destinations rather than repeating every decision inside application code.
Applications can also export directly to compatible backends. A Collector becomes useful when several services need common controls, multiple destinations, or processing before storage.
Begin with a transaction your business depends on, such as placing an order. Define what an engineer should be able to explain when that transaction fails.
Identify which agents, libraries, and collectors already capture the transaction. Check their OpenTelemetry support before introducing overlapping instrumentation that could produce duplicate data.
Automatic instrumentation can capture activity from supported frameworks and dependencies. Add manual spans where business operations need more explanation, such as reserving inventory or applying a discount.
Extend instrumentation into the next service and verify that context survives the handoff. Include queues and background jobs.
A trace inside every service is insufficient if engineers cannot connect the operations belonging to one order.
Agree on service names and use OpenTelemetry’s semantic conventions for standard attributes. Consistent fields make queries easier to reuse across services.
Send telemetry to your backend and introduce a controlled failure. Ask another engineer to identify the failed operation and find the related logs.
Measure application overhead and pipeline capacity under representative traffic. Assign ownership for configuration changes and failed deliveries.
Review captured fields too. Credentials, session tokens, and unnecessary personal information should stay out of telemetry.
Once collection works, another decision appears: how much data should reach each destination?
In Grafana’s 2026 Observability Survey, complexity and overhead, signal-to-noise challenges, and cost were the three most commonly cited concerns. The survey gathered 1,363 responses through community outreach and industry events.
Sending everything to a premium backend can increase costs. Reducing volume carelessly can remove evidence needed during an incident.
Head sampling makes an early retention decision before the full request outcome is known. Tail sampling considers later evidence, such as errors or latency, but requires buffering, appropriate routing, and capacity.
Tail sampling cannot recover spans discarded earlier. Also check where span-derived metrics are generated: calculating error rates after selectively retaining failures can distort the result.
Test processing changes against important investigations, dashboard behavior, and cost. Establish how engineers will retrieve older evidence when customers report problems days later.
FOSSA helps businesses manage open-source software security and license compliance. As its microservices grew, distributed trace volume increased and Datadog APM costs became harder to predict.
Engineers spent time reviewing costs and quotas. Configuring sampling across services added maintenance work and uncertainty over which traces they could safely exclude.
FOSSA extended its Grepr implementation to process traces before they reached Datadog. Grepr reports a 90% reduction in distributed trace volume, while existing dashboards, alerts, and investigation workflows continued working. Retained raw data remained available for retrieval and backfill.

The case study does not identify FOSSA’s setup as an OpenTelemetry deployment. It demonstrates the problem that follows successful collection: controlling costs while keeping evidence accessible.
For teams using OTel, Grepr’s OpenTelemetry integration accepts OTLP/HTTP data from compatible collectors, processes it, and forwards output to compatible destinations.
Railway companies adopted standard time because independently operated routes had become a connected network. A schedule that worked locally had to make sense across the whole journey.
Your application reaches a similar point as services multiply. OpenTelemetry establishes common ground, but implementation determines whether engineers can follow the transaction.
Return to the customer whose payment succeeded but whose order failed. Can someone identify the broken operation and retrieve supporting records? Can they still do that after sampling or retention changes?
Those answers matter more than a successful export. They show whether the team can use its telemetry to explain a failure and help the customer.
The railways needed a shared clock to coordinate a journey. Your engineers need connected evidence to understand one.
OpenTelemetry is free and open source. Running it still involves costs for infrastructure, data transfer, storage, and engineering time. If you send telemetry to a paid observability platform, that platform’s charges also apply. Your total cost depends on how much data you collect, process, and retain.
OpenTelemetry helps applications generate, collect, and export telemetry, including logs, metrics, and traces. Prometheus focuses on metrics collection, storage, querying, and alerting. They can work together: applications can generate metrics through OpenTelemetry and send them to Prometheus for analysis.
OpenTelemetry can replace vendor-specific instrumentation in supported setups, but it does not replace Datadog’s storage, dashboards, alerts, or investigation tools. Datadog supports receiving OpenTelemetry data. Teams can use OTel to generate telemetry while continuing to use Datadog as their observability backend. Check feature compatibility before changing an existing setup.
You can start without a Collector by exporting telemetry directly to a compatible backend. A Collector becomes useful when you need shared controls for batching, retries, filtering, or routing data to multiple destinations. OpenTelemetry recommends using one for most production deployments, while direct export can suit development and small environments.
OpenTelemetry is the broader framework for instrumenting applications and handling telemetry. OTLP, short for OpenTelemetry Protocol, defines how telemetry is encoded and transported between applications, Collectors, and compatible backends. OTLP supports transport over HTTP and gRPC.
OpenTelemetry can capture activity automatically from supported frameworks and libraries, but coverage depends on your language, dependencies, and configuration. Installing it does not guarantee that every signal or business operation is captured. Review automatic coverage, configure the required exporters, and add manual instrumentation where important details are missing.
OpenTelemetry provides controls that can support cost management, including sampling, filtering, and processing before data reaches a backend. Savings depend on your configuration and vendor pricing. Processing also consumes infrastructure and engineering time, so compare total costs and confirm that changes preserve the evidence your team needs for investigations.