@@ -33,7 +33,7 @@ import {
3333} from "./featureManagement/constants.js" ;
3434import { AzureKeyVaultKeyValueAdapter } from "./keyvault/AzureKeyVaultKeyValueAdapter.js" ;
3535import { RefreshTimer } from "./refresh/RefreshTimer.js" ;
36- import { getConfigurationSettingWithTrace , listConfigurationSettingsWithTrace , requestTracingEnabled } from "./requestTracing/utils.js" ;
36+ import { RequestTracingOptions , getConfigurationSettingWithTrace , listConfigurationSettingsWithTrace , requestTracingEnabled } from "./requestTracing/utils.js" ;
3737import { KeyFilter , LabelFilter , SettingSelector } from "./types.js" ;
3838import { ConfigurationClientManager } from "./ConfigurationClientManager.js" ;
3939import { ETAG_LOOKUP_HEADER } from "./EtagUrlPipelinePolicy.js" ;
@@ -110,7 +110,7 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
110110 this . #isCdnUsed = isCdnUsed ;
111111 this . #clientManager = clientManager ;
112112
113- // Enable request tracing if not opt-out
113+ // enable request tracing if not opt-out
114114 this . #requestTracingEnabled = requestTracingEnabled ( ) ;
115115
116116 if ( options ?. trimKeyPrefixes ) {
@@ -144,6 +144,7 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
144144 this . #kvRefreshTimer = new RefreshTimer ( this . #kvRefreshInterval) ;
145145 }
146146
147+ // if no selector is specified, always load key values using the default selector: key="*" and label="\0"
147148 this . #kvSelectorCollection. selectors = getValidKeyValueSelectors ( options ?. selectors ) ;
148149
149150 // feature flag options
@@ -182,13 +183,14 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
182183 return this . #featureFlagEnabled && ! ! this . #options?. featureFlagOptions ?. refresh ?. enabled ;
183184 }
184185
185- get #requestTraceOptions( ) {
186+ get #requestTraceOptions( ) : RequestTracingOptions {
186187 return {
187- requestTracingEnabled : this . #requestTracingEnabled,
188+ enabled : this . #requestTracingEnabled,
189+ appConfigOptions : this . #options,
188190 initialLoadCompleted : this . #isInitialLoadCompleted,
189- isCdnUsed : this . #isCdnUsed ,
191+ replicaCount : this . #clientManager . getReplicaCount ( ) ,
190192 isFailoverRequest : this . #isFailoverRequest,
191- appConfigOptions : this . #options
193+ isCdnUsed : this . #isCdnUsed
192194 } ;
193195 }
194196
0 commit comments