You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define distinct ClientOptions in azure_core (#2737)
* Define distinct ClientOptions in azure_core
This sets us up to have Azure-specific client options like UserAgentOptions nee TelemetryOptions. Also allows ability to disable sending the User-Agent like in the Go SDK.
Fixes#1753
* Use deconstruction to efficiently split up ClientOptions
* Fix lint
Copy file name to clipboardExpand all lines: sdk/core/azure_core/CHANGELOG.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,18 +4,24 @@
4
4
5
5
### Features Added
6
6
7
-
- Added `get_async_runtime()` and `set_async_runtime()` to allow customers to replace
8
-
the asynchronous runtime used by the Azure SDK.
7
+
- Added `get_async_runtime()` and `set_async_runtime()` to allow customers to replace the asynchronous runtime used by the Azure SDK.
8
+
- Added `UserAgentOptions::enabled` to allow disabling sending the `User-Agent` header.
9
9
10
10
### Breaking Changes
11
11
12
+
-`azure_core::http::Pipeline::new` now takes an `azure_core::http::ClientOptions` which is defined in `azure_core`, but convertible to `typespec_client_core::http::ClientOptions`.
12
13
- Moved `process::Executor` to `azure_identity`.
14
+
- Removed `Pipeline::replace_policy`.
13
15
- Renamed `azure_core::date` to `azure_core::time` and added `azure_core::time::Duration` as the standard "duration" type for the SDK.
16
+
- Renamed `TelemetryOptions` to `UserAgentOptions`.
17
+
- Renamed `TelemetryPolicy` to `UserAgentPolicy`.
14
18
15
19
### Bugs Fixed
16
20
17
21
### Other Changes
18
22
23
+
- The `CustomHeadersPolicy` is executed after the retry policy in the `Pipeline`.
0 commit comments