[OTEL] Improve local debugging flow with otel integration - #2882
Draft
George Ng (GeorgeNgMsft) wants to merge 1 commit into
Draft
[OTEL] Improve local debugging flow with otel integration#2882George Ng (GeorgeNgMsft) wants to merge 1 commit into
George Ng (GeorgeNgMsft) wants to merge 1 commit into
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.
Improves TypeAgent’s local OTEL output into a privacy-safe, end-to-end execution narrative, allowing developers and on-call engineers to follow a request from agent-server ingress through queueing, translation, LLM/reasoning work, action execution, and the final response.
Rationale
Structured events represent the stable facts needed to reconstruct execution and identify where a failure occurred. Debug logs remain appropriate for detailed actions, schemas, model errors, results, and other implementation data that would make the default JSONL noisy or expose payloads.
A model event appears only when a model is actually called; grammar, cache, construction, and user-selected translations instead expose their strategy on translation:completed . Server and queue events carry an explicit request ID because they occur outside the request root span, while downstream events inherit both request and trace correlation. Streaming spans remain active until iteration ends and distinguish success, provider failure, early termination, and cancellation.