Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Profiler is still failing in 3.7.2 #4200

@ripenedcat

Description

@ripenedcat

This is referencing to a previous issue #4170.

After upgrading to 3.7.2, I can see the issue becomes a bit different, but it is still failing. When triggered an Profile Now from Azure Portal, there is no Profiler traces collected to Azure Portal, but below error can be observed from self-diagnostics log.

025-04-29 15:30:49.942+10:00 DEBUG c.m.a.a.i.p.ProfilingInitializer - Error pulling service profiler settings
java.lang.IllegalArgumentException: No enum constant com.microsoft.applicationinsights.alerting.aiconfig.AlertingConfig.RequestFilterType.NAME-REGEX

2025-04-29 15:30:49.082+10:00 DEBUG c.a.m.o.a.i.q.QuickPulsePingSender - About to ping quickpulse with the endpoint prefix: https://australiaeast.livediagnostics.monitor.azure.com/
2025-04-29 15:30:49.942+10:00 DEBUG c.m.a.a.i.p.ProfilingInitializer - Error pulling service profiler settings
java.lang.IllegalArgumentException: No enum constant com.microsoft.applicationinsights.alerting.aiconfig.AlertingConfig.RequestFilterType.NAME-REGEX
        at java.base/java.lang.Enum.valueOf(Unknown Source)
        at com.microsoft.applicationinsights.alerting.aiconfig.AlertingConfig$RequestFilterType.valueOf(AlertingConfig.java:15)
        at com.microsoft.applicationinsights.alerting.aiconfig.AlertingConfig$RequestFilter.lambda$fromJson$0(AlertingConfig.java:61)
        at com.azure.json.JsonReader.readMapOrObject(JsonReader.java:554)
        at com.azure.json.JsonReader.readObject(JsonReader.java:458)
        at com.microsoft.applicationinsights.alerting.aiconfig.AlertingConfig$RequestFilter.fromJson(AlertingConfig.java:53)
        at com.microsoft.applicationinsights.alerting.aiconfig.AlertingConfig$RequestTrigger.lambda$fromJson$0(AlertingConfig.java:436)
        at com.azure.json.JsonReader.readMapOrObject(JsonReader.java:554)
        at com.azure.json.JsonReader.readObject(JsonReader.java:458)
        at com.microsoft.applicationinsights.alerting.aiconfig.AlertingConfig$RequestTrigger.fromJson(AlertingConfig.java:424)
        at com.azure.json.JsonReader.readArray(JsonReader.java:497)
        at com.microsoft.applicationinsights.agent.internal.profiler.config.ProfilerConfiguration.lambda$fromJson$0(ProfilerConfiguration.java:196)
        at com.azure.json.JsonReader.readMapOrObject(JsonReader.java:554)
        at com.azure.json.JsonReader.readObject(JsonReader.java:458)
        at com.microsoft.applicationinsights.agent.internal.profiler.config.ProfilerConfiguration.fromJson(ProfilerConfiguration.java:159)
        at com.microsoft.applicationinsights.agent.internal.profiler.service.ServiceProfilerClient.lambda$handle$2(ServiceProfilerClient.java:165)
        at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:125)
        at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:129)
        at reactor.core.publisher.MonoUsing$MonoUsingSubscriber.onNext(MonoUsing.java:231)
        at reactor.core.publisher.FluxHandle$HandleSubscriber.onNext(FluxHandle.java:126)
        at reactor.core.publisher.FluxMap$MapConditionalSubscriber.onNext(FluxMap.java:224)
        at reactor.core.publisher.FluxDoFinally$DoFinallySubscriber.onNext(FluxDoFinally.java:113)
        at reactor.core.publisher.FluxHandleFuseable$HandleFuseableSubscriber.onNext(FluxHandleFuseable.java:191)
        at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onNext(FluxContextWrite.java:107)
        at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1839)
        at reactor.core.publisher.MonoCollectList$MonoCollectListSubscriber.onComplete(MonoCollectList.java:129)
        at reactor.core.publisher.FluxPeek$PeekSubscriber.onComplete(FluxPeek.java:260)
        at reactor.core.publisher.FluxMap$MapSubscriber.onComplete(FluxMap.java:144)
        at reactor.netty.channel.FluxReceive.onInboundComplete(FluxReceive.java:415)
        at reactor.netty.channel.ChannelOperations.onInboundComplete(ChannelOperations.java:439)
        at reactor.netty.channel.ChannelOperations.terminate(ChannelOperations.java:493)
        at reactor.netty.http.client.HttpClientOperations.onInboundNext(HttpClientOperations.java:796)
        at reactor.netty.channel.ChannelOperationsHandler.channelRead(ChannelOperationsHandler.java:115)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:359)
        at com.azure.core.http.netty.implementation.AzureSdkHandler.channelRead(AzureSdkHandler.java:224)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
        at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:436)
        at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346)
        at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318)
        at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
        at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1519)
        at io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1377)
        at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1428)
        at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:530)
        at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:469)
        at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:359)
        at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1429)
        at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:918)
        at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:793)
        at io.netty.channel.epoll.AbstractEpollChannel$AbstractEpollUnsafe.handle(AbstractEpollChannel.java:471)
        at io.netty.channel.epoll.EpollIoHandler$DefaultEpollIoRegistration.handle(EpollIoHandler.java:307)
        at io.netty.channel.epoll.EpollIoHandler.processReady(EpollIoHandler.java:489)
        at io.netty.channel.epoll.EpollIoHandler.run(EpollIoHandler.java:444)
        at io.netty.channel.SingleThreadIoEventLoop.runIo(SingleThreadIoEventLoop.java:204)
        at io.netty.channel.SingleThreadIoEventLoop.run(SingleThreadIoEventLoop.java:175)
        at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:1073)
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.base/java.lang.Thread.run(Unknown Source)

No other telemetries affected. There is no profiler related configuration in applicationinsights.json as it is enabled by default.

Can we please look into this issue?

Thanks.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions