[codex] Add OTel request observability#13
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds first-class request observability for Streams, including the
otel-tracesprofile, OTLP normalization/ingest support, explicit observability pairing metadata, and the/v1/observe/requestcorrelation API used by Studio.The implementation also extends the
evlogprofile with correlation/search metadata, adds request observability docs and spec updates, and hardens diagnostics around coverage, limits, policy enforcement, and event-derived OTel errors when raw events are excluded.Why
Studio needs a supported backend contract for correlating application events with traces without choosing counterpart streams heuristically or relying on ad hoc search behavior. The new profile-owned pairing descriptor and observe API make that contract explicit, searchable, bounded, and documented.
Impact
otel-tracesprofile support and OTLP request/span normalization./v1/observe/requestfor requestId, traceId, and spanId lookups with bounded result limits and coverage diagnostics.Validation
Validated locally on the latest branch state:
bun run check:result-policybun run typecheckbun testFinal full test run passed with 363 passing tests, 8 skipped, and 0 failures.