Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Traces

Direct 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.

When to use this

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.

First 30 seconds

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.

Operational verification

run → spans per step → trace

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
automation logging and observability
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformautomation logging and observability · Traces owns distributed execution-path telemetry for automation. Metrics owns aggregate trends; logs own detailed events; tool/platform branches own tracing support.
Scope / prerequisiteUse it when observing automation around Traces. Keep requested action, accepted operation, emitted telemetry, collected…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

4 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Trace complete ≠ target state correct.
  • Span error ≠ root cause automatically identified.
  • Sampling ≠ representative for every incident.
  • Propagation header present ≠ downstream instrumentation recorded a span.
Key checks
  • 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docautomation logging and observability current

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%
Terminology layer

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.

Aliases that resolve here
automation tracingdistributed traces automationjob trace spans
Embedded reference data

Quick lookup tables

Traces observability proof-boundary map

Fast identity/scope, telemetry-path, effective-outcome and monitoring/closure boundaries for Traces.

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
Depth when you need it

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.

Confirmation

Confirm action

Continue?