Skip to content

Commit 12cc9b4

Browse files
committed
Fixing formatting
1 parent 9232c2e commit 12cc9b4

File tree

2 files changed

+49
-49
lines changed

2 files changed

+49
-49
lines changed

articles/azure-monitor/app/data-model-complete.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -425,24 +425,24 @@ This can occur if you're using string values. Only numeric values work with cust
425425
## Next steps
426426

427427
Learn how to use the [Application Insights API for custom events and metrics](./api-custom-events-metrics.md), including:
428-
- [Custom request telemetry](./api-custom-events-metrics.md#trackrequest)
429-
- [Custom dependency telemetry](./api-custom-events-metrics.md#trackdependency)
430-
- [Custom trace telemetry](./api-custom-events-metrics.md#tracktrace)
431-
- [Custom event telemetry](./api-custom-events-metrics.md#trackevent)
432-
- [Custom metric telemetry](./api-custom-events-metrics.md#trackmetric)
428+
* [Custom request telemetry](./api-custom-events-metrics.md#trackrequest)
429+
* [Custom dependency telemetry](./api-custom-events-metrics.md#trackdependency)
430+
* [Custom trace telemetry](./api-custom-events-metrics.md#tracktrace)
431+
* [Custom event telemetry](./api-custom-events-metrics.md#trackevent)
432+
* [Custom metric telemetry](./api-custom-events-metrics.md#trackmetric)
433433

434434
Set up dependency tracking for:
435-
- [.NET](./asp-net-dependencies.md)
436-
- [Java](./opentelemetry-enable.md?tabs=java)
435+
* [.NET](./asp-net-dependencies.md)
436+
* [Java](./opentelemetry-enable.md?tabs=java)
437437

438438
To learn more:
439439

440-
- Check out [platforms](./app-insights-overview.md#supported-languages) supported by Application Insights.
441-
- Check out standard context properties collection [configuration](./configuration-with-applicationinsights-config.md#telemetry-initializers-aspnet).
442-
- Explore [.NET trace logs in Application Insights](./asp-net-trace-logs.md).
443-
- Explore [Java trace logs in Application Insights](./opentelemetry-add-modify.md?tabs=java##send-custom-telemetry-using-the-application-insights-classic-api).
444-
- Learn about the [Azure Functions built-in integration with Application Insights](../../azure-functions/functions-monitoring.md?toc=/azure/azure-monitor/toc.json) to monitor functions executions.
445-
- Learn how to [configure an ASP.NET Core](./asp-net.md) application with Application Insights.
446-
- Learn how to [diagnose exceptions in your web apps with Application Insights](./asp-net-exceptions.md).
447-
- Learn how to [extend and filter telemetry](./api-filtering-sampling.md).
448-
- Use [sampling](./sampling.md) to minimize the amount of telemetry based on data model.
440+
* Check out [platforms](./app-insights-overview.md#supported-languages) supported by Application Insights.
441+
* Check out standard context properties collection [configuration](./configuration-with-applicationinsights-config.md#telemetry-initializers-aspnet).
442+
* Explore [.NET trace logs in Application Insights](./asp-net-trace-logs.md).
443+
* Explore [Java trace logs in Application Insights](./opentelemetry-add-modify.md?tabs=java#send-custom-telemetry-using-the-application-insights-classic-api).
444+
* Learn about the [Azure Functions built-in integration with Application Insights](../../azure-functions/functions-monitoring.md?toc=/azure/azure-monitor/toc.json) to monitor functions executions.
445+
* Learn how to [configure an ASP.NET Core](./asp-net.md) application with Application Insights.
446+
* Learn how to [diagnose exceptions in your web apps with Application Insights](./asp-net-exceptions.md).
447+
* Learn how to [extend and filter telemetry](./api-filtering-sampling.md).
448+
* Use [sampling](./sampling.md) to minimize the amount of telemetry based on data model.

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

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ You can collect more data automatically when you include instrumentation librari
280280
To add a community library, use the `ConfigureOpenTelemetryMeterProvider` or `ConfigureOpenTelemetryTracerProvider` methods,
281281
after adding the nuget package for the library.
282282

283-
The following example demonstrates how the [Runtime Instrumentation](https://www.nuget.org/packages/OpenTelemetry.Instrumentation.Runtime) can be added to collect extra metrics.
283+
The following example demonstrates how the [Runtime Instrumentation](https://www.nuget.org/packages/OpenTelemetry.Instrumentation.Runtime) can be added to collect extra metrics:
284284

285285
```dotnetcli
286286
dotnet add package OpenTelemetry.Instrumentation.Runtime
@@ -306,7 +306,7 @@ app.Run();
306306

307307
#### [.NET](#tab/net)
308308

309-
The following example demonstrates how the [Runtime Instrumentation](https://www.nuget.org/packages/OpenTelemetry.Instrumentation.Runtime) can be added to collect extra metrics.
309+
The following example demonstrates how the [Runtime Instrumentation](https://www.nuget.org/packages/OpenTelemetry.Instrumentation.Runtime) can be added to collect extra metrics:
310310

311311
```csharp
312312
// Create a new OpenTelemetry meter provider and add runtime instrumentation and the Azure Monitor metric exporter.
@@ -326,7 +326,7 @@ You can't use commmunity instrumentation libraries with GraalVM Java native appl
326326

327327
#### [Node.js](#tab/nodejs)
328328

329-
Other OpenTelemetry Instrumentations are available [here](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node) and could be added using TraceHandler in ApplicationInsightsClient.
329+
Other OpenTelemetry Instrumentations are available [here](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node) and could be added using TraceHandler in ApplicationInsightsClient:
330330

331331
```javascript
332332
// Import the Azure Monitor OpenTelemetry plugin and OpenTelemetry API
@@ -456,7 +456,7 @@ describes the instruments and provides examples of when you might use each one.
456456

457457
##### [ASP.NET Core](#tab/aspnetcore)
458458

459-
Application startup must subscribe to a Meter by name.
459+
Application startup must subscribe to a Meter by name:
460460

461461
```csharp
462462
// Create a new ASP.NET Core web application builder.
@@ -476,7 +476,7 @@ var app = builder.Build();
476476
app.Run();
477477
```
478478

479-
The `Meter` must be initialized using that same name.
479+
The `Meter` must be initialized using that same name:
480480

481481
```csharp
482482
// Create a new meter named "OTel.AzureMonitor.Demo".
@@ -568,7 +568,7 @@ public class Program {
568568

569569
##### [Java native](#tab/java-native)
570570

571-
1. Inject `OpenTelemetry`
571+
1. Inject `OpenTelemetry`:
572572

573573
* **Spring**
574574
```java
@@ -587,7 +587,7 @@ public class Program {
587587
```
588588

589589

590-
1. Create an histogram
590+
1. Create a histogram:
591591

592592
```java
593593
import io.opentelemetry.api.metrics.DoubleHistogram;
@@ -654,7 +654,7 @@ input()
654654

655655
##### [ASP.NET Core](#tab/aspnetcore)
656656

657-
Application startup must subscribe to a Meter by name.
657+
Application startup must subscribe to a Meter by name:
658658

659659
```csharp
660660
// Create a new ASP.NET Core web application builder.
@@ -674,7 +674,7 @@ var app = builder.Build();
674674
app.Run();
675675
```
676676

677-
The `Meter` must be initialized using that same name.
677+
The `Meter` must be initialized using that same name:
678678

679679
```csharp
680680
// Create a new meter named "OTel.AzureMonitor.Demo".
@@ -766,7 +766,7 @@ public class Program {
766766
```
767767
##### [Java native](#tab/java-native)
768768

769-
1. Inject `OpenTelemetry`
769+
1. Inject `OpenTelemetry`:
770770

771771
* **Spring**
772772
```java
@@ -784,7 +784,7 @@ public class Program {
784784
OpenTelemetry openTelemetry;
785785
```
786786

787-
1. Create the counter
787+
1. Create the counter:
788788

789789
```Java
790790
import io.opentelemetry.api.common.AttributeKey;
@@ -864,7 +864,7 @@ input()
864864

865865
##### [ASP.NET Core](#tab/aspnetcore)
866866

867-
Application startup must subscribe to a Meter by name.
867+
Application startup must subscribe to a Meter by name:
868868

869869
```csharp
870870
// Create a new ASP.NET Core web application builder.
@@ -884,7 +884,7 @@ var app = builder.Build();
884884
app.Run();
885885
```
886886

887-
The `Meter` must be initialized using that same name.
887+
The `Meter` must be initialized using that same name:
888888

889889
```csharp
890890
// Get the current process.
@@ -982,7 +982,7 @@ public class Program {
982982
```
983983
##### [Java native](#tab/java-native)
984984

985-
1. Inject `OpenTelemetry`
985+
1. Inject `OpenTelemetry`:
986986

987987
* **Spring**
988988
```java
@@ -1000,7 +1000,7 @@ public class Program {
10001000
OpenTelemetry openTelemetry;
10011001
```
10021002

1003-
1. Create a gauge
1003+
1. Create a gauge:
10041004

10051005
```Java
10061006
import io.opentelemetry.api.common.AttributeKey;
@@ -1252,7 +1252,7 @@ catch(error){
12521252

12531253
#### [Python](#tab/python)
12541254

1255-
The OpenTelemetry Python SDK is implemented in such a way that exceptions thrown are automatically captured and recorded. See the following code sample for an example of this behavior.
1255+
The OpenTelemetry Python SDK is implemented in such a way that exceptions thrown are automatically captured and recorded. See the following code sample for an example of this behavior:
12561256

12571257
```python
12581258
# Import the necessary packages.
@@ -1443,7 +1443,7 @@ you can add your spans by using the OpenTelemetry API.
14431443

14441444
#### [Java native](#tab/java-native)
14451445

1446-
1. Inject `OpenTelemetry`
1446+
1. Inject `OpenTelemetry`:
14471447

14481448
* **Spring**
14491449
```java
@@ -1621,11 +1621,11 @@ We recommend you use the OpenTelemetry APIs whenever possible, but there might b
16211621

16221622
#### [ASP.NET Core](#tab/aspnetcore)
16231623

1624-
##### Events
1624+
**Events**
16251625

16261626
1. Add `Microsoft.ApplicationInsights` to your application.
16271627

1628-
1. Create a `TelemetryClient` instance.
1628+
1. Create a `TelemetryClient` instance:
16291629

16301630
> [!NOTE]
16311631
> It's important to only create once instance of the TelemetryClient per application.
@@ -1635,19 +1635,19 @@ We recommend you use the OpenTelemetry APIs whenever possible, but there might b
16351635
var telemetryClient = new TelemetryClient(telemetryConfiguration);
16361636
```
16371637

1638-
1. Use the client to send custom telemetry.
1638+
1. Use the client to send custom telemetry:
16391639

1640-
```csharp
1641-
telemetryClient.TrackEvent("testEvent");
1642-
```
1640+
```csharp
1641+
telemetryClient.TrackEvent("testEvent");
1642+
```
16431643

16441644
#### [.NET](#tab/net)
16451645

16461646
**Events**
16471647

16481648
1. Add `Microsoft.ApplicationInsights` to your application.
16491649

1650-
1. Create a `TelemetryClient` instance.
1650+
1. Create a `TelemetryClient` instance:
16511651

16521652
> [!NOTE]
16531653
> It's important to only create once instance of the TelemetryClient per application.
@@ -1657,11 +1657,11 @@ telemetryClient.TrackEvent("testEvent");
16571657
var telemetryClient = new TelemetryClient(telemetryConfiguration);
16581658
```
16591659

1660-
1. Use the client to send custom telemetry.
1660+
1. Use the client to send custom telemetry:
16611661

1662-
```csharp
1663-
telemetryClient.TrackEvent("testEvent");
1664-
```
1662+
```csharp
1663+
telemetryClient.TrackEvent("testEvent");
1664+
```
16651665

16661666
#### [Java](#tab/java)
16671667

@@ -1802,7 +1802,7 @@ pip install azure-monitor-opentelemetry
18021802
pip install azure-monitor-events-extension
18031803
```
18041804

1805-
Use the `track_event` API offered in the extension to send customEvents.
1805+
Use the `track_event` API offered in the extension to send customEvents:
18061806

18071807
```python
18081808
...
@@ -2123,7 +2123,7 @@ You can populate the _user_Id_ or _user_AuthenticatedId_ field for requests by u
21232123

21242124
##### [ASP.NET Core](#tab/aspnetcore)
21252125

2126-
Use the add [custom property example](#add-a-custom-property-to-a-span).
2126+
Use the add [custom property example](#add-a-custom-property-to-a-span):
21272127

21282128
```csharp
21292129
// Add the user ID to the activity as a tag, but only if the activity is not null.
@@ -2132,7 +2132,7 @@ activity?.SetTag("enduser.id", "<User Id>");
21322132

21332133
##### [.NET](#tab/net)
21342134

2135-
Use the add [custom property example](#add-a-custom-property-to-a-span).
2135+
Use the add [custom property example](#add-a-custom-property-to-a-span):
21362136

21372137
```csharp
21382138
// Add the user ID to the activity as a tag, but only if the activity is not null.
@@ -2254,7 +2254,7 @@ log.info({
22542254

22552255
#### [Python](#tab/python)
22562256

2257-
The Python [logging](https://docs.python.org/3/howto/logging.html) library is [autoinstrumented](.\opentelemetry-add-modify.md?tabs=python#included-instrumentation-libraries). You can attach custom dimensions to your logs by passing a dictionary into the `extra` argument of your logs.
2257+
The Python [logging](https://docs.python.org/3/howto/logging.html) library is [autoinstrumented](.\opentelemetry-add-modify.md?tabs=python#included-instrumentation-libraries). You can attach custom dimensions to your logs by passing a dictionary into the `extra` argument of your logs:
22582258
22592259
```python
22602260
...
@@ -2477,7 +2477,7 @@ It's not possible to filter telemetry in Java native.
24772477
...
24782478
```
24792479

2480-
1. Use a custom processor. You can use a custom span processor to exclude certain spans from being exported. To mark spans to not be exported, set `TraceFlag` to `DEFAULT`.
2480+
1. Use a custom processor. You can use a custom span processor to exclude certain spans from being exported. To mark spans to not be exported, set `TraceFlag` to `DEFAULT`:
24812481

24822482
```python
24832483
...

0 commit comments

Comments
 (0)