update onnxruntime version string for telemetry (#3526)

* update onnxruntime version string for telemetry

* use ORT_VERSION

* deleted version.h
This commit is contained in:
Xiang Zhang 2020-04-17 10:46:58 -07:00 committed by GitHub
parent 209b41a67d
commit 43c3a5edba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 8 deletions

View file

@ -1,6 +0,0 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#define ONNXRUNTIME_VERSION_STRING "1.0"

View file

@ -2,7 +2,7 @@
// Licensed under the MIT License.
#include "core/platform/windows/telemetry.h"
#include "core/common/version.h"
#include "onnxruntime_config.h"
// ETW includes
// need space after Windows.h to prevent clang-format re-ordering breaking the build.
@ -105,7 +105,7 @@ void WindowsTelemetry::LogProcessInfo() const {
TraceLoggingKeyword(MICROSOFT_KEYWORD_MEASURES),
// Telemetry info
TraceLoggingUInt8(0, "schemaVersion"),
TraceLoggingString(ONNXRUNTIME_VERSION_STRING, "runtimeVersion"),
TraceLoggingString(ORT_VERSION, "runtimeVersion"),
TraceLoggingBool(true, "isRedist"));
process_info_logged = true;