0
votes

My goal is to to enable application insights for our java 8 app services on Windows. I'd like to implement codeless application insights if possible, but I'm uncertain whether this is currently supported for Java app services.

When I visit any documentation page regarding code-based application insights for Java, I am recommended to use the new Java 3.0 agent for Application Insights, which supports codeless monitoring.

However, the table on this page indicates that this is not yet supported for Java app services. But further down the same page it says: "The portal integration for monitoring of Java applications on App Service on Windows is currently unavailable, however, you can add Application Insights Java 3.0 standalone agent to your application without any code changes before deploying the apps to App Service. Application Insights Java 3.0 agent is generally available."

It's not clear to me what is meant with "portal integration" here. I have tried to implement the 3.0 agent using this documentation, and so far it works from my local machine, but not (yet) when deployed to the app service. So my question is whether I'm doing something wrong or that it isn't supported currently.

Thanks

2
Can you share more details how do you deploy java ? I am using Spring boot and App Insights in kubernetes no problem at allVova Bilyachat

2 Answers

3
votes

Answer is posted here https://github.com/microsoft/ApplicationInsights-Java/issues/1615

All you need to do:

  1. Enable application insights for the app service and specify an app insights instance
  2. Add this application setting; XDT_MicrosoftApplicationInsights_Java -> 1
0
votes

I think what mentioned in the doc about codeless application insights is like this:

enter image description here

After deploying my springboot app to azure web app (windows, java 8, standard S1), we can enable application insights by turn the button to 'enable' in the screenshot above. And even I didn't add app insights sdk in my code, I can still get trace and other information.

enter image description here

=============================UPDATE================================

I found after adding these three settings in the configuration, the application insights will also automatically collect traces from the program. Weird! enter image description here