🔭

OpenTelemetry Setup

Verified

by Community

Guides you through setting up OpenTelemetry for traces, metrics, and logs. Covers SDK installation, auto-instrumentation, custom spans, exporters for popular backends like Jaeger and Prometheus, and best practices for production deployments.

opentelemetryobservabilitytracing

OpenTelemetry Setup

Instrument your applications with OpenTelemetry to collect traces, metrics, and logs in a vendor-neutral format. Covers setup for multiple languages, auto-instrumentation, and exporting to popular observability backends.

Usage

Ask about setting up OpenTelemetry in your language, configuring exporters, or adding custom instrumentation to your code.

Examples

  • "How do I set up OpenTelemetry in a Node.js Express app?"
  • "Configure OpenTelemetry to export traces to Jaeger"
  • "How do I add custom spans to my service methods?"

Guidelines

  • Start with auto-instrumentation before adding custom spans
  • Use the OpenTelemetry Collector as an intermediary for flexibility
  • Set appropriate sampling rates for production workloads
  • Propagate context across service boundaries using W3C Trace Context
  • Keep span names stable and low-cardinality for effective aggregation