OpenTelemetry guide: choosing an SDK, automatic instrumentation, and a Collector
OpenTelemetry (OTel) is an open-source standard and toolkit for generating, collecting, processing, and exporting telemetry such as traces, metrics, and logs. It is not the observability backend that stores data or provides query screens. To get started, decide whether you need code-based or automatic instrumentation, choose the data format and export path, and add a Collector when an intermediate layer fits your needs.
OpenTelemetry (OTel) is an open-source standard and toolkit for generating, collecting, processing, and exporting telemetry such as traces, metrics, and logs. It is not the observability backend that stores data or provides query screens. To get started, decide whether you need code-based or automatic instrumentation, choose the data format and export path, and add a Collector when an intermediate layer fits your needs.
What OTel does and does not do
OTel provides APIs and language SDKs for generating signals, semantic conventions, the OTLP (OpenTelemetry Protocol) format, instrumentation libraries, and a Collector that receives, processes, and exports data. These components can reduce coupling between application instrumentation and an observability backend. Storage, querying, dashboards, and alerting are provided by a backend such as Jaeger, Prometheus, or a commercial service. Installing OTel alone does not create historical storage or a user interface.
The main signals answer different questions:
| Signal | Question | Typical use |
|---|---|---|
| Traces | How did a request travel through services, and where was it slow or failing? | Distributed request paths and span analysis |
| Metrics | How did a quantity or distribution change over time? | Aggregated request rate, error rate, latency distribution, resource use |
| Logs | What event or detail was recorded at a particular time? | Investigating error context and individual events |
Choose signals for the questions you need to answer instead of enabling everything automatically, and preserve shared context for trace/log correlation. Baggage carries contextual information across service boundaries; consider its propagation and exposure risks before putting sensitive data in it.
APIs and SDKs, automatic instrumentation, and Collector
APIs and SDKs are how code creates and exports signals. You can use instrumentation already built into libraries or add manual spans, metrics, and logs for business steps that automation cannot infer. SDKs handle sampling, processing, and export configuration. Check official support for your runtime and framework rather than assuming every language has the same signals and feature maturity.
Automatic (zero-code) instrumentation uses agents or runtime integrations to capture signals at boundaries such as HTTP clients and servers. It can provide a quick start or help when an application cannot be modified, but it may not reveal business meaning or internal branches. Add manual instrumentation when deeper diagnosis is needed, and check that automatic and manual paths do not record the same request twice.
The Collector is an intermediate data path made of receivers, optional processors, and exporters. It can receive OTLP from applications, modify or filter attributes, sample data, and forward it to one or more destinations. Direct export from an application to a backend is also possible. A Collector helps centralize transport and transformation settings across services and can simplify backend changes, but adds configuration, capacity, security, and failure handling to operate. Verify that each configured component supports the signal type in its pipeline.
Start safely with a small scope
**Choose a question and signals.** For API latency, start with traces and latency metrics; add limited log context when you need failure details.
**Check runtime support.** Verify the OTel API/SDK, automatic instrumentation, exporters, and backend compatibility for the specific language, version, and framework.
**Standardize service identity.** Set `service.name` and needed Resource attributes such as environment and version. Arbitrary names per deployment make comparisons harder.
**Choose the export path and failure behavior.** Decide between direct export and a Collector. Review the effect of network or backend outages on request handling, retries, queues, and possible data loss. Check SDK/configuration limits so telemetry export does not block the application.
**Limit exposure and cost.** Do not collect credentials, request bodies, or personal data by default; allowlist necessary attributes. Avoid unbounded values such as user IDs, request IDs, or full URLs as metric dimensions. Set sampling and retention according to purpose and backend cost.
**Verify a real path.** Send a representative request and check that its trace reaches the backend with correct service and environment information and can explain errors or latency. Then expand to success/failure cases and other service boundaries. This article does not claim that any environment was configured or tested.
Choosing a starting point
| Situation | Starting point | Tradeoff to check |
|---|---|---|
| Fast visibility, code changes are difficult | Supported automatic instrumentation | Less business context and language-specific feature gaps |
| Business steps and domain meaning matter | Manual API/SDK instrumentation, optionally with automatic instrumentation | Instrumentation maintenance and duplicate spans |
| Centralized transport, transformation, and destinations across services | Use a Collector | Another operational component and failure path |
| Few services and simple deployment | Consider SDK-to-backend export | Distributed service configuration and backend migration effort |
OTel does not replace a storage or visualization product. Using the standard does not mean every backend offers identical features or semantics; check formats, attributes, and sampling at each integration boundary.
Sources and scope
OpenTelemetry, [What is OpenTelemetry?](https://opentelemetry.io/docs/what-is-opentelemetry/)
OpenTelemetry, [Components](https://opentelemetry.io/docs/concepts/components/)
OpenTelemetry, [Signals](https://opentelemetry.io/docs/concepts/signals/)
OpenTelemetry, [Instrumentation](https://opentelemetry.io/docs/concepts/instrumentation/)
OpenTelemetry Collector, [Architecture](https://opentelemetry.io/docs/collector/architecture/)
Based on official OpenTelemetry documentation reviewed on 2026-11-19. SDK and automatic-instrumentation coverage varies by language, version, and library. No specific backend setup, performance figure, storage policy, or operational result is claimed.