Interview Prep/SRE & Reliability/Observability & Telemetry Decisions

Your team has metrics and logs but no tracing. A request to checkout fans out to 9 services and nobody can tell where the 2 seconds go. How do you introduce tracing?

IntermediateScenarioObservability & Telemetry Decisions
Answer

Situation read → Metrics tell you that checkout is slow, logs tell you something happened in one service; only traces show the critical path across nine hops. The goal is useful traces quickly, not a perfect rollout.

What I'd do →

  1. Pick OpenTelemetry as the standard so we are not locked to a vendor backend.
  2. Deploy an OpenTelemetry Collector (agent DaemonSet plus a gateway Deployment) and a backend such as Grafana Tempo or Jaeger.
  3. Start with zero-code auto-instrumentation via the OpenTelemetry Operator:
    apiVersion: opentelemetry.io/v1alpha1
    kind: Instrumentation
    metadata:
      name: default
      namespace: shop
    spec:
      exporter:
        endpoint: http://otel-collector.observability:4318
      propagators: [tracecontext, baggage]
      sampler:
        type: parentbased_traceidratio
        argument: "0.1"
    
    Then annotate deployments with instrumentation.opentelemetry.io/inject-java: "true" (or -python, -nodejs).
  4. Instrument the checkout path first, end to end, including the ingress so trace context starts at the edge.
  5. Add manual spans only where auto-instrumentation is blind (queue consumers, batch steps).
  6. Link traces to metrics with exemplars and to logs by injecting trace_id into every log line.

Why → One fully traced critical journey proves value in a week; instrumenting everything shallowly proves nothing.

Interview tip → Say "W3C traceparent propagation end to end" — broken propagation is the number one reason traces look fragmented.

All SRE & Reliability questions

More on Observability & Telemetry Decisions