@@ -25,7 +25,7 @@ import {
2525 CLIENT_FILTERS_KEY_NAME
2626} from "./featureManagement/constants.js" ;
2727import { FM_PACKAGE_NAME , AI_MIME_PROFILE , AI_CHAT_COMPLETION_MIME_PROFILE } from "./requestTracing/constants.js" ;
28- import { parseContentType , isJsonContentType } from "./common/contentType.js" ;
28+ import { parseContentType , isJsonContentType , isFeatureFlagContentType , isSecretReferenceContentType } from "./common/contentType.js" ;
2929import { AzureKeyVaultKeyValueAdapter } from "./keyvault/AzureKeyVaultKeyValueAdapter.js" ;
3030import { RefreshTimer } from "./refresh/RefreshTimer.js" ;
3131import { RequestTracingOptions , getConfigurationSettingWithTrace , listConfigurationSettingsWithTrace , requestTracingEnabled } from "./requestTracing/utils.js" ;
@@ -659,8 +659,10 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
659659 #setAIConfigurationTracing( setting : ConfigurationSetting < string > ) : void {
660660 if ( this . #requestTracingEnabled && this . #aiConfigurationTracing !== undefined ) {
661661 const contentType = parseContentType ( setting . contentType ) ;
662- // content type: application/json; profile="https://azconfig.io/mime-profiles/ai"
663- if ( isJsonContentType ( contentType ) ) {
662+ // content type: "application/json; profile=\"https://azconfig.io/mime-profiles/ai\"""
663+ if ( isJsonContentType ( contentType ) &&
664+ ! isFeatureFlagContentType ( contentType ) &&
665+ ! isSecretReferenceContentType ( contentType ) ) {
664666 const profile = contentType ?. parameters [ "profile" ] ;
665667 if ( profile === undefined ) {
666668 return ;
0 commit comments