You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Get started with Application Insights in a Java web project
28
30
29
31
In this section, you use the Application Insights SDK to instrument request, track dependencies, and collect performance counters, diagnose performance issues and exceptions, and write code to track what users do with your app.
@@ -44,8 +46,6 @@ Application Insights is an extensible analytics service for web developers that
44
46
45
47
:::image type="content" source="./media/deprecated-java-2x/instrumentation-key-001.png" alt-text="In the new resource overview, click Properties and copy the Instrumentation Key." lightbox="./media/deprecated-java-2x/instrumentation-key-001.png":::
### Add the Application Insights SDK for Java to your project
50
50
51
51
*Choose your project type.*
@@ -133,7 +133,7 @@ Optionally, the configuration file can be in any location accessible to your app
133
133
* The HTTP Request component is optional. It automatically sends telemetry about requests and response times to the portal.
134
134
* Event correlation is an addition to the HTTP request component. It assigns an identifier to each request received by the server. It then adds this identifier as a property to every item of telemetry as the property 'Operation.Id'. It allows you to correlate the telemetry associated with each request by setting a filter in [diagnostic search][diagnostic].
135
135
136
-
### Alternative ways to set the instrumentation key
136
+
####Alternative ways to set the instrumentation key
137
137
Application Insights SDK looks for the key in this order:
138
138
139
139
1. System property: -DAPPINSIGHTS_INSTRUMENTATIONKEY=your_ikey
@@ -309,8 +309,6 @@ If you're using Logback or Log4J (v1.2 or v2.0) for tracing, you can have your t
309
309
> [!TIP]
310
310
> You only need to set your Application Insights Instrumentation Key once for your application. If you are using a framework like Java Spring, you may have already registered the key elsewhere in your app's configuration.
By default, the Application Insights Java agent automatically captures logging performed at `WARN` level and above.
@@ -865,8 +863,6 @@ Take a copy of the instrumentation key, which identifies the resource.
865
863
866
864
:::image type="content" source="./media/deprecated-java-2x/instrumentation-key-001.png" alt-text="Browse all, open your resource, and then in the Essentials drop-down, select, and copy the Instrumentation Key" lightbox="./media/deprecated-java-2x/instrumentation-key-001.png":::
0 commit comments