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 →
- Pick OpenTelemetry as the standard so we are not locked to a vendor backend.
- Deploy an OpenTelemetry Collector (agent DaemonSet plus a gateway Deployment) and a backend such as Grafana Tempo or Jaeger.
- Start with zero-code auto-instrumentation via the OpenTelemetry Operator:
Then annotate deployments withapiVersion: 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"instrumentation.opentelemetry.io/inject-java: "true"(or-python,-nodejs). - Instrument the checkout path first, end to end, including the ingress so trace context starts at the edge.
- Add manual spans only where auto-instrumentation is blind (queue consumers, batch steps).
- Link traces to metrics with exemplars and to logs by injecting
trace_idinto 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.
More on Observability & Telemetry Decisions
The monthly observability bill doubled in two months and finance wants it cut by 40%. What do you do?IntermediateA developer adds `customer_id` as a label to a request counter "for better debugging". You catch it in code review. What do you say?BeginnerYou need to pick a trace sampling strategy for a service doing 20,000 requests per second.AdvancedEvery team has built their own Grafana dashboards with different panels. During incidents, nobody can find anything.BeginnerA service's logs are unstructured strings like `Order 123 failed for user 9 after 3 retries`. Searching them during incidents is painful.BeginnerYour Prometheus is a single instance holding everything. It is at 90% memory and the team wants 13 months of retention for SLO reports.Advanced