vcpkg/ports/azure-core-tracing-opentelemetry-cpp/portfile.cmake

37 lines
1.3 KiB
CMake
Raw Normal View History

# NOTE: All changes made to this file will get overwritten by the next port release.
# Please contribute your changes to https://github.com/Azure/azure-sdk-for-cpp.
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Azure/azure-sdk-for-cpp
REF "azure-core-tracing-opentelemetry_${VERSION}"
[azure-core-*] Update azure-core-cpp to 1.8.0 and azure-core-tracing-opentelemetry-cpp to 1.0.0-beta.4 (#29427) * [azure-core-cpp] Update to 1.8.0 ## 1.8.0 (2023-02-02) ### Features Added - Added support for parsing space character in place of 'T' in RFC3339 DateTimes. - Added support for HTTP proxy servers, both unauthenticated and with basic authentication. - Added universal support for several TLS options: - Added the ability to set the expected TLS root certificate for TLS connection (useful if a proxy server uses a TLS certificate that is not chained to a known root). - Added the ability to enable TLS certificate revocation list checks (off by default). - For libcurl only: Allow TLS connection to succeed if CRL retrieval fails. - *NOTE*: This change only applies if libcurl is built using the OpenSSL crypto backend. It does NOT apply if libcurl uses the schannel (Windows default) or SecureTransport (macOS/iOS default). ### Breaking Changes - Changed the name of several distributed tracing HTTP span attributes: - `requestId` is renamed to `az.client_request_id` - `serviceRequestId` is renamed to `az.service_request_id` - Bearer token authentication will not work for endpoint URL protocol schemes other than `"https"`. This ensures token security and is consistent with the Azure SDKs for other languages. - Removed `noexcept` specification from `Azure::DateTime::clock::now()`. - Updated retry policy timeouts to conform to Azure guidelines. - The default delay between retries is changed from 4 seconds to 800ms. - The maximum retry delay is changed from 2 minutes to 60 seconds (one minute). If the original behavior is desired, customers can adjust these timeouts by changing the `RetryDelay` and `MaxRetryDelay` fields in the `RetryOptions` structure. ### Bugs Fixed - Fixed bug in WinHTTP client which caused the `IgnoreUnknownCertificateAuthority` and `EnableCertificateRevocationListCheck` fields to be ignored if they were passed in from `TransportOptions`. - [[#4206]](https://github.com/Azure/azure-sdk-for-cpp/issues/4206) Fixed connectivity issues in libcurl HTTP transport which can occur if a TCP connection is dropped prematurely. (A community contribution, courtesy of _[ahojnnes](https://github.com/ahojnnes)_) ### Other Changes - Update distributed tracing attributes to align with current Azure Distributed Tracing Conventions attributes and names. - Added the ability to consume version 1.1.1n of OpenSSL. - Added support for Identity token caching, and for configuring token refresh offset in `BearerTokenAuthenticationPolicy`. - Improved cancellation support for WinHTTP transport. ### Acknowledgments Thank you to our developer community members who helped to make Azure Core better with their contributions to this release: - Johannes Schonberger _([GitHub](https://github.com/ahojnnes))_ * [azure-core-tracing-opentelemetry-cpp] Update to 1.0.0-beta.4 ## 1.0.0-beta.4 (2023-02-02) ### Features Added - Aligned OpenTelemetry tracing infrastructure with OpenTelemetry 1.17.0 conventions for use with Azure Monitor. ### Other Changes - Suppress several warnings from opentelemetry-cpp package.
2023-02-04 04:34:00 +08:00
SHA512 645c616fe54024f30a6e4b9c2626bfeaf906086be7bbeccc4a1155178670fb70d9818938db2f9fa8e3b9593ca45e0b10042dcd67fde04d2542f6f72a74884697
HEAD_REF main
PATCHES
useragent.patch
set_version.patch
)
if(EXISTS "${SOURCE_PATH}/sdk/core/azure-core-tracing-opentelemetry")
file(REMOVE_RECURSE "${SOURCE_PATH}/sdk/core/_")
file(REMOVE_RECURSE "${SOURCE_PATH}/sdk/_")
file(REMOVE_RECURSE "${SOURCE_PATH}/_")
file(RENAME "${SOURCE_PATH}/sdk/core/azure-core-tracing-opentelemetry" "${SOURCE_PATH}/sdk/core/_")
file(RENAME "${SOURCE_PATH}/sdk/core" "${SOURCE_PATH}/sdk/_")
file(RENAME "${SOURCE_PATH}/sdk" "${SOURCE_PATH}/_")
endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}/_/_/_"
OPTIONS
-DWARNINGS_AS_ERRORS=OFF
-DBUILD_TESTING=OFF
)
vcpkg_cmake_install()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_cmake_config_fixup()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_copy_pdbs()