Skip to content

Commit 6c4526b

Browse files
committed
Breaking out add/modify to a new article
1 parent 986046b commit 6c4526b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

articles/azure-monitor/app/opentelemetry-add-modify.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ The following table represents the currently supported custom telemetry types:
285285
> [!NOTE]
286286
> Application Insights Java 3.x listens for telemetry that's sent to the Application Insights [Classic API](api-custom-events-metrics.md). Similarly, Application Insights Node.js 3.x collects events created with the Application Insights [Classic API](api-custom-events-metrics.md). This makes upgrading easier and fills a gap in our custom telemetry support until all custom telemetry types are supported via the OpenTelemetry API.
287287
288-
### Add Custom Metrics
288+
### Add custom metrics
289289

290290
> [!NOTE]
291291
> 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).
@@ -314,7 +314,7 @@ describes the instruments and provides examples of when you might use each one.
314314
> [!TIP]
315315
> The histogram is the most versatile and most closely equivalent to the Application Insights GetMetric [Classic API](api-custom-events-metrics.md). Azure Monitor currently flattens the histogram instrument into our five supported aggregation types, and support for percentiles is underway. Although less versatile, other OpenTelemetry instruments have a lesser impact on your application's performance.
316316
317-
#### Histogram Example
317+
#### Histogram example
318318

319319
#### [ASP.NET Core](#tab/aspnetcore)
320320

@@ -429,7 +429,7 @@ input()
429429

430430
---
431431

432-
#### Counter Example
432+
#### Counter example
433433

434434
#### [ASP.NET Core](#tab/aspnetcore)
435435

@@ -687,7 +687,7 @@ input()
687687

688688
---
689689

690-
### Add Custom Exceptions
690+
### Add custom exceptions
691691

692692
Select instrumentation libraries automatically report exceptions to Application Insights.
693693
However, you may want to manually report exceptions beyond what instrumentation libraries report.
@@ -847,7 +847,7 @@ with tracer.start_as_current_span("hello", record_exception=False) as span:
847847

848848
---
849849

850-
### Add Custom Spans
850+
### Add custom spans
851851

852852
You may want to add a custom span in two scenarios. First, when there's a dependency request not already collected by an instrumentation library. Second, when you wish to model an application process as a span on the end-to-end transaction view.
853853

@@ -1159,15 +1159,15 @@ Not available in .NET.
11591159
#### [Node.js](#tab/nodejs)
11601160

11611161

1162-
1. Get `LogHandler`:
1162+
First, get the `LogHandler`:
11631163

1164-
```javascript
1165-
const { ApplicationInsightsClient, ApplicationInsightsConfig } = require("applicationinsights");
1166-
const appInsights = new ApplicationInsightsClient(new ApplicationInsightsConfig());
1167-
const logHandler = appInsights.getLogHandler();
1168-
```
1164+
```javascript
1165+
const { ApplicationInsightsClient, ApplicationInsightsConfig } = require("applicationinsights");
1166+
const appInsights = new ApplicationInsightsClient(new ApplicationInsightsConfig());
1167+
const logHandler = appInsights.getLogHandler();
1168+
```
11691169

1170-
1. Use the `LogHandler` to send custom telemetry:
1170+
Then use the `LogHandler` to send custom telemetry:
11711171

11721172
##### Events
11731173

@@ -1518,7 +1518,7 @@ span._attributes["enduser.id"] = "<User ID>"
15181518

15191519
---
15201520

1521-
### Add Log Attributes
1521+
### Add log attributes
15221522

15231523
#### [ASP.NET Core](#tab/aspnetcore)
15241524

0 commit comments

Comments
 (0)