[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.
This commit is contained in:
Azure SDK Bot 2023-02-03 12:34:00 -08:00 committed by GitHub
parent 6abc931a7d
commit 37c9f412ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 22 additions and 28 deletions

View File

@ -1,14 +0,0 @@
diff --git a/sdk/core/azure-core/CMakeLists.txt b/sdk/core/azure-core/CMakeLists.txt
index c536948..c94441b 100644
--- a/sdk/core/azure-core/CMakeLists.txt
+++ b/sdk/core/azure-core/CMakeLists.txt
@@ -170,6 +170,9 @@ endif()
if(BUILD_TRANSPORT_CURL)
target_link_libraries(azure-core PUBLIC CURL::libcurl)
+ if(WIN32)
+ target_link_libraries(azure-core PRIVATE Ws2_32)
+ endif()
endif()
if(BUILD_TRANSPORT_WINHTTP)
target_link_libraries(azure-core PRIVATE winhttp)

View File

@ -1,10 +1,8 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Azure/azure-sdk-for-cpp
REF azure-core_1.7.2
SHA512 f24d02bf34f8be665e08a9a2799498f78daf6103a0ac5c10d79dc6b7b4461dac8ea2f91088e11bc90d0c74b59a59dc1e6361ad053718fb6da6a0691a9ac314a6
PATCHES
add-ws232.patch # https://github.com/Azure/azure-sdk-for-cpp/pull/4127
REF azure-core_1.8.0
SHA512 13d49b79dbc9e5c2fd8ce019e76b2ba92258174f7b12945eae67c7451548ada4afc059023b5092c3de7ce77bc4bb0954a5c483b8451aeefde4a3133401ace632
)
vcpkg_check_features(

View File

@ -1,7 +1,6 @@
{
"name": "azure-core-cpp",
"version-semver": "1.7.2",
"port-version": 2,
"version-semver": "1.8.0",
"description": [
"Microsoft Azure Core SDK for C++",
"This library provides shared primitives, abstractions, and helpers for modern Azure SDK client libraries written in the C++."
@ -70,7 +69,8 @@
{
"name": "azure-core-cpp",
"default-features": false
}
},
"wil"
]
}
}

View File

@ -1,8 +1,8 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Azure/azure-sdk-for-cpp
REF azure-core-tracing-opentelemetry_1.0.0-beta.3
SHA512 184c275cdbea0384b7f5e26258828101f7cf5b6e376305e396201c7f43676f04583d8095f42d79e417a479eab0f2042b0603cfac381ab044049fa3a92c53df5d
REF azure-core-tracing-opentelemetry_1.0.0-beta.4
SHA512 645c616fe54024f30a6e4b9c2626bfeaf906086be7bbeccc4a1155178670fb70d9818938db2f9fa8e3b9593ca45e0b10042dcd67fde04d2542f6f72a74884697
)
vcpkg_cmake_configure(

View File

@ -1,6 +1,6 @@
{
"name": "azure-core-tracing-opentelemetry-cpp",
"version-semver": "1.0.0-beta.3",
"version-semver": "1.0.0-beta.4",
"description": [
"Microsoft Azure Core Tracing OpenTelemetry SDK for C++",
"This library provides support for modern Azure SDK client libraries written in C++ to leverage OpenTelemetry APIs."
@ -12,7 +12,7 @@
{
"name": "azure-core-cpp",
"default-features": false,
"version>=": "1.7.0-beta.1"
"version>=": "1.8.0"
},
{
"name": "opentelemetry-cpp",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "a18e2b1efaf5843b0eb5fe27a88c4306d5572970",
"version-semver": "1.8.0",
"port-version": 0
},
{
"git-tree": "3e84299750d32b17b16b8d795a66937851564d6a",
"version-semver": "1.7.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "a17fe14abb083b59b9ef5d25157a6cd85acb3ee9",
"version-semver": "1.0.0-beta.4",
"port-version": 0
},
{
"git-tree": "c6c807cb48e2dcdd3ed49e058822402cf1c71d79",
"version-semver": "1.0.0-beta.3",

View File

@ -365,11 +365,11 @@
"port-version": 0
},
"azure-core-cpp": {
"baseline": "1.7.2",
"port-version": 2
"baseline": "1.8.0",
"port-version": 0
},
"azure-core-tracing-opentelemetry-cpp": {
"baseline": "1.0.0-beta.3",
"baseline": "1.0.0-beta.4",
"port-version": 0
},
"azure-identity-cpp": {