DataDog/opentelemetry-examples

OpenTelemetry examples for ramping up

41

stars

228

commits

Go

primary language

Sep 5, 2026

updated

README

OpenTelemetry Examples

The repository includes example applications and configurations for Datadog users, engineers, and support to understand how Datadog support of OpenTelemetry works today. These examples provide reference material for integrating OpenTelemetry instrumented applications with Datadog products and allow independent experimentation with OpenTelemetry behaviors. The available resources include:

  • Common mistakes for common mistakes or confusions end-users face when using OpenTelemetry.
  • Configurations for configuration examples of the Datadog Agent and the OpenTelemetry Collector.

Index

ExampleDescriptionMonitoring Capabilities
Game of LifeGo client-server app using gRPC, OTel Go and dd-trace-go instrumentationsTracing gRPC and HTTP endpoints, OTLP metrics and logs, runtime metrics
Kafka Redis MessagesDistributed app with Kafka and Redis, OTel and Datadog instrumentationsKafka, Redis
Log Trace CorrelationGo client-server app automatically generating traces and logs, OTel instrumentation with Datadog AgentLog trace correlation
Manual Container MetricsGo server manually generating OTel container metrics, OTel Go instrumentation with OTel CollectorContainer metrics correlation in the trace app
.NET REST Service.NET API app, OTel .NET and dd-trace-dotnet instrumentationsTracing, runtime metrics
Go REST ServiceGo HTTP app, OTel Go instrumentationTracing HTTP endpoint, OTel metrics, runtime metrics
Java REST ServiceJava HTTP app, OTel Java and dd-trace-java instrumentation, probabilistic sampler processorIngestion sampling, runtime metrics
JavaScript REST ServiceNode.js API app, OTel Node.js auto instrumentationAuto instrumented traces
Python REST ServiceCRUD API apps, OTel Python auto instrumentationSQLite & Postgres
RPCGo client-server gRPC Hello World appTracing gRPC endpoint, gRPC metrics using OpenCensus bridge
Span LinksDistributed app with Kafka messages, OTel Go and Java instrumentationsOTel span links
W3C Trace ContextJava and Python app to demonstrate W3C trace context propagation between OTel and DD instrumented appsW3C trace context, runtime metrics
Kubernetes (Datadog Operator and Helm) with ExpressAn Express sample app configured with KubernetesKubernetes
Flask and Express Trace ContextAn Express controller server calling two Flask serversStandalone Host/Docker
Kafka Producer, Consumer and BrokerA kafka java consumer, java producer and brokerKafka metrics, Tracing, Logs

Contributors

DataDog/opentelemetry-examples

OpenTelemetry examples for ramping up

41

stars

228

commits

Go

primary language

Sep 5, 2026

updated

README

OpenTelemetry Examples

The repository includes example applications and configurations for Datadog users, engineers, and support to understand how Datadog support of OpenTelemetry works today. These examples provide reference material for integrating OpenTelemetry instrumented applications with Datadog products and allow independent experimentation with OpenTelemetry behaviors. The available resources include:

  • Common mistakes for common mistakes or confusions end-users face when using OpenTelemetry.
  • Configurations for configuration examples of the Datadog Agent and the OpenTelemetry Collector.

Index

ExampleDescriptionMonitoring Capabilities
Game of LifeGo client-server app using gRPC, OTel Go and dd-trace-go instrumentationsTracing gRPC and HTTP endpoints, OTLP metrics and logs, runtime metrics
Kafka Redis MessagesDistributed app with Kafka and Redis, OTel and Datadog instrumentationsKafka, Redis
Log Trace CorrelationGo client-server app automatically generating traces and logs, OTel instrumentation with Datadog AgentLog trace correlation
Manual Container MetricsGo server manually generating OTel container metrics, OTel Go instrumentation with OTel CollectorContainer metrics correlation in the trace app
.NET REST Service.NET API app, OTel .NET and dd-trace-dotnet instrumentationsTracing, runtime metrics
Go REST ServiceGo HTTP app, OTel Go instrumentationTracing HTTP endpoint, OTel metrics, runtime metrics
Java REST ServiceJava HTTP app, OTel Java and dd-trace-java instrumentation, probabilistic sampler processorIngestion sampling, runtime metrics
JavaScript REST ServiceNode.js API app, OTel Node.js auto instrumentationAuto instrumented traces
Python REST ServiceCRUD API apps, OTel Python auto instrumentationSQLite & Postgres
RPCGo client-server gRPC Hello World appTracing gRPC endpoint, gRPC metrics using OpenCensus bridge
Span LinksDistributed app with Kafka messages, OTel Go and Java instrumentationsOTel span links
W3C Trace ContextJava and Python app to demonstrate W3C trace context propagation between OTel and DD instrumented appsW3C trace context, runtime metrics
Kubernetes (Datadog Operator and Helm) with ExpressAn Express sample app configured with KubernetesKubernetes
Flask and Express Trace ContextAn Express controller server calling two Flask serversStandalone Host/Docker
Kafka Producer, Consumer and BrokerA kafka java consumer, java producer and brokerKafka metrics, Tracing, Logs

Contributors

Languages

Go

48.1%

Java

15.6%

Python

13.9%

Shell

7.2%

C#

4.4%

JavaScript

3.2%

Go Template

2.3%

HTML

2.2%

Dockerfile

2.1%