From 22c997d36a770ef697d5cff3b81d225fa9c50612 Mon Sep 17 00:00:00 2001 From: Ahson Khan Date: Tue, 29 Oct 2024 10:00:07 -0700 Subject: [PATCH] Use the package version for telemetry, rather than api version. (#6146) --- sdk/tables/azure-data-tables/CHANGELOG.md | 2 ++ .../azure-data-tables/src/tables_clients.cpp | 19 ++++++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/sdk/tables/azure-data-tables/CHANGELOG.md b/sdk/tables/azure-data-tables/CHANGELOG.md index fbc26570c..da392cb8e 100644 --- a/sdk/tables/azure-data-tables/CHANGELOG.md +++ b/sdk/tables/azure-data-tables/CHANGELOG.md @@ -8,6 +8,8 @@ ### Bugs Fixed +- Use the package version for telemetry, rather than api version. + ### Other Changes ## 1.0.0-beta.4 (2024-08-06) diff --git a/sdk/tables/azure-data-tables/src/tables_clients.cpp b/sdk/tables/azure-data-tables/src/tables_clients.cpp index 423d45243..5722108d0 100644 --- a/sdk/tables/azure-data-tables/src/tables_clients.cpp +++ b/sdk/tables/azure-data-tables/src/tables_clients.cpp @@ -3,6 +3,7 @@ #include "azure/data/tables/tables_clients.hpp" +#include "private/package_version.hpp" #include "private/policies/service_version_policy.hpp" #include "private/policies/shared_key_lite_policy.hpp" #include "private/policies/tenant_bearer_token_policy.hpp" @@ -29,7 +30,7 @@ TableServiceClient::TableServiceClient(const TableClientOptions& options) m_pipeline = std::make_shared( newOptions, _detail::TablesServicePackageName, - _detail::ApiVersion, + PackageVersion::ToString(), std::move(perRetryPolicies), std::move(perOperationPolicies)); } @@ -47,7 +48,7 @@ TableServiceClient::TableServiceClient( m_pipeline = std::make_shared( options, _detail::TablesServicePackageName, - _detail::ApiVersion, + PackageVersion::ToString(), std::move(perRetryPolicies), std::move(perOperationPolicies)); } @@ -83,7 +84,7 @@ TableServiceClient::TableServiceClient( m_pipeline = std::make_shared( newOptions, _detail::TablesServicePackageName, - _detail::ApiVersion, + PackageVersion::ToString(), std::move(perRetryPolicies), std::move(perOperationPolicies)); } @@ -103,7 +104,7 @@ TableServiceClient::TableServiceClient( m_pipeline = std::make_shared( options, _detail::TablesServicePackageName, - _detail::ApiVersion, + PackageVersion::ToString(), std::move(perRetryPolicies), std::move(perOperationPolicies)); @@ -119,7 +120,7 @@ TableServiceClient::TableServiceClient( m_pipeline = std::make_shared( newOptions, _detail::TablesServicePackageName, - _detail::ApiVersion, + PackageVersion::ToString(), std::move(perRetryPolicies2), std::move(perOperationPolicies2)); } @@ -336,7 +337,7 @@ TableClient::TableClient( m_pipeline = std::make_shared( options, _detail::TablesServicePackageName, - _detail::ApiVersion, + PackageVersion::ToString(), std::move(perRetryPolicies), std::move(perOperationPolicies)); } @@ -372,7 +373,7 @@ TableClient::TableClient( m_pipeline = std::make_shared( newOptions, _detail::TablesServicePackageName, - _detail::ApiVersion, + PackageVersion::ToString(), std::move(perRetryPolicies), std::move(perOperationPolicies)); } @@ -393,7 +394,7 @@ TableClient::TableClient( m_pipeline = std::make_shared( options, _detail::TablesServicePackageName, - _detail::ApiVersion, + PackageVersion::ToString(), std::move(perRetryPolicies), std::move(perOperationPolicies)); @@ -409,7 +410,7 @@ TableClient::TableClient( m_pipeline = std::make_shared( newOptions, _detail::TablesServicePackageName, - _detail::ApiVersion, + PackageVersion::ToString(), std::move(perRetryPolicies2), std::move(perOperationPolicies2)); }