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
@@ -409,30 +409,26 @@ You can use `opentelemetry-api` to get the trace ID or span ID. This action can
409
409
410
410
Our goal in Application Insights Java 3.x is to allow you to send your custom telemetry by using standard APIs.
411
411
412
-
We currently support Micrometer, popular logging frameworks, and the Application Insights Java 2.x SDK. Application Insights Java 3.x automatically captures the telemetry sent through these APIs and correlates it with autocollected telemetry.
412
+
We currently support Micrometer, popular logging frameworks, and the Application Insights Java Classic SDK. Application Insights Java 3.x automatically captures the telemetry sent through these APIs and correlates it with autocollected telemetry.
413
413
414
414
### Supported custom telemetry
415
415
416
416
The following table represents currently supported custom telemetry types that you can enable to supplement the Java 3.x agent. To summarize:
417
417
418
418
- Custom metrics are supported through micrometer.
419
419
- Custom exceptions and traces are supported through logging frameworks.
420
-
- Custom requests, dependencies, metrics, and exceptions are supported through `opentelemetry-api`.
421
-
- All types of the custom telemetry is supported through the [Application Insights Java 2.x SDK](#send-custom-telemetry-by-using-the-2x-sdk).
Currently, we're not planning to release an SDK with Application Insights 3.x.
434
-
435
-
Application Insights Java 3.x is already listening for telemetry that's sent to the Application Insights Java 2.x SDK. This functionality is an important part of the upgrade story for existing 2.x users. And it fills an important gap in our custom telemetry support until all custom telemetry types are supported via the OpenTelemetry API.
420
+
- Custom requests, dependencies, metrics, and exceptions are supported through the OpenTelemetry API.
421
+
- The remaining telemetry types are supported through the [Application Insights Classic SDK](#send-custom-telemetry-by-using-the-application-insights-classic-sdk).
422
+
423
+
| Custom telemetry type | Micrometer | Logback, Log4j, JUL | OpenTelemetry API | AI Classic SDK |
@@ -469,22 +465,26 @@ Application Insights Java 3.x is already listening for telemetry that's sent to
469
465
470
466
### Send custom traces and exceptions by using your favorite logging framework
471
467
472
-
Log4j, Logback, and java.util.logging are auto-instrumented. Logging performed via these logging frameworks is autocollected as trace and exception telemetry.
468
+
Logback, Log4j, and java.util.logging are auto-instrumented. Logging performed via these logging frameworks is autocollected as trace and exception telemetry.
473
469
474
470
By default, logging is only collected when that logging is performed at the INFO level or above.
475
471
To change this level, see the [configuration options](./java-standalone-config.md#auto-collected-logging).
476
472
477
-
If you want to attach custom dimensions to your logs, use [Log4j 1.2 MDC](https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/MDC.html), [Log4j 2 MDC](https://logging.apache.org/log4j/2.x/manual/thread-context.html), or [Logback MDC](http://logback.qos.ch/manual/mdc.html). Application Insights Java 3.x automatically captures those MDC properties as custom dimensions on your trace and exception telemetry.
473
+
Structured logging (attaching custom dimensions to your logs) can be accomplished in these ways:
* [Log4j 2 MapMessage](https://logging.apache.org/log4j/2.x/log4j-api/apidocs/org/apache/logging/log4j/message/MapMessage.html) (a `MapMessage` key of `"message"` will be captured as the log message)
### Send custom telemetry by using the Application Insights Classic SDK
480
480
481
-
1. Add `applicationinsights-core-2.6.4.jar` to your application. All 2.x versions are supported by Application Insights Java 3.x. If you have a choice, it's worth using the latest version:
481
+
1. Add `applicationinsights-core` to your application:
0 commit comments