Hello,
I am following this 2 documents: https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-spring-boot#enabling-programmatically and https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-standalone-upgrade-from-2x.
So that more less this is my pom:
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>applicationinsights-web</artifactId>
<version>${microsoft.azure.version}</version>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>applicationinsights-runtime-attach</artifactId>
<version>${microsoft.azure.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>
I am also setting APPLICATIONINSIGHTS_ROLE_NAME and APPLICATIONINSIGHTS_CONNECTION_STRING via environment variables. I also removed the ApplicationInsightsAppender from log4j2.yaml.
In the logs I can see agent has successfully started: Application Insights Java Agent 3.4.4 started successfully.
Metrics are there, unfortunately my logs are gone (logs which I am logging in my application). Application Insights -> Logs section has only logs from AgentLogExporter.
What am I missing? Could someone support me?
Hello,
I am following this 2 documents: https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-spring-boot#enabling-programmatically and https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-standalone-upgrade-from-2x.
So that more less this is my pom:
I am also setting APPLICATIONINSIGHTS_ROLE_NAME and APPLICATIONINSIGHTS_CONNECTION_STRING via environment variables. I also removed the ApplicationInsightsAppender from log4j2.yaml.
In the logs I can see agent has successfully started: Application Insights Java Agent 3.4.4 started successfully.
Metrics are there, unfortunately my logs are gone (logs which I am logging in my application). Application Insights -> Logs section has only logs from AgentLogExporter.
What am I missing? Could someone support me?