Pcornel
Automation · Logging & Observability

Traces

Cheat sheet · https://pcornel.dk/topic.php?topic=5965

Back to the Topic

Answer

A trace follows one request or automation run as it passes through services, queues and APIs, recorded as linked spans with timings. It shows exactly which step was slow or failed, which separate logs and timestamps cannot do reliably.

Remember

  • Trace complete ≠ target state correct.
  • Span error ≠ root cause automatically identified.
  • Sampling ≠ representative for every incident.
  • Propagation header present ≠ downstream instrumentation recorded a span.

First checks

  • OpenTelemetry tracing in automation code — spans per step
  • Trace IDs in logs — correlation
  • Trace backend (Tempo/Jaeger) — analysis

Verify in this order

run → spans per step → trace

Where it usually breaks

Traces establish observed causal timing for instrumented spans and sampled transactions; they do not prove uninstrumented work, unsampled failures or correctness of the resulting target state.

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Traces observability proof-boundary map

BoundaryHealthy evidenceSuspicious evidence
Identity / scopeImmutable source plus run/job/attempt and exact target IDs are explicitFloating source, shared labels or ambiguous target scope make events hard to attribute
Telemetry pathStructured logs, metrics and traces are exported, timestamped, retained and correlatedConsole-only output, missing data or broken correlation silently creates blind spots
Effective outcomeJob status is paired with target read-back and workload/service acceptanceGreen execution state substitutes for effective target or service verification
Monitoring / closureRates, latency, freshness and alerts use explicit windows/objectives and tested recoveryUntested alerts, stale dashboards or one successful sample are treated as healthy system proof

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5965

Confirmation

Confirm action

Continue?