File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -52,11 +52,11 @@ export const KEY_VAULT_CONFIGURED_TAG = "UsesKeyVault";
5252export const KEY_VAULT_REFRESH_CONFIGURED_TAG = "RefreshesKeyVault" ;
5353export const FAILOVER_REQUEST_TAG = "Failover" ;
5454export const SNAPSHOT_REFERENCE_TAG = "SnapshotRef" ;
55+ export const AI_SDK_TAG = "UsesAISdk" ;
5556
5657// Compact feature tags
5758export const FEATURES_KEY = "Features" ;
5859export const LOAD_BALANCE_CONFIGURED_TAG = "LB" ;
59- export const AZURE_AI_SDK_TAG = "AzureAI" ;
6060
6161// Feature management package
6262export const FM_PACKAGE_NAME = "@microsoft/feature-management" ;
Original file line number Diff line number Diff 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
4949export 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
You can’t perform that action at this time.
0 commit comments