Use it when observing automation around Traces. Keep requested action, accepted operation, emitted telemetry, collected telemetry, effective target state and workload/service result as separate proof boundaries.
Traces
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.
1. Traces show step timing across services.
2. Useful for complex workflows and APIs.
3. Propagate context.
4. Link logs via trace IDs.
5. Sample appropriately.
run → spans per step → trace
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
automation transaction → root trace → queue/controller span → worker span → dependency/API/remote spans → verification span → exported trace → service map/waterfall → correlated logs/metrics
Healthy evidence: trace context survives important async and remote boundaries, spans isolate queue/dependency/verification time, attributes are safe, and trace IDs correlate to logs and metrics.
Step 2 Failure modes and next checks Narrow the fault
Suspicious evidence: every trace stops at the controller, dynamic span names explode cardinality, sensitive payloads are attributes, or sampling drops the exact failure class without alternative evidence.
Step 3 Common mistakes Narrow the fault
- Traces without correlation IDs.
Step 4 Where it fails Narrow the fault
Where Traces usually goes wrong: trace/span identity, parent-child causality, sampling, error status and correlation to target state.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Trace complete ≠ target state correct.
- Span error ≠ root cause automatically identified.
- Sampling ≠ representative for every incident.
- Propagation header present ≠ downstream instrumentation recorded a span.
- OpenTelemetry tracing in automation code — spans per step
- Trace IDs in logs — correlation
- Trace backend (Tempo/Jaeger) — analysis
ReferenceWhat it is1 section · depth on demand
Core model
Create a trace for the automation transaction, propagate trace/span context across supported calls, define spans around meaningful boundaries such as queue wait, credential retrieval, API call, remote command and verification, attach safe attributes, sample deliberately, and correlate trace IDs back to logs and target evidence.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Traces establish observed causal timing for instrumented spans and sampled transactions; they do not show uninstrumented work, unsampled failures or correctness of the resulting target state.
In depth
In observability, a trace follows one automation run or request across components — API, queue, worker, external APIs — as spans with timings and parent/child links. It shows where time went and which step failed.
from opentelemetry import trace
tracer = trace.get_tracer("vlan-service")
with tracer.start_as_current_span("provision_vlan") as span:
span.set_attribute("vlan.id", 120)
with tracer.start_as_current_span("netbox.allocate"):
allocate()
with tracer.start_as_current_span("deploy.switches"):
deploy()
Propagate the trace context through queues and HTTP headers so the trace stays connected across services.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Logging & Observability > Traces. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://opentelemetry.io/docs/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Traces observability proof-boundary map
Fast identity/scope, telemetry-path, effective-outcome and monitoring/closure boundaries for Traces.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Identity / scope | Immutable source plus run/job/attempt and exact target IDs are explicit | Floating source, shared labels or ambiguous target scope make events hard to attribute |
| Telemetry path | Structured logs, metrics and traces are exported, timestamped, retained and correlated | Console-only output, missing data or broken correlation silently creates blind spots |
| Effective outcome | Job status is paired with target read-back and workload/service acceptance | Green execution state substitutes for effective target or service verification |
| Monitoring / closure | Rates, latency, freshness and alerts use explicit windows/objectives and tested recovery | Untested alerts, stale dashboards or one successful sample are treated as healthy system proof |
Deep reference
Healthy vs suspicious evidence
Output interpretation
For Traces, rely on structured fields and stable IDs (trace/span identity, parent-child causality, sampling, error status and correlation to target state) rather than text formatted for display.