This article discusses integrating OpenTelemetry with Datadog, emphasizing how a vendor-neutral telemetry standard can be leveraged within a specific observability platform. It highlights the architectural flexibility OpenTelemetry provides for data collection while still utilizing Datadog's advanced analysis and correlation features. The core system design consideration is how to build an observability pipeline that is both standardized and powerful.
Read original on Datadog BlogMany organizations face a dilemma when choosing observability tools: tightly integrating with a vendor provides rich features but can lead to vendor lock-in, making it difficult to switch or integrate other tools. OpenTelemetry (OTel) addresses this by providing vendor-neutral APIs, SDKs, and data specifications for collecting traces, metrics, and logs. This decouples telemetry generation from backend processing, offering significant architectural flexibility.
OpenTelemetry defines a standardized way to instrument applications and collect telemetry data. This means that application code doesn't need to be rewritten if the observability backend changes. The OTel Collector, a proxy that receives, processes, and exports telemetry data, plays a crucial role in this architecture. It can be deployed as an agent, a gateway, or even within Kubernetes sidecars to aggregate and transform data before sending it to various observability platforms.
Architectural Benefit of OTel Collector
The OTel Collector acts as a flexible intermediary, allowing architects to define data processing pipelines. It can sample traces, filter metrics, redact sensitive information, and even fan out data to multiple observability backends simultaneously, enhancing resilience and allowing for multi-vendor strategies.
The integration pattern involves instrumenting applications with OpenTelemetry SDKs, sending data to an OpenTelemetry Collector, and then configuring the collector to export data to Datadog. Datadog provides an OpenTelemetry exporter that translates OTel data into Datadog's native format. This ensures that features like APM, infrastructure monitoring, and log management in Datadog can still leverage the standardized OTel inputs. Key to this is preserving essential metadata and correlations (e.g., trace context linking logs and metrics).