onnxruntime
0a82f2ca - [Telemetry] Reduce 1DS event volume (#32425)

Commit
5 days ago
[Telemetry] Reduce 1DS event volume (#32425) ### Description Reduces high-volume 1DS telemetry while preserving correlated diagnostics: - applies deterministic 1% client-side sampling to model/session, high-volume, process, error, RuntimePerf, and EpDeviceUsage events in the POSIX 1DS provider - preserves the existing EpDeviceUsage initial-inventory, RuntimePerf-heartbeat, and final-flush cadence, while sampling those events consistently by session - silences SystemMetrics - compiles cpp_client_telemetry internal logging out of embedded source builds, disables runtime tracing for external-package builds, and suppresses Android Logcat - consolidates POSIX model-load, session-creation, and EP-registration lifecycle pairs into completion events with local durations; Windows TraceLogging retains its start/end markers - initializes the RuntimePerf heartbeat at session creation so it does not fire immediately - ensures ordinary model-load, initialization, and EP-registration failures reach completion telemetry - compiles status-capture and timing scaffolding only when telemetry is enabled, keeping telemetry-disabled minimal Android builds within the binary-size budget - adds bounded container, VM, cloud-guest, WSL, and Android-emulator classification to POSIX ProcessInfo without collecting host or workload identifiers ### Dependency integration This PR upgrades cpp_client_telemetry from 3.10.173.1 to 3.10.240.1. It updates the pinned source archive, FetchContent configuration, vcpkg overlay port and manifest, and the ORT compatibility patch. The repository's existing vcpkg baseline remains unchanged. ### Validation - `lintrunner` - Android arm64-v8a API 29 MinSizeRel minimal shared-library build with telemetry disabled, LTO, ML ops disabled, exceptions disabled, and the no-op reduced-operator configuration: 1,508,737 bytes with local NDK 29 (76,415 bytes below the 1,585,152-byte CI limit) - Android arm64-v8a API 29 MinSizeRel minimal shared-library build with telemetry enabled - Windows Release `onnxruntime_common` and `onnxruntime_session` builds with telemetry enabled (Visual Studio 2026) - Windows `onnxruntime_test_all` source compilation - Linux/WSL Release `onnxruntime_common` build with telemetry enabled and cpp_client_telemetry 3.10.240.1 --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 39dd1605-0e50-4029-9ed7-44fdb27545d8 Copilot-Session: 2f0ab518-b6d4-47f8-928f-dc214284a697 Copilot-Session: e45ad1b4-b40c-4089-a769-6596585b3f68 Copilot-Session: ad75e858-67ce-4a32-83b9-625dfe4f4c65 Copilot-Session: 49c171ca-76ba-4688-afaf-df59129cda4f Copilot-Session: a9e28009-b56c-4d6b-b8ae-de5603e7ddfb Copilot-Session: ec7eac87-a69e-47f8-8c2d-76de7cd883e4
Author
Parents
Loading