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

Re-enabling Application Insights does not turn on Dynamic Tracing

Open purijatin opened this issue 3 years ago • 1 comments

Investigative information

It is easy to replicate the bug. Have been able to replicate it several times

  • Timestamp: 22nd Feb 2022
  • Function App name: CodeRuntimePrac2
  • Function name(s) (as appropriate):
  • Invocation ID:
  • Region: centralus

Azure function deployed against Java 8 Code Runtime

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.

Steps:

  1. Enable dynamic tracing by adding the above flag. Goto App Insights and confirm if Application map is showing the graphs image

  2. Now, In your azure-function portal, goto Settings -> Application Insights and disable App Insights

  3. This restarts the function app. Wait for about a minute for the app to come up.

  4. In your azure-function portal, goto Settings -> Application Insights and enable App Insights again

Now visit App Insights page and recheck Application map. It does not show any new map components.

image

Expected behavior

Dynamic tracing should work if re-enabled

Actual behavior

It doesn't work

Known workarounds

I am not aware. I had to delete the function app and redeploy.

Related information

Provide any related information

  • Programming language used : Java
  • Links to source: Generic. Easy for anyone to replicate

purijatin avatar Feb 22 '22 06:02 purijatin

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

kaibocai avatar Sep 21 '22 18:09 kaibocai

@purijatin thanks for reporting this issue. We have public review 2 of distributed tracing released now. Please try if this issue is resolved. I cannot reproduce this issue from myside. 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