onnxruntime
aba5fb14 - Add OrtEpApi::GetTelemetryEventsEnabled for plugin EP telemetry consent

Commit
46 minutes ago
Add OrtEpApi::GetTelemetryEventsEnabled for plugin EP telemetry consent Plugin EP libraries are loaded separately from ONNX Runtime and cannot see the host's telemetry settings, so they kept emitting after the application called OrtApi::DisableTelemetryEvents. Add a process-wide, per-event consent query to the end of OrtEpApi (since 1.33), with a C++ wrapper. The query reports the host's consent decision for its own non-essential telemetry, independent of trace-session or uploader state: false for builds without telemetry, for process-wide suppression (ORT unit-test processes; with 1DS also ORT_DISABLE_TELEMETRY and CI), and while the application has disabled telemetry. The TraceLogging provider tracks the application opt-in separately from its ETW-callback-driven enabled_ flag so a trace session cannot restore consent. Host event emission is unchanged. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Author
Aditya Rastogi
Parents
Loading