Skip to content

Commit fc7d83e

Browse files
authored
[Text Analytics] Log warn-text response hearder (Azure#34683)
1 parent 460d760 commit fc7d83e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44

55
### Features Added
66

7+
- Added support for logging the "warn-text" response header.
8+
79
### Breaking Changes
10+
811
> Note: The following breaking changes only apply when upgrading from the previous beta version (5.3.0-beta.1) and do not impact stable versions.
12+
913
- Renamed the `WellKnownFhirVersion` enum to `FhirVersion`.
1014
- Changed the type of the `AnalyzeHealthcareEntitiesResult.FhirBundle` property from `IReadOnlyDictionary<string, object>` to `BinaryData`.
1115
- Removed the `options` parameter from the following methods for consistency: `TextAnalyticsClient.DynamicClassify` and `TextAnalyticsClient.DynamicClassifyAsync`.
@@ -19,6 +23,7 @@
1923
## 5.3.0-beta.1 (2022-12-01)
2024

2125
### Features Added
26+
2227
- Added support for dynamic classification.
2328
- Added the following methods: `TextAnalyticsClient.DynamicClassify` and `TextAnalyticsClient.DynamicClassifyAsync`.
2429
- Added the following methods: `TextAnalyticsClient.DynamicClassifyBatch` and `TextAnalyticsClient.DynamicClassifyBatchAsync`.
@@ -63,6 +68,7 @@
6368
- Added the `ScriptKind` enum.
6469

6570
### Other Changes
71+
6672
The client now defaults to targeting service API version `2022-10-01-preview`.
6773

6874
## 5.2.0 (2022-09-08)

sdk/textanalytics/Azure.AI.TextAnalytics/src/ClientOptionsExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public static void ConfigureLogging(this ClientOptions clientOptions)
1616
loggedHeaderNames.Add("apim-request-id");
1717
loggedHeaderNames.Add("Strict-Transport-Security");
1818
loggedHeaderNames.Add("x-content-type-options");
19+
loggedHeaderNames.Add("warn-text");
1920

2021
clientOptions.Diagnostics.LoggedQueryParameters.Add("jobId");
2122
clientOptions.Diagnostics.LoggedQueryParameters.Add("$top");

0 commit comments

Comments
 (0)