Skip to content
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
9486762
Default native telemetry to 1DS
bmehta001 Sep 2, 2026
1d2c4ef
Reduce telemetry volume while preserving device counts
bmehta001 Sep 3, 2026
5613fd8
Capture census for one-time devices
bmehta001 Sep 3, 2026
a8802df
Protect census comparison from macro parsing
bmehta001 Sep 3, 2026
f260c1a
Harden device census rollover and completion telemetry
bmehta001 Sep 4, 2026
a0e2092
Preserve device census retry intent
bmehta001 Sep 4, 2026
fab143d
Preserve Windows telemetry behavior
bmehta001 Sep 4, 2026
e334035
Preserve Windows DeviceId storage fallback
bmehta001 Sep 8, 2026
6988e71
Merge device census into Windows 1DS telemetry
bmehta001 Sep 8, 2026
0d2079d
Reduce device census telemetry overhead
bmehta001 Sep 8, 2026
db88bce
Merge remote telemetry updates
bmehta001 Sep 8, 2026
4ce7057
Table device census for ephemeral workloads
bmehta001 Sep 8, 2026
5539d11
Fix cross-platform telemetry build wiring
bmehta001 Sep 10, 2026
05bfafa
Fix telemetry platform configuration
bmehta001 Sep 10, 2026
e675976
Simplify telemetry backend selection
bmehta001 Sep 12, 2026
e7072e0
Disable Windows 1DS network detection
bmehta001 Sep 18, 2026
9bd7e57
Merge main and harden Windows telemetry integration
bmehta001 Sep 21, 2026
1499472
Keep telemetry backend layouts consistent
bmehta001 Sep 21, 2026
f349791
Keep static telemetry packages self-contained
bmehta001 Sep 22, 2026
46eb1b0
Harden Windows telemetry edge cases
bmehta001 Sep 22, 2026
2b518d8
Preserve Windows adapter telemetry on 1DS
bmehta001 Sep 22, 2026
fcdf00a
Use Windows-specific 1DS ingestion key
bmehta001 Sep 22, 2026
376bf72
Keep provider options out of 1DS uploads
bmehta001 Sep 22, 2026
3c9bcff
Honor telemetry opt-out for local ETW events
bmehta001 Sep 22, 2026
e6fa6d1
Preserve legacy Windows telemetry selection
bmehta001 Sep 23, 2026
011738c
Enable an opt-in Windows 1DS ingestion smoke test
bmehta001 Sep 24, 2026
ea752a0
Revert unnecessary changes
bmehta001 Sep 29, 2026
e4e1991
Keep Linux telemetry on mbedTLS and restore provider-option events
bmehta001 Sep 29, 2026
05f05c1
Merge branch 'main' into bhamehta/windows-1ds-telemetry-default
bmehta001 Sep 29, 2026
917ad89
Apply batched suggestions from code review
bmehta001 Sep 29, 2026
07e724c
Separate 1DS platform code to avoid Windows guards in POSIX
bmehta001 Sep 29, 2026
cdcb67e
Merge origin/main to keep Windows 1DS telemetry current
bmehta001 Oct 1, 2026
d890175
Fix wording
bmehta001 Oct 1, 2026
e7dff51
Improve wording
bmehta001 Oct 1, 2026
55c46cc
Emit the persistent device ID in ETW ProcessInfo
bmehta001 Oct 1, 2026
5127aef
Revert "Emit the persistent device ID in ETW ProcessInfo"
bmehta001 Oct 2, 2026
71c0598
Suppress ETW process info in CI
Copilot Oct 2, 2026
73b8b12
Skip ETW registration in CI
Copilot Oct 2, 2026
d81fc02
Revert "Emit the persistent device ID in ETW ProcessInfo"
bmehta001 Oct 2, 2026
0a6bde0
Merge PR updates to preserve remote CI telemetry fixes
bmehta001 Oct 2, 2026
c77e5d8
Merge origin/main to validate telemetry against current runtime
bmehta001 Oct 2, 2026
48326f1
Honor disabled 1DS telemetry without changing ETW behavior
bmehta001 Oct 2, 2026
d5bb983
Exclude 1DS from Windows Debug CI until SDK unload leaks are fixed
bmehta001 Oct 2, 2026
ceb50cf
Disable Windows network detection to avoid shutdown allocations
bmehta001 Oct 5, 2026
47f1ee5
Bound telemetry values to prevent oversized processing and payloads
bmehta001 Oct 5, 2026
c822dac
Scrub QNN telemetry paths and include Windows SDK linkage
bmehta001 Oct 5, 2026
1e4d986
Clarify that telemetry APIs suppress all events
bmehta001 Oct 5, 2026
4ebfd9b
Scrub diagnostic ETW paths to protect QNN trace privacy
bmehta001 Oct 5, 2026
ef73219
Preserve local diagnostics and repair default 1DS builds
bmehta001 Oct 5, 2026
9eca86a
Address comments
bmehta001 Oct 5, 2026
b317205
Align telemetry intake limits to preserve privacy on rejected input
bmehta001 Oct 6, 2026
6f7124e
Consolidate telemetry helpers to prevent platform drift
bmehta001 Oct 6, 2026
cac0204
Keep telemetry internals private and enforce path budgets
bmehta001 Oct 6, 2026
a280e76
Improve docs
bmehta001 Oct 6, 2026
6c6cd20
Resolve static telemetry dependencies and omit custom metadata
bmehta001 Oct 6, 2026
998173d
Use the fixed GitHub telemetry SDK to restore Windows Debug coverage
bmehta001 Oct 7, 2026
6d07d4d
Preserve telemetry backend and EP-summary invariants
bmehta001 Oct 7, 2026
08b2729
Preserve Windows telemetry leak protection and SQLite memory limits
bmehta001 Oct 7, 2026
15dc6e5
Preserve map truncation evidence for telemetry path redaction
bmehta001 Oct 7, 2026
a35ecc3
Preserve ONNX element types when loading node-test tensors
bmehta001 Oct 7, 2026
61972ec
Merge main to preserve the measured Android baseline and telemetry gu…
bmehta001 Oct 7, 2026
dff8fa2
Allow telemetry package tests to use installed CMake generators
bmehta001 Oct 7, 2026
1f6e9e7
Restore INT8 cache detection to unblock GPU CI
bmehta001 Oct 7, 2026
9df3652
Align telemetry settings and isolation with GenAI builds
bmehta001 Oct 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ setlocal
set PATH=C:\Program Files\Git\usr\bin;%PATH%

