Long-running agent workflows can span multiple execution processes, infrastructure deployments, and model configurations. Process replacement may generate new distributed trace identifiers even though the underlying business operation remains unchanged.
A durable job-scoped correlation identifier establishes continuity across these execution boundaries. The identifier should be generated when the shipment job begins, persisted alongside its checkpointed state, and restored whenever a replacement execution environment resumes processing.
Each relevant OpenTelemetry span should carry the same application-defined job identifier, allowing observability queries to reconstruct the complete execution history across multiple traces.
Anthropic supports OpenTelemetry instrumentation for Claude API requests, tool executions, and Managed Agents sessions. OpenTelemetry also supports linking causally related spans across distinct traces.
Trace correlation across agent restarts

Illustrative correlation identifier shared across three independent execution traces.
Maintaining a single open span throughout several process restarts is operationally fragile. Postponing infrastructure changes conflicts with deployment requirements, while timestamp-based matching becomes unreliable when multiple shipment jobs execute concurrently.
Persisting an application-level identifier establishes a stable correlation boundary independently of trace lifetime. Span links can provide additional causal relationships where appropriate.
This design supports reliable incident reconstruction, job-level expenditure attribution, execution auditing, and continuity monitoring throughout infrastructure and model upgrades.
Reference Topics: OpenTelemetry, distributed tracing, correlation identifiers, checkpoint persistence, span links, long-running agents, and cross-restart observability.