Interview Prep/Monitoring & Observability/Observability as Code, Security & Vendor Choices

How does OpenTelemetry reduce vendor lock-in in practice?

BeginnerProductionObservability as Code, Security & Vendor Choices
Answer

Applications use the vendor-neutral OTel SDK and send OTLP to a Collector you control. The backend choice becomes an exporter in the Collector config, so changing vendors (or sending to two at once during a migration) is a config change, not a code change across 100 services.

exporters:
  otlphttp/tempo: { endpoint: http://tempo:4318 }
  otlphttp/vendor: { endpoint: https://otlp.vendor.example, headers: { api-key: "${env:VENDOR_KEY}" } }
service:
  pipelines:
    traces: { receivers: [otlp], processors: [memory_limiter, batch], exporters: [otlphttp/tempo, otlphttp/vendor] }

Lock-in still exists in dashboards, alert definitions and query languages, so keep those in code and prefer PromQL-compatible backends.

All Monitoring & Observability questions

More on Observability as Code, Security & Vendor Choices