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
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/opentelemetry-add-modify.md
+40-6Lines changed: 40 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -374,8 +374,6 @@ The following table represents the currently supported custom telemetry types:
374
374
> [!NOTE]
375
375
> Custom Metrics are under preview in Azure Monitor Application Insights. Custom metrics without dimensions are available by default. To view and alert on dimensions, you need to [opt-in](pre-aggregated-metrics-log-metrics.md#custom-metrics-dimensions-and-pre-aggregation).
376
376
377
-
Consider collecting more metrics beyond what's provided by the instrumentation libraries.
378
-
379
377
The OpenTelemetry API offers six metric "instruments" to cover various metric scenarios and you need to pick the correct "Aggregation Type" when visualizing metrics in Metrics Explorer. This requirement is true when using the OpenTelemetry Metric API to send metrics and when using an instrumentation library.
380
378
381
379
The following table shows the recommended [aggregation types](../essentials/metrics-aggregation-explained.md#aggregation-types) for each of the OpenTelemetry Metric Instruments.
@@ -1380,15 +1378,51 @@ Currently unavailable.
1380
1378
1381
1379
### Send custom telemetry using the Application Insights Classic API
1382
1380
1383
-
We recommend you use the OpenTelemetry APIs whenever possible, but there might be some scenarios when you have to use the Application Insights [Classic API](api-custom-events-metrics.md)s.
1381
+
We recommend you use the OpenTelemetry APIs whenever possible, but there might be some scenarios when you have to use the Application Insights [Classic API](api-custom-events-metrics.md).
1384
1382
1385
1383
#### [ASP.NET Core](#tab/aspnetcore)
1386
1384
1387
-
Not available in .NET.
1385
+
##### Events
1386
+
1387
+
1. Add `Microsoft.ApplicationInsights` to your application:
1388
+
1389
+
1. Create a `TelemetryClient` instance.
1390
+
1391
+
> [!NOTE]
1392
+
> It's important to only create once instance of the TelemetryClient per application.
@@ -1915,7 +1949,7 @@ Attaching custom dimensions to logs can be accomplished using a [message templat
1915
1949
1916
1950
Logback, Log4j, and java.util.logging are [autoinstrumented](#logs). Attaching custom dimensions to your logs can be accomplished in these ways:
1917
1951
1918
-
*[Log4j 2.0 MapMessage](https://logging.apache.org/log4j/2.x/log4j-api/apidocs/org/apache/logging/log4j/message/MapMessage.html) (a `MapMessage` key of `"message"` is captured as the log message)
1952
+
*[Log4j 2.0 MapMessage](https://logging.apache.org/log4j/2.0/javadoc/log4j-api/org/apache/logging/log4j/message/MapMessage.html) (a `MapMessage` key of `"message"` is captured as the log message)
0 commit comments