rem Requires a Python install to be available in your PATH
python "%~dp0\tools\ci_build\build.py" --build_dir "%~dp0\build\Windows" --no_telemetry %*
python "%~dp0\tools\ci_build\build.py" --build_dir "%~dp0\build\Windows" %*
38 changes: 21 additions & 17 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,23 @@ option(onnxruntime_USE_WINML "Build with WinML support" OFF)
option(onnxruntime_USE_ACL "Build with ACL support" OFF)
option(onnxruntime_ENABLE_INSTRUMENT "Enable Instrument with Event Tracing for Windows (ETW)" OFF)
option(onnxruntime_USE_TELEMETRY "Build with Telemetry" OFF)
# Optional 1DS ingestion token for non-Windows telemetry. Leave empty to compile in the encoded
# On Windows, 1DS is the default telemetry backend. This option preserves the Microsoft-internal
# TraceLogging backend for forks that provide TraceLoggingConfigPrivate.h.
option(onnxruntime_USE_WINDOWS_TELEMETRY "Use Windows TraceLogging instead of 1DS telemetry" OFF)
if(onnxruntime_USE_WINDOWS_TELEMETRY AND NOT WIN32)
message(FATAL_ERROR "onnxruntime_USE_WINDOWS_TELEMETRY is only supported on Windows")
endif()
if(onnxruntime_USE_WINDOWS_TELEMETRY)
set(onnxruntime_USE_TELEMETRY ON CACHE BOOL "Build with Telemetry" FORCE)
endif()
set(onnxruntime_USE_1DS_TELEMETRY
"${onnxruntime_USE_TELEMETRY}")
if(WIN32 AND onnxruntime_USE_WINDOWS_TELEMETRY)
set(onnxruntime_USE_1DS_TELEMETRY OFF)
endif()
# Optional 1DS ingestion token. Leave empty to compile in the encoded
# in-repo default from core/platform/posix/telemetry.cc; callers can override it at configure time.
set(ONNXRUNTIME_TELEMETRY_TENANT_TOKEN "" CACHE STRING "Override the compiled-in telemetry ingestion token (non-Windows)")
set(ONNXRUNTIME_TELEMETRY_TENANT_TOKEN "" CACHE STRING "Override the compiled-in 1DS telemetry ingestion token")
cmake_dependent_option(onnxruntime_USE_MIMALLOC "Override new/delete and arena allocator with mimalloc" OFF "WIN32;NOT onnxruntime_USE_CUDA;NOT onnxruntime_USE_OPENVINO" OFF)
option(onnxruntime_USE_CANN "Build with CANN support" OFF)
option(onnxruntime_USE_XNNPACK "Build with XNNPACK support. Provides an alternative math library on ARM, WebAssembly and x86." OFF)
Expand Down Expand Up @@ -1977,27 +1991,17 @@ else()
add_library(safeint_interface IMPORTED INTERFACE)\n\
target_include_directories(safeint_interface INTERFACE ${safeint_SOURCE_DIR})\n\
")
if(onnxruntime_USE_TELEMETRY AND NOT WIN32 AND onnxruntime_TELEMETRY_USES_EXTERNAL_PACKAGE)
if(onnxruntime_USE_1DS_TELEMETRY AND onnxruntime_TELEMETRY_USES_EXTERNAL_PACKAGE)
string(APPEND PROJECT_CONFIG_CONTENT
"find_dependency(MSTelemetry CONFIG)\n\
")
endif()
if(onnxruntime_USE_TELEMETRY AND NOT WIN32 AND NOT APPLE
AND NOT CMAKE_SYSTEM_NAME STREQUAL "Android"
if(onnxruntime_USE_1DS_TELEMETRY
AND NOT onnxruntime_TELEMETRY_USES_EXTERNAL_PACKAGE
AND NOT onnxruntime_BUILD_SHARED_LIB)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
# The embedded curl archive uses the platform Threads target for its resolver.
string(APPEND PROJECT_CONFIG_CONTENT
"find_dependency(Threads)\n\
")
else()
# Preserve the legacy dependency graph for any explicitly enabled non-Linux Unix target.
string(APPEND PROJECT_CONFIG_CONTENT
"find_dependency(CURL)\n\
find_dependency(Threads)\n\
")
endif()
string(APPEND PROJECT_CONFIG_CONTENT
"find_dependency(MSTelemetry CONFIG)\n\
Comment thread
bmehta001 marked this conversation as resolved.
Outdated
")
endif()
endif()

Expand Down
29 changes: 19 additions & 10 deletions cmake/external/onnxruntime_external_deps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ include(external/helper_functions.cmake)
file(STRINGS deps.txt ONNXRUNTIME_DEPS_LIST)
foreach(ONNXRUNTIME_DEP IN LISTS ONNXRUNTIME_DEPS_LIST)
# Lines start with "#" are comments, so skip them.
# cpp_client_telemetry is only needed for telemetry on non-Windows platforms, so skip if telemetry is not enabled or it's Windows platform.
if((NOT ONNXRUNTIME_DEP MATCHES "^#") AND ((NOT ONNXRUNTIME_DEP MATCHES "^cpp_client_telemetry") OR (onnxruntime_USE_TELEMETRY AND NOT WIN32)))
# cpp_client_telemetry is needed only when the 1DS backend is selected.
if((NOT ONNXRUNTIME_DEP MATCHES "^#") AND
((NOT ONNXRUNTIME_DEP MATCHES "^cpp_client_telemetry") OR
onnxruntime_USE_1DS_TELEMETRY))
# The first column is name
list(POP_FRONT ONNXRUNTIME_DEP ONNXRUNTIME_DEP_NAME)
# The second column is URL
Expand Down Expand Up @@ -997,8 +999,8 @@ if(onnxruntime_USE_SNPE)
list(APPEND onnxruntime_EXTERNAL_LIBRARIES ${SNPE_NN_LIBS})
endif()

# 1DS SDK (cpp_client_telemetry) for cross-platform telemetry on non-Windows platforms
if(onnxruntime_USE_TELEMETRY AND NOT WIN32)
# 1DS SDK (cpp_client_telemetry) is the default cross-platform telemetry backend.
if(onnxruntime_USE_1DS_TELEMETRY)
if(CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
message(FATAL_ERROR "onnxruntime_USE_TELEMETRY is not supported for WebAssembly/Emscripten builds: "
Comment thread
bmehta001 marked this conversation as resolved.
Outdated
"the 1DS telemetry SDK is excluded on Emscripten. Disable telemetry for WASM builds.")
Expand Down Expand Up @@ -1073,6 +1075,11 @@ if(onnxruntime_USE_TELEMETRY AND NOT WIN32)
EXCLUDE_FROM_ALL
)
onnxruntime_fetchcontent_makeavailable(cpp_client_telemetry)
if(WIN32 AND TARGET mat)
# CMake's Visual Studio generator otherwise forwards mat's BUILD_INTERFACE system include
# expression verbatim to MASM. ORT adds dependency includes to C/C++ targets separately.
set_property(TARGET mat PROPERTY INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "")
endif()
target_compile_definitions(mat PRIVATE MATSDK_DISABLE_LOGGING)
if(ANDROID)
target_compile_definitions(mat PRIVATE ANDROID_SUPPRESS_LOGCAT)
Expand Down Expand Up @@ -1144,12 +1151,14 @@ if(onnxruntime_USE_TELEMETRY AND NOT WIN32)
# ORT enables -ffast-math globally, which conflicts with
# std::numeric_limits<double>::infinity() in the 1DS SDK's bundled nlohmann/json.hpp.
# Also suppress warnings in the 1DS SDK code that ORT treats as errors.
target_compile_options(mat PRIVATE
-fno-finite-math-only
-Wno-unused-const-variable
$<$<CXX_COMPILER_ID:GNU>:-Wno-reorder>
$<$<CXX_COMPILER_ID:Clang,AppleClang>:-Wno-reorder-ctor>
)
if(NOT MSVC)
target_compile_options(mat PRIVATE
-fno-finite-math-only
-Wno-unused-const-variable
$<$<CXX_COMPILER_ID:GNU>:-Wno-reorder>
$<$<CXX_COMPILER_ID:Clang,AppleClang>:-Wno-reorder-ctor>
)
endif()
# Vendored 1DS dependencies emit unavoidable narrowing warnings under Apple's warning policy.
# Keep the warning enabled for ORT sources while suppressing it only for third-party targets.
if(APPLE)
Expand Down
35 changes: 27 additions & 8 deletions cmake/onnxruntime_common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ if(WIN32)
"${ONNXRUNTIME_ROOT}/core/platform/windows/logging/*.h"
"${ONNXRUNTIME_ROOT}/core/platform/windows/logging/*.cc"
)
if(onnxruntime_USE_1DS_TELEMETRY)
list(APPEND onnxruntime_common_src_patterns
"${ONNXRUNTIME_ROOT}/core/platform/windows/device_id.cc"
"${ONNXRUNTIME_ROOT}/core/platform/posix/device_id.h"
"${ONNXRUNTIME_ROOT}/core/platform/posix/telemetry.h"
"${ONNXRUNTIME_ROOT}/core/platform/posix/telemetry.cc"
"${ONNXRUNTIME_ROOT}/core/platform/posix/telemetry_context.h"
"${ONNXRUNTIME_ROOT}/core/platform/posix/telemetry_no_throw.h"
"${ONNXRUNTIME_ROOT}/core/platform/posix/telemetry_sampling.h"
)
endif()

else()
list(APPEND onnxruntime_common_src_patterns
Expand All @@ -57,8 +68,8 @@ else()
"${ONNXRUNTIME_ROOT}/core/platform/posix/stacktrace.cc"
)

# Telemetry for non-Windows platforms (enabled by USE_TELEMETRY)
if (onnxruntime_USE_TELEMETRY)
# 1DS telemetry sources for non-Windows platforms.
if(onnxruntime_USE_1DS_TELEMETRY)
list(APPEND onnxruntime_common_src_patterns
"${ONNXRUNTIME_ROOT}/core/platform/posix/device_id.h"
"${ONNXRUNTIME_ROOT}/core/platform/posix/device_id.cc"
Expand Down Expand Up @@ -162,6 +173,9 @@ if(WIN32)
list(APPEND onnxruntime_DELAYLOAD_FLAGS "/DELAYLOAD:shell32.dll")
endif()
endif()
if(onnxruntime_USE_1DS_TELEMETRY)
target_link_libraries(onnxruntime_common PRIVATE iphlpapi)
endif()
endif()

if(NOT WIN32 AND NOT APPLE AND NOT ANDROID AND CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
Expand All @@ -172,7 +186,8 @@ if(NOT WIN32 AND NOT APPLE AND NOT ANDROID AND CMAKE_SYSTEM_PROCESSOR MATCHES "x
endif()

if (onnxruntime_USE_TELEMETRY)
if(WIN32)
if(WIN32 AND onnxruntime_USE_WINDOWS_TELEMETRY)
target_compile_definitions(onnxruntime_common PUBLIC USE_WINDOWS_TELEMETRY)
set(ONNXRUNTIME_TELEMETRY_CONFIG_HEADER
"${ONNXRUNTIME_INCLUDE_DIR}/core/platform/windows/TraceLoggingConfigPrivate.h")
if(EXISTS "${ONNXRUNTIME_TELEMETRY_CONFIG_HEADER}")
Expand All @@ -181,7 +196,7 @@ if (onnxruntime_USE_TELEMETRY)
PROPERTIES COMPILE_FLAGS "/FI${ONNXRUNTIME_TELEMETRY_CONFIG_HEADER}")
endif()
else()
target_compile_definitions(onnxruntime_common PRIVATE USE_POSIX_TELEMETRY)
target_compile_definitions(onnxruntime_common PUBLIC USE_1DS_TELEMETRY)
# Optional tenant-token override written into a generated header in the build tree (kept off the
# compiler command line, so the token never appears in compile_commands.json or build logs). It may be
# supplied either as -DONNXRUNTIME_TELEMETRY_TENANT_TOKEN=... or via an
Expand Down Expand Up @@ -268,20 +283,24 @@ if(CPUINFO_SUPPORTED)
list(APPEND onnxruntime_EXTERNAL_LIBRARIES cpuinfo::cpuinfo)
endif()

# Link telemetry library (1DS SDK) for non-Windows platforms
if(onnxruntime_USE_TELEMETRY AND NOT WIN32)
# Link the default 1DS telemetry backend.
if(onnxruntime_USE_1DS_TELEMETRY)
if(onnxruntime_TELEMETRY_USES_EXTERNAL_PACKAGE AND TARGET MSTelemetry::mat)
# The vcpkg package target propagates its include
# directories and transitive dependencies (curl/sqlite3/zlib/nlohmann-json), so no
# manual include paths or system libraries are required here.
target_link_libraries(onnxruntime_common PRIVATE MSTelemetry::mat)
list(APPEND onnxruntime_EXTERNAL_LIBRARIES MSTelemetry::mat)
if(NOT WIN32)
list(APPEND onnxruntime_EXTERNAL_LIBRARIES MSTelemetry::mat)
endif()
elseif(TARGET mat)
# Link mat directly. In a shared build its resolved dependency set is absorbed into
# libonnxruntime; in a static build mat -- and the bundled static archives it links -- are shipped
# and exported below so a downstream find_package(onnxruntime) resolves them.
target_link_libraries(onnxruntime_common PRIVATE mat)
list(APPEND onnxruntime_EXTERNAL_LIBRARIES mat)
if(NOT WIN32)
list(APPEND onnxruntime_EXTERNAL_LIBRARIES mat)
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND TARGET libcurl_static)
# Prevent shared-library consumers from re-exporting the embedded transport symbols. This does
# not namespace static symbols; static ORT consumers must not co-link another curl/mbedTLS copy.
Expand Down
4 changes: 4 additions & 0 deletions cmake/onnxruntime_unittests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,10 @@ if(WIN32)
list(APPEND onnxruntime_test_framework_src_patterns
"${TEST_SRC_DIR}/platform/windows/*.cc"
"${TEST_SRC_DIR}/platform/windows/logging/*.cc" )
if(onnxruntime_USE_1DS_TELEMETRY)
list(APPEND onnxruntime_test_framework_src_patterns
"${TEST_SRC_DIR}/platform/windows_telemetry/*.cc" )
endif()
endif()

if(LINUX)
Expand Down
25 changes: 3 additions & 22 deletions cmake/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,31 +103,12 @@
"dependencies": []
},
"telemetry": {
"description": "Build with static 1DS telemetry support on non-Windows platforms",
"description": "Build with static 1DS telemetry support",
"dependencies": [
{
"name": "cpp-client-telemetry",
"platform": "!windows & !android & !emscripten & !uwp"
},
{
"name": "curl",
"default-features": false,
"features": [
"mbedtls"
],
"platform": "linux"
},
{
"name": "mbedtls",
"features": [
"pthreads"
],
"platform": "linux"
},
{
"name": "sqlite3",
"default-features": false,
"platform": "!windows & !android & !emscripten & !uwp"
"platform": "!android & !emscripten",
Comment thread
bmehta001 marked this conversation as resolved.
Outdated
"version>=": "3.10.240.1"
}
]
}
Expand Down
4 changes: 1 addition & 3 deletions onnxruntime/core/platform/posix/device_id.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ namespace onnxruntime {

namespace {

// ORT and OGA share this file and use the same flock-first protocol so corruption repair is
// serialized even when both libraries are loaded in one process.
constexpr char kDeviceIdLockFileName[] = "deviceid.lock";

enum class DeviceIdReadResult {
Expand Down Expand Up @@ -414,7 +412,7 @@ void DeviceId::InitializeInternal() {
return;
}

// Another ORT or OGA process may have repaired the shared file while this process waited.
// Another process may have repaired the shared file while this process waited.
const DeviceIdFileRead repaired = ReadDeviceIdFileNoFollow(directory.Get(), kFileName, kMaxFileSize);
if (repaired.result == DeviceIdReadResult::Read && IsValidGUID(repaired.content)) {
device_id_ = repaired.content;
Expand Down
4 changes: 3 additions & 1 deletion onnxruntime/core/platform/posix/device_id.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ enum class DeviceIdStatus {
/**
* Manages a persistent device identifier for telemetry purposes.
* The device ID is stored in a platform-appropriate location:
* - Windows: HKCU\SOFTWARE\Microsoft\DeveloperTools\.onnxruntime, deviceid value
* - macOS: ~/Library/Application Support/Microsoft/DeveloperTools/.onnxruntime/deviceid
* - Linux: $XDG_CACHE_HOME (or ~/.cache) /Microsoft/DeveloperTools/.onnxruntime/deviceid
*
Expand All @@ -38,7 +39,8 @@ class DeviceId {
std::string GetStatusString();

// Get the directory path for device ID / telemetry cache storage
// (macOS: ~/Library/Application Support/...; Linux: $XDG_CACHE_HOME or ~/.cache/...).
// (Windows: %LOCALAPPDATA%, %APPDATA%, or the user profile; macOS:
// ~/Library/Application Support/...; other POSIX: $XDG_CACHE_HOME or ~/.cache/...).
static std::string GetStorageDirectory();

// Same as GetStorageDirectory(), but also creates the directory tree (0700) if it does not exist.
Expand Down
4 changes: 2 additions & 2 deletions onnxruntime/core/platform/posix/env.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.

#include "core/platform/env.h"

#ifdef USE_POSIX_TELEMETRY
#ifdef USE_1DS_TELEMETRY
#include "core/platform/posix/telemetry.h"
#endif

Expand Down Expand Up @@ -725,7 +725,7 @@ class PosixEnv : public Env {
}

private:
#ifdef USE_POSIX_TELEMETRY
#ifdef USE_1DS_TELEMETRY
PosixTelemetry telemetry_provider_;
#else
Telemetry telemetry_provider_;
Expand Down
Loading
Loading