Class ApplicationInsights
java.lang.Object
com.microsoft.applicationinsights.attach.ApplicationInsights
This class allows you to attach the Application Insights agent for Java at runtime.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis property allows configuring an Application Insights json file. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidattach()Attach the Application Insights agent for Java to the current JVM.
-
Field Details
-
APPLICATIONINSIGHTS_RUNTIME_ATTACH_CONFIGURATION_FILE
This property allows configuring an Application Insights json file. It can be helpful to get an Application Insights json file by Spring profile.- See Also:
-
-
Method Details
-
attach
public static void attach()Attach the Application Insights agent for Java to the current JVM. The attachment must be requested at the beginning of the main method.- Throws:
ApplicationInsights.ConfigurationException- If the file given by the applicationinsights.runtime-attach.configuration.classpath.file property was not found
-