Cannot see any data running in Application Insight

2024-03-19T08:35:53.7466667+00:00

Hi , Harith here

I just cant pinpoint what went wrong for the implementation

I follow this doc https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-enable?tabs=java#frequently-asked-questions

To install the agent automatically in my maven project,

I used this code to add the dependency

<dependency> <groupId>com.microsoft.azure</groupId> <artifactId>applicationinsights-agent</artifactId> <version>3.5.1</version> </dependency>

After I rebuild and the applicationinsights-agent.3.5.1.jar is already installed in WEB-INF/lib file

Following up steps after that I've created applicationinsight.json for putting the connection string configuration and I put it in the same directory as the jar file.

Any missing steps I need to figure out?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,802 questions
{count} votes

Accepted answer
  1. AnuragSingh-MSFT 19,936 Reputation points
    2024-03-20T09:42:43.1966667+00:00

    @Syed muhammad harith al gadri syed abdul rahman, thank you for posting this question here.

    Have you configured the JVM to load applicationInsights-agent-*.jar file with -javaagent parameter. For more details, refer to the first section in the Modify you Application section here - Modify your Application

    You could also use the selfDiagnostics flag in the applicationInsight.json file to enable internal logging from the AppInsight agent itself locally. This would help understand if the agent even got loaded by the JVM (in which case a log file gets created and some entries are populated in it). In case the agent was loaded but data could not be sent to AppInsights workpace, this log file should contain additional information. For details, see Self-diagnostics.

    Hope this helps. Please let us know if you have any questions.

    0 comments No comments

0 additional answers

Sort by: Most helpful