Task · CAOT-0023

OTLP trace sink and the span tree

Description

Codex spans have real boundaries from item_completed and a server-issued trace id. Claude Code spans are bounded by record write times and are approximate. Both are worth having and the difference has to be visible on the span, not just in a doc.

Acceptance Criteria

Definition of Done

Implementation Plan

Wave 1 lane 10: implement the documented OTLP span tree from the frozen model with mandatory duration and trace provenance; root integrates and runs the final gate.

Final Summary

The sampled OTLP trace tree, native/derived trace identity, provenance and call linking are implemented; Tempo trace c0a80f7a338e9552c8972036e043b955 contains 33,467 spans.

References

View the source file on GitHub