Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Enabling Application Insights from Mule Application Options.

Open
#2,984 16 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
azure, java

Research direction

Start with the linked Application Insights Java 3.x release information and the MuleSoft article, then verify the documented restrictions on -javaagent for CloudHub and Runtime Fabric. Done would be a confirmed supported configuration for starting the agent without JVM arguments, or clear documentation that this deployment model is unsupported.

Written by the indexing model from the issue text.

Description

Needs: Attention :wave:

Hi, Good evening, I am trying to enable AppInsights into a Mulesoft API to do POC. I came across the following article on implementing the AppInsights using log4j appender.

https://help.mulesoft.com/s/article/Add-Microsoft-Application-Insights-Log-Appender-In-Mule-4-Application

The above article works and it is sending log data to App Insight workspace but it is not send dependencies and other information to the workspace to create Application MAP etc. Also the above article says "This document applies to Application Insights Java 2.x which is no longer recommended (although not excluded from use) by Microsoft. Documentation for the latest version can be found at Application Insights Java 3.x, however, this new version requires the addition of a jar file that can be called using -javaagent. We don't support the use of -javaagent on Cloudhub or Runtime Fabric at this time."

Based on the Microsoft website (https://github.com/microsoft/ApplicationInsights-Java/releases/tag/3.4.0) there is no need of Log4j2 as it automatically captured if we use agent. How can we invoke/start the agent within API using configuration ( like spring bean and DI) not using java argument to pass the JAR file. Is this feature is available with current version or can we use applicationinsights-runtime-attach or any other wrapper to invoke it. Can anyone provide some guidance so that we can implement AppInsights in Mulesoft API application.

Thank you for your help.

Thanks
Ram

Dominant language
Java
Stars
327
Forks
222
Avg merge
22h 34m
Merged PRs (30d)
14

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/ApplicationInsights-Java

All issues in microsoft/ApplicationInsights-Java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.