Skip to content

Commit 7b8fbcb

Browse files
authored
Merge pull request #209273 from trask/remove-more-2x-links
Replace more 2.x links with 3.x links
2 parents 29d991c + e8ed807 commit 7b8fbcb

9 files changed

+16
-97
lines changed

articles/azure-monitor/app/auto-collect-dependencies.md

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,9 @@ Below is the currently supported list of dependency calls that are automatically
3434
3535

3636
## Java
37-
| App servers | Versions |
38-
|-------------|----------|
39-
| [Tomcat](https://tomcat.apache.org/) | 7, 8 |
40-
| [JBoss EAP](https://developers.redhat.com/products/eap/download/) | 6, 7 |
41-
| [Jetty](https://www.eclipse.org/jetty/) | 9 |
42-
| <b>App frameworks </b> | |
43-
| [Spring](https://spring.io/) | 3.0 |
44-
| [Spring Boot](https://spring.io/projects/spring-boot) | 1.5.9+<sup>*</sup> |
45-
| Java Servlet | 3.1+ |
46-
| <b>Communication libraries</b> | |
47-
| [Apache Http Client](https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient) | 4.3+<sup>†</sup> |
48-
| <b>Storage clients</b> | |
49-
| [SQL Server]( https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc) | 1+<sup>†</sup> |
50-
| [PostgreSQL (Beta Support)](https://github.com/Microsoft/ApplicationInsights-Java/blob/master/CHANGELOG.md#version-240-beta) | |
51-
| [Oracle]( https://www.oracle.com/technetwork/database/application-development/jdbc/downloads/index.html) | 1+<sup>†</sup> |
52-
| [MySql]( https://mvnrepository.com/artifact/mysql/mysql-connector-java) | 1+<sup>†</sup> |
53-
| <b>Logging libraries</b> | |
54-
| [Logback](https://logback.qos.ch/) | 1+ |
55-
| [Log4j](https://logging.apache.org/log4j/) | 1.2+ |
56-
| <b>Metrics libraries</b> | |
57-
| JMX | 1.0+ |
5837

59-
> [!NOTE]
60-
> *Except reactive programing support.
61-
> <br>†Requires installation of [JVM Agent](java-2x-agent.md#install-the-application-insights-agent-for-java).
38+
See the list of Application Insights Java's
39+
[autocollected dependencies](java-in-process-agent.md#autocollected-dependencies).
6240

6341
## Node.js
6442

@@ -73,7 +51,7 @@ A list of the latest [currently-supported modules](https://github.com/microsoft/
7351
## Next steps
7452

7553
- Set up custom dependency tracking for [.NET](./asp-net-dependencies.md).
76-
- Set up custom dependency tracking for [Java](java-2x-agent.md).
54+
- Set up custom dependency tracking for [Java](java-in-process-agent.md#add-spans).
7755
- Set up custom dependency tracking for [OpenCensus Python](./opencensus-python-dependency.md).
7856
- [Write custom dependency telemetry](./api-custom-events-metrics.md#trackdependency)
7957
- See [data model](./data-model.md) for Application Insights types and data model.

articles/azure-monitor/app/correlation.md

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -304,19 +304,19 @@ The Application Insights .NET SDK uses `DiagnosticSource` and `Activity` to coll
304304
<a name="java-correlation"></a>
305305
## Telemetry correlation in Java
306306
307-
[Java agent](./java-in-process-agent.md) supports automatic correlation of telemetry. It automatically populates `operation_id` for all telemetry (like traces, exceptions, and custom events) issued within the scope of a request. It also propagates the correlation headers (described earlier) for service-to-service calls via HTTP, if the [Java SDK agent](java-2x-agent.md) is configured.
307+
[Application Insights Java](./java-in-process-agent.md) supports automatic correlation of telemetry.
308+
It automatically populates `operation_id` for all telemetry (like traces, exceptions, and custom events) issued within the scope of a request. It also propagates the correlation headers (described earlier) for service-to-service calls via HTTP, RPC, and messaging. See the list of Application Insights Java's
309+
[autocollected dependencies which support distributed trace propagation](java-in-process-agent.md#autocollected-dependencies).
308310
309311
> [!NOTE]
310-
> Application Insights Java agent auto-collects requests and dependencies for JMS, Kafka, Netty/Webflux, and more. For Java SDK only calls made via Apache HttpClient are supported for the correlation feature. Automatic context propagation across messaging technologies (like Kafka, RabbitMQ, and Azure Service Bus) isn't supported in the SDK.
311-
312-
> [!NOTE]
313-
> To collect custom telemetry you need to instrument the application with Java 2.6 SDK.
312+
> See [custom telemetry](./java-in-process-agent.md#custom-telemetry) if the auto-instrumentation does not cover all
313+
> of your needs.
314314
315315
### Role names
316316
317317
You might want to customize the way component names are displayed in the [Application Map](../../azure-monitor/app/app-map.md). To do so, you can manually set the `cloud_RoleName` by taking one of the following actions:
318318
319-
- For Application Insights Java agent 3.0, set the cloud role name as follows:
319+
- For Application Insights Java, set the cloud role name as follows:
320320
321321
```json
322322
{
@@ -325,27 +325,9 @@ You might want to customize the way component names are displayed in the [Applic
325325
}
326326
}
327327
```
328-
You can also set the cloud role name using the environment variable `APPLICATIONINSIGHTS_ROLE_NAME`.
329-
330-
- With Application Insights Java SDK 2.5.0 and later, you can specify the `cloud_RoleName`
331-
by adding `<RoleName>` to your ApplicationInsights.xml file:
332-
333-
:::image type="content" source="media/migrate-from-instrumentation-keys-to-connection-strings/migrate-from-instrumentation-keys-to-connection-strings.png" alt-text="Screenshot displaying Application Insights overview and connection string." lightbox="media/migrate-from-instrumentation-keys-to-connection-strings/migrate-from-instrumentation-keys-to-connection-strings.png":::
334-
335-
```xml
336-
<?xml version="1.0" encoding="utf-8"?>
337-
<ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings" schemaVersion="2014-05-30">
338-
<ConnectionString>InstrumentationKey=00000000-0000-0000-0000-000000000000</ConnectionString>
339-
<RoleName>** Your role name **</RoleName>
340-
...
341-
</ApplicationInsights>
342-
```
343-
344-
- If you use Spring Boot with the Application Insights Spring Boot Starter, you just need to set your custom name for the application in the application.properties file:
345-
346-
`spring.application.name=<name-of-app>`
347328
348-
The Spring Boot Starter automatically assigns `cloudRoleName` to the value you enter for the `spring.application.name` property.
329+
You can also set the cloud role name using via environment variable or system property,
330+
see [configuring cloud role name](./java-standalone-config.md#cloud-role-name) for details.
349331
350332
## Next steps
351333

articles/azure-monitor/app/data-model-dependency-telemetry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Indication of successful or unsuccessful call.
5353
## Next steps
5454

5555
- Set up dependency tracking for [.NET](./asp-net-dependencies.md).
56-
- Set up dependency tracking for [Java](java-2x-agent.md).
56+
- Set up dependency tracking for [Java](./java-in-process-agent.md).
5757
- [Write custom dependency telemetry](./api-custom-events-metrics.md#trackdependency)
5858
- See [data model](data-model.md) for Application Insights types and data model.
5959
- Check out [platforms](./platforms.md) supported by Application Insights.

articles/azure-monitor/app/data-model-trace-telemetry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Trace severity level. Value can be `Verbose`, `Information`, `Warning`, `Error`,
2626
## Next steps
2727

2828
- [Explore .NET trace logs in Application Insights](./asp-net-trace-logs.md).
29-
- [Explore Java trace logs in Application Insights](java-2x-trace-logs.md).
29+
- [Explore Java trace logs in Application Insights](./java-in-process-agent.md#autocollected-logs).
3030
- See [data model](data-model.md) for Application Insights types and data model.
3131
- [Write custom trace telemetry](./api-custom-events-metrics.md#tracktrace)
3232
- Check out [platforms](./platforms.md) supported by Application Insights.

articles/azure-monitor/app/data-retention-privacy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ There are three sources of data:
4040

4141
* Each SDK has many [modules](./configuration-with-applicationinsights-config.md), which use different techniques to collect different types of telemetry.
4242
* If you install the SDK in development, you can use its API to send your own telemetry, in addition to the standard modules. This custom telemetry can include any data you want to send.
43-
* In some web servers, there are also agents that run alongside the app and send telemetry about CPU, memory, and network occupancy. For example, Azure VMs, Docker hosts, and [Java EE servers](java-2x-agent.md) can have such agents.
43+
* In some web servers, there are also agents that run alongside the app and send telemetry about CPU, memory, and network occupancy. For example, Azure VMs, Docker hosts, and [Java application servers](./java-in-process-agent.md) can have such agents.
4444
* [Availability tests](./monitor-web-app-availability.md) are processes run by Microsoft that send requests to your web app at regular intervals. The results are sent to the Application Insights service.
4545

4646
### What kinds of data are collected?

articles/azure-monitor/app/diagnostic-search.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ The first time you do this, you are asked to configure a link to your Azure DevO
125125

126126
In addition to the out-of-the-box telemetry sent by Application Insights SDK, you can:
127127

128-
* Capture log traces from your favorite logging framework in [.NET](./asp-net-trace-logs.md) or [Java](java-2x-trace-logs.md). This means you can search through your log traces and correlate them with page views, exceptions, and other events.
128+
* Capture log traces from your favorite logging framework in [.NET](./asp-net-trace-logs.md) or [Java](./java-in-process-agent.md#autocollected-logs). This means you can search through your log traces and correlate them with page views, exceptions, and other events.
129129
* [Write code](./api-custom-events-metrics.md) to send custom events, page views, and exceptions.
130130

131131
[Learn how to send logs and custom telemetry to Application Insights](./asp-net-trace-logs.md).

articles/azure-monitor/app/platforms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ ms.reviewer: mmcc
4747
## Logging frameworks
4848
* [ILogger](./ilogger.md)
4949
* [Log4Net, NLog, or System.Diagnostics.Trace](./asp-net-trace-logs.md)
50-
* [Java, Log4J, or Logback](java-2x-trace-logs.md)
50+
* [Log4J, Logback, or java.util.logging](./java-in-process-agent.md#autocollected-logs)
5151
* [LogStash plugin](https://github.com/Azure/azure-diagnostics-tools/tree/master/Logstash/logstash-output-applicationinsights)
5252
* [Azure Monitor](/archive/blogs/msoms/application-insights-connector-in-oms)
5353

articles/azure-monitor/app/sampling.md

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -314,38 +314,6 @@ By default no sampling is enabled in the Java auto-instrumentation and SDK. Curr
314314
* To configure sampling overrides that override the default sampling rate and apply different sampling rates to selected requests and dependencies, use the [sampling override guide](./java-standalone-sampling-overrides.md#getting-started).
315315
* To configure fixed-rate sampling that applies to all of your telemetry, use the [fixed rate sampling guide](./java-standalone-config.md#sampling).
316316

317-
#### Configuring Java 2.x SDK
318-
319-
1. Download and configure your web application with the latest [Application Insights Java SDK](./java-2x-get-started.md).
320-
321-
2. **Enable the fixed-rate sampling module** by adding the following snippet to `ApplicationInsights.xml` file:
322-
323-
```xml
324-
<TelemetryProcessors>
325-
<BuiltInProcessors>
326-
<Processor type="FixedRateSamplingTelemetryProcessor">
327-
<!-- Set a percentage close to 100/N where N is an integer. -->
328-
<!-- E.g. 50 (=100/2), 33.33 (=100/3), 25 (=100/4), 20, 1 (=100/100), 0.1 (=100/1000) -->
329-
<Add name="SamplingPercentage" value="50" />
330-
</Processor>
331-
</BuiltInProcessors>
332-
</TelemetryProcessors>
333-
```
334-
335-
3. You can include or exclude specific types of telemetry from sampling using the following tags inside the `Processor` tag's `FixedRateSamplingTelemetryProcessor`:
336-
337-
```xml
338-
<ExcludedTypes>
339-
<ExcludedType>Request</ExcludedType>
340-
</ExcludedTypes>
341-
342-
<IncludedTypes>
343-
<IncludedType>Exception</IncludedType>
344-
</IncludedTypes>
345-
```
346-
347-
The telemetry types that can be included or excluded from sampling are: `Dependency`, `Event`, `Exception`, `PageView`, `Request`, and `Trace`.
348-
349317
> [!NOTE]
350318
> For the sampling percentage, choose a percentage that is close to 100/N where N is an integer. Currently sampling doesn't support other values.
351319

articles/azure-monitor/app/sdk-connection-string.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -217,15 +217,6 @@ You can set the connection string in the `applicationinsights.json` configuratio
217217

218218
For more information, [connection string configuration](./java-standalone-config.md#connection-string).
219219

220-
For Application Insights Java 2.x, you can set the connection string in the `ApplicationInsights.xml` configuration file:
221-
222-
```xml
223-
<?xml version="1.0" encoding="utf-8"?>
224-
<ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
225-
<ConnectionString>InstrumentationKey=00000000-0000-0000-0000-000000000000</ConnectionString>
226-
</ApplicationInsights>
227-
```
228-
229220
# [JavaScript](#tab/js)
230221

231222
Important: JavaScript doesn't support the use of Environment Variables.

0 commit comments

Comments
 (0)