Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I deployed a Spring Boot application to container apps and now I want to integrate it with application insights. I followed: https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-enable?tabs=java and did everything they ask:
APPLICATIONINSIGHTS_CONNECTION_STRING as environment variable - I checked it and it correctly holds the desired valueWhen I run my application locally everything works just fine - logs appear in application insights. The problem is when it is run in container apps. There are no logs indicating an error from Java agent.
FROM amazoncorretto:25-jdk
WORKDIR /app
COPY build/libs/mms-app.jar mms.jar
COPY build/application-insights/applicationinsights-agent.jar applicationinsights-agent.jar
EXPOSE 8080
ENTRYPOINT ["java", "-javaagent:applicationinsights-agent.jar", "-jar", "mms.jar"]
I would really appreciate your help!
An Azure service that provides a general-purpose, serverless container platform.