Manual Instrumentation of Opentelemetry Javaagent in a Java Azure Function App causing Exception in thread "BatchLogRecordProcessor_WorkerThread-1" java.lang.NoSuchMethodError #11286
-
Hi There, I have instrumented a Java Azure Function Application with OpenTelemetry Java Agent Manually and when I run the Application in the local it is working as expected when the application is deployed, I am seeing the below error Exception in thread "BatchLogRecordProcessor_WorkerThread-1" java.lang.NoSuchMethodError: 'io.opentelemetry.javaagent.shaded.io.opentelemetry.extension.incubator.logs.AnyValue io.opentelemetry.sdk.logs.internal.AnyValueBody.asAnyValue()' I was thinking this was happening because of the SDK logging so I tried to disable the SDK by adding otel.sdk.disabled in the environmental variable when I do this the error is not coming but the agent also stops running. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
what is the version of the agent that you are using? |
Beta Was this translation helpful? Give feedback.
hi @omsaichetanbe! do you happen to have Application Insights enabled? if so, can you try disabling that?
https://learn.microsoft.com/en-us/azure/azure-monitor/app/monitor-functions#enable-distributed-tracing-for-java-function-apps