Skip to main content

OpenTelemetry

All em-runtime services export traces, metrics, and logs via OpenTelemetry using the vendor-neutral OTLP protocol. The platform ships with built-in instrumentation — no application code changes are needed.

Architecture

The OTLP collector is not included in the em-runtime Helm chart. Deploy your preferred collector separately. Any OTLP-compatible backend works: Grafana Cloud, Datadog, Splunk, New Relic, Honeycomb, or self-hosted.

OpenTelemetry vs Langfuse

These two observability systems are complementary, not overlapping: Use both together: OTel for infrastructure health, Langfuse for LLM quality and cost. See the Langfuse setup guide for LLM-specific observability.

Configuration

Telemetry is controlled via environment variables in each service’s env block in the Helm values:

Point to Your Collector

Override the endpoint in your values file:

Disable Telemetry

For test environments without a collector:
Individual signals can also be toggled independently.
Telemetry initialization is non-fatal. If the collector is unreachable, services log a warning and continue operating normally.

Auto-Instrumented Libraries

The following libraries are automatically instrumented with no code changes:

Telemetry Signals

Traces

Distributed traces follow the W3C Trace Context format. Traces propagate across service boundaries automatically via httpx instrumentation. Key trace fields:
  • service.name — identifies the emitting service
  • http.method, http.url, http.status_code — HTTP span attributes
  • db.system, db.statement — database query details
  • trace_id — correlates logs and traces

Metrics

Application metrics are exported via OTLP and include:
  • HTTP request duration histograms
  • HTTP request counts by status code
  • Database connection pool utilization
  • Redis command latency

Logs

Structured JSON logs are written to stdout and optionally exported via OTLP:

OTel Collector Configuration

Deploy the OpenTelemetry Collector to receive, process, and export telemetry data.

Helm Installation

Metric Sources

Backend Options

Deploy via the Grafana LGTM Helm chart or individual component charts.

Next Steps

Helm Configuration

Telemetry environment variables in Helm values.

Prerequisites

Infrastructure requirements for the observability stack.