microsoft / ApplicationInsights-Java

Application Insights for Java
http://aka.ms/application-insights
Other
295 stars 198 forks source link

HTTP trace collection stopped after upgrade to App Insights 3.5.4 for application based on Spring Boot 3.3.1 #3839

Open vap78 opened 1 month ago

vap78 commented 1 month ago

Expected behavior

HTTP traces should be collected and reported to application insights

Actual behavior

They are not. Only Service bus calls, logs and metrics are recorded

To Reproduce

We have a Spring Boot 3.3.1 / Java 21 application using Azure Application Insights integration. The library runs in agent mode as described here: https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-spring-boot

After the upgrade to version 3.5.4 of the agent, we no longer receive http access log entries into our App Insights instance. Logs and metrics keep coming. Everything was working fine with the previous version we used: 3.4.2. I see that there is a breaking change in regard to http trace collection in the release notes, but the link with the details is broken.

Additional configuration we have on this instance - following env variables are set:

System information

Please provide the following information:

Logs

I attach logs from a sample start of a test instance that received some http requests.

Screenshots

If applicable, add screenshots to help explain your problem. out.txt

heyams commented 1 month ago

@vap78 can you please provide us a self-diagnostics log at the TRACE level? We want to confirm if tomcat 7 and jakarta servlet are both present in your application, which might cause some conflict in OpenTelemetry upstream.

APPLICATIONINSIGHTS_SELF_DIAGNOSTICS_LEVEL=TRACE

vap78 commented 4 weeks ago

Hi

attaching logs as requested.

Best regards Vasil logs.zip

heyams commented 4 weeks ago

@vap78 trace log confirmed that both jakarta and tomcat7 are present. Upstream has a fix, release is coming out today or early next week. We'll integrate it in version 3.6.0, which is planned to be released next week or the week after next week if no blocker. Please watch for our new releases.

vap78 commented 4 weeks ago

Thank you very much for the quick reaction :)