简体   繁体   中英

Can I implement codeless Application Insights for Java app services on Azure?

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

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

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

在此处输入图像描述

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.

在此处输入图像描述

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

I found after adding these three settings in the configuration, the application insights will also automatically collect traces from the program. Weird! 在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM