azure-functions-java-worker icon indicating copy to clipboard operation
azure-functions-java-worker copied to clipboard

App Insights dynamic tracing does not work against Docker Images

Open purijatin opened this issue 3 years ago • 1 comments

Investigative information

This is easy to replicate.

Repro steps

Usually, to enable application insights 3, we need to add the following config ApplicationInsightsAgent_EXTENSION_VERSION=~3. And the dynamic tracing functionality automatically works.

But if the azure function is deployed using the docker image. Then the auto-tracing does not work. To make it work, I have to manually put the agent on the classpath.

Expected behavior

Either one of:

  1. Adding the flag ApplicationInsightsAgent_EXTENSION_VERSION should make it work for Docker images as well. (Maybe the agent can be part of the parent docker image).
  2. Or explicitly mention in that docs, that this functionality is only limited to code runtime and does not work against docker.

Actual behavior

Auto tracing does not work

Known workarounds

Handle it manually. As shown here: https://stackoverflow.com/questions/71085054/java-azure-application-insights-dynamic-tracing-not-working-with-docker-images/71085468

Related information

Provide any related information

  • Programming language used: Java

purijatin avatar Feb 22 '22 05:02 purijatin

Adding @trask and @MadhuraBharadwaj-MSFT just for awareness.

kaibocai avatar Sep 21 '22 19:09 kaibocai

@purijatin thanks for reporting this issue. We have public review 2 of distributed tracing released now. In public preview 2 this issue is resovled. Thanks.

kaibocai avatar Feb 27 '23 21:02 kaibocai

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

ghost avatar Mar 04 '23 19:03 ghost