observability(router): add tracing instrumentation to cascade router#1843
Merged
observability(router): add tracing instrumentation to cascade router#1843
Conversation
…1825) - Log provider selection at the start of each cascade attempt (provider name, attempt N of M, classifier mode, quality threshold) - Log judge scoring success with score, threshold, and pass/fail decision - Log best_seen updates in both cascade_chat and cascade_chat_stream - Log final exhaustion path in cascade_chat when all providers are tried - Log last-provider selection in cascade_chat_stream (streaming, no classification) - Align cascade_chat_stream quality verdict log fields with cascade_chat (add threshold and reason) - Align cascade_chat_stream escalation log fields with cascade_chat (add threshold and escalations_remaining)
241b45b to
f202205
Compare
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.
Closes #1825
Summary
best_seenupdates in bothcascade_chatandcascade_chat_streamcascade_chatwhen all providers are triedcascade_chat_stream(streaming, no classification)cascade_chat_streamquality verdict log fields withcascade_chat(addthresholdandreason)cascade_chat_streamescalation log fields withcascade_chat(addthresholdandescalations_remaining)Changes
Single file modified:
crates/zeph-llm/src/router/mod.rs— 56 lines added (tracing calls only, no logic changes).Test plan
cargo +nightly fmt --check— cleancargo clippy --workspace --features full -- -D warnings— 0 warningscargo nextest run --workspace --features full --lib --bins— 5821 passed, 0 failed