mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-30 03:37:44 +00:00
Fix inbox telemetry (#5265)
* ifdef to check if redist or not * Fix redist telemetry Co-authored-by: Ryan Lai <ryalai96@gamil.com>
This commit is contained in:
parent
b49ff6151e
commit
71b52ad5de
2 changed files with 9 additions and 2 deletions
|
|
@ -135,3 +135,7 @@ if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
|
|||
target_link_libraries(onnxruntime_common rt)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (onnxruntime_WINML_NAMESPACE_OVERRIDE STREQUAL "Windows")
|
||||
target_compile_definitions(onnxruntime_common PRIVATE "BUILD_INBOX=1")
|
||||
endif()
|
||||
|
|
@ -102,7 +102,10 @@ void WindowsTelemetry::LogProcessInfo() const {
|
|||
// did we already log the process info? we only need to log it once
|
||||
if (process_info_logged.exchange(true))
|
||||
return;
|
||||
|
||||
bool isRedist = true;
|
||||
#if BUILD_INBOX
|
||||
isRedist = false;
|
||||
#endif
|
||||
TraceLoggingWrite(telemetry_provider_handle,
|
||||
"ProcessInfo",
|
||||
TraceLoggingBool(true, "UTCReplace_AppSessionGuid"),
|
||||
|
|
@ -111,7 +114,7 @@ void WindowsTelemetry::LogProcessInfo() const {
|
|||
// Telemetry info
|
||||
TraceLoggingUInt8(0, "schemaVersion"),
|
||||
TraceLoggingString(ORT_VERSION, "runtimeVersion"),
|
||||
TraceLoggingBool(true, "isRedist"));
|
||||
TraceLoggingBool(isRedist, "isRedist"));
|
||||
|
||||
process_info_logged = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue