Skip to content

Commit 0754cb5

Browse files
committed
update ai tracing tag
1 parent d6609a2 commit 0754cb5

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/appConfigurationImpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
220220
fmVersion: this.#fmVersion,
221221
aiConfigurationTracing: this.#aiConfigurationTracing,
222222
useSnapshotReference: this.#useSnapshotReference,
223-
useAzureAI: this.#useAzureAI
223+
usesAISdk: this.#useAzureAI
224224
};
225225
}
226226

src/requestTracing/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ export const KEY_VAULT_CONFIGURED_TAG = "UsesKeyVault";
5252
export const KEY_VAULT_REFRESH_CONFIGURED_TAG = "RefreshesKeyVault";
5353
export const FAILOVER_REQUEST_TAG = "Failover";
5454
export const SNAPSHOT_REFERENCE_TAG = "SnapshotRef";
55+
export const AI_SDK_TAG = "UsesAISdk";
5556

5657
// Compact feature tags
5758
export const FEATURES_KEY = "Features";
5859
export const LOAD_BALANCE_CONFIGURED_TAG = "LB";
59-
export const AZURE_AI_SDK_TAG = "AzureAI";
6060

6161
// Feature management package
6262
export const FM_PACKAGE_NAME = "@microsoft/feature-management";

src/requestTracing/utils.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import {
4343
AI_CONFIGURATION_TAG,
4444
AI_CHAT_COMPLETION_CONFIGURATION_TAG,
4545
SNAPSHOT_REFERENCE_TAG,
46-
AZURE_AI_SDK_TAG
46+
AI_SDK_TAG
4747
} from "./constants.js";
4848

4949
export interface RequestTracingOptions {
@@ -56,7 +56,7 @@ export interface RequestTracingOptions {
5656
fmVersion: string | undefined;
5757
aiConfigurationTracing: AIConfigurationTracingOptions | undefined;
5858
useSnapshotReference: boolean;
59-
useAzureAI: boolean;
59+
usesAISdk: boolean;
6060
}
6161

6262
// Utils
@@ -154,6 +154,9 @@ function createCorrelationContextHeader(requestTracingOptions: RequestTracingOpt
154154
if (requestTracingOptions.isFailoverRequest) {
155155
tags.push(FAILOVER_REQUEST_TAG);
156156
}
157+
if (requestTracingOptions.usesAISdk) {
158+
tags.push(AI_SDK_TAG);
159+
}
157160
if (requestTracingOptions.replicaCount > 0) {
158161
keyValues.set(REPLICA_COUNT_KEY, requestTracingOptions.replicaCount.toString());
159162
}
@@ -202,9 +205,6 @@ function createFeaturesString(requestTracingOptions: RequestTracingOptions): str
202205
if (requestTracingOptions.useSnapshotReference) {
203206
tags.push(SNAPSHOT_REFERENCE_TAG);
204207
}
205-
if (requestTracingOptions.useAzureAI) {
206-
tags.push(AZURE_AI_SDK_TAG);
207-
}
208208
return tags.join(DELIMITER);
209209
}
210210

0 commit comments

Comments
 (0)