Log EP version on inference failure and in EpDeviceUsage event, Log ORT version - #28794
Merged
Conversation
added 3 commits
May 22, 2026 15:11
angelser
previously approved these changes
Jun 4, 2026
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enhances ONNX Runtime’s Windows ETW telemetry to aid diagnosing inference failures by emitting EP version information, adding EP version details to EP/device usage events, and expanding multiple telemetry events to include the ORT runtime version.
Changes:
- Add EP version collection in
InferenceSessiontelemetry state and include it in SessionCreation and EpDeviceUsage telemetry. - Add a new
LogRuntimeInferenceErrortelemetry event emitted on failedRun()calls, enriched with EP version/device type context. - Extend Windows telemetry schemas/events to log
runtimeVersion(ORT version) and bump schema versions where payloads changed.
Show a summary per file
| File | Description |
|---|---|
| onnxruntime/core/session/inference_session.h | Adds EP version fields to session telemetry state. |
| onnxruntime/core/session/inference_session.cc | Populates EP versions, logs them in SessionCreation/EpDeviceUsage, and emits RuntimeInferenceError on Run failures. |
| onnxruntime/core/platform/windows/telemetry.h | Extends WindowsTelemetry interface for EP versions + new inference error event. |
| onnxruntime/core/platform/windows/telemetry.cc | Implements new/updated ETW events, adds runtimeVersion, and bumps schema versions. |
| onnxruntime/core/platform/telemetry.h | Extends the Telemetry base interface for EP versions + new inference error event. |
| onnxruntime/core/platform/telemetry.cc | Adds stub implementations/unused-parameter handling for the new Telemetry APIs. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 6/6 changed files
- Comments generated: 2
adrastogi
reviewed
Jun 9, 2026
adrastogi
reviewed
Jun 9, 2026
adrastogi
reviewed
Jun 9, 2026
adrastogi
approved these changes
Jun 10, 2026
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.
Description
Adds new telemetry event for inference failure which logs ep versions and types along with runtime error.
Adds logging of ORT version in other telemetry events.
Adds logging of ep versions in SessionCreation telemetry
Motivation and Context
To better diagnose failures in inference