Repository navigation
feat(telemetry): add server-side product telemetry - #914
Draft
dagardner-nv wants to merge 14 commits into
Draft
dagardner-nv wants to merge 14 commits into
dagardner-nv wants to merge 14 commits into
Conversation
Signed-off-by: David Gardner <dagardner@nvidia.com>
…uct telemetry Signed-off-by: David Gardner <dagardner@nvidia.com>
…ENABLED' env variable Signed-off-by: David Gardner <dagardner@nvidia.com>
Add dependency for humantime to the crates/libsy crate Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
…rable endpoints TODO: * Determine destination for product_telemetry.rs * Documentation Signed-off-by: David Gardner <dagardner@nvidia.com>
…y.rs Signed-off-by: David Gardner <dagardner@nvidia.com>
… spans with outcome metadata Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
…oduct-telemetry Signed-off-by: David Gardner <dagardner@nvidia.com>
…an that are needed Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
…oduct-telemetry Signed-off-by: David Gardner <dagardner@nvidia.com>
This branch has not been deployed
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.
What
Add server-side product telemetry for routing outcomes. A tracing layer reads outcome metadata and sends events through a bounded background queue, or writes them to logs. Delivery is best effort, with configurable endpoints, timeouts, redirect limits, and a flush on shutdown.
Expand routing outcome metadata with observed candidate models, routing status, duration, and bounded error categories. Disable product telemetry in CI.
Why
Collect routing outcome data without waiting for telemetry delivery in the routing request path.
Closes SWITCH-1577
Notes for reviewers
crates/switchyard-server/src/product_telemetry.rs, then review the outcome metadata and tracing changes inlibsy.