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
For more information about ILogger, see [Logging in C# and .NET](/dotnet/core/extensions/logging) and [code examples](https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/docs/logs).
38
+
For more information about `ILogger`, see [Logging in C# and .NET](/dotnet/core/extensions/logging) and [code examples](https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/docs/logs).
Attaching custom dimensions to logs can be accomplished using a [message template](/dotnet/core/extensions/logging?tabs=command-line#log-message-template).
1551
1551
1552
1552
#### [.NET](#tab/net)
1553
1553
1554
-
OpenTelemetry uses .NET's ILogger.
1554
+
OpenTelemetry uses .NET's `ILogger`.
1555
1555
Attaching custom dimensions to logs can be accomplished using a [message template](/dotnet/core/extensions/logging?tabs=command-line#log-message-template).
1556
1556
1557
1557
#### [Java](#tab/java)
@@ -1564,7 +1564,7 @@ Logback, Log4j, and java.util.logging are [autoinstrumented](#logs). Attaching c
1564
1564
1565
1565
#### [Node.js](#tab/nodejs)
1566
1566
1567
-
Attributes could be added only when calling manual track APIs only. Log attributes for console, bunyan and winston are currently not supported.
1567
+
Attributes could be added only when calling manual track APIs only. Log attributes for console, bunyan and Winston are currently not supported.
1568
1568
1569
1569
```javascript
1570
1570
constconfig=newApplicationInsightsConfig();
@@ -1904,7 +1904,7 @@ Get the request trace ID and the span ID in your code:
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/opentelemetry-configuration.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ A connection string in Application Insights defines the target location for send
23
23
24
24
Use one of the following three ways to configure the connection string:
25
25
26
-
- Add `UseAzureMonitor()` to your application startup. Depending on your version of .NET, this will be in either your `startup.cs` or `program.cs` class.
26
+
- Add `UseAzureMonitor()` to your application startup. Depending on your version of .NET, it is in either your `startup.cs` or `program.cs` class.
27
27
```csharp
28
28
varbuilder=WebApplication.CreateBuilder(args);
29
29
@@ -235,13 +235,13 @@ useAzureMonitor(options);
235
235
236
236
SettheCloudRoleNameandtheCloudRoleInstancevia [Resource](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/resource/sdk.md#resource-sdk) attributes. Cloud Role Name uses `service.namespace` and `service.name` attributes, although it falls back to `service.name` if `service.namespace` isn't set. Cloud Role Instance uses the `service.instance.id` attribute value. For information on standard attributes for resources, see [Resource Semantic Conventions](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/resource/semantic_conventions/README.md).
Ifyoudon't set the `service.namespace` Resource attribute, you can alternatively set the Cloud Role Name with only the OTEL_SERVICE_NAME environment variable or the `service.name` Resource attribute. For example, to set the Cloud Role Name to `my-helloworld-service` and set Cloud Role Instance to `my-instance`, you can set `OTEL_RESOURCE_ATTRIBUTES` and `OTEL_SERVICE_NAME` as such:
Youmaywanttoenablesamplingtoreduceyourdataingestionvolume, whichreducesyourcost. AzureMonitorprovidesacustom*fixed-rate*samplerthatpopulateseventswitha"sampling ratio", whichApplicationInsightsconvertsto"ItemCount". The*fixed-rate*samplerensuresaccurateexperiencesandeventcounts. Thesamplerisdesignedtopreserveyourtracesacrossservices, andit's interoperable with older Application Insights SDKs. For more information, see [Learn More about sampling](sampling.md#brief-summary).
254
+
Youmaywanttoenablesamplingtoreduceyourdataingestionvolume, whichreducesyourcost. AzureMonitorprovidesacustom*fixed-rate*samplerthatpopulateseventswithasamplingratio, whichApplicationInsightsconvertsto`ItemCount`. The*fixed-rate*samplerensuresaccurateexperiencesandeventcounts. Thesamplerisdesignedtopreserveyourtracesacrossservices, andit's interoperable with older Application Insights SDKs. For more information, see [Learn More about sampling](sampling.md#brief-summary).
>Whenusingfixed-rate/percentagesamplingandyouaren't sure what to set the sampling rate as, start at 5% (i.e., 0.05 sampling ratio) and adjust the rate based on the accuracy of the operations shown in the failures and performance blades. A higher rate generally results in higher accuracy. However, ANY sampling will affect accuracy so we recommend alerting on [OpenTelemetry metrics](opentelemetry-add-modify.md#metrics), which are unaffected by sampling.
321
321
322
-
## Enable Azure AD authentication
322
+
## Enable Entra ID (formerly Azure AD) authentication
| `OTEL_RESOURCE_ATTRIBUTES` |Key-valuepairstobeusedasresourceattributes. Seethe [ResourceSDKspecification](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.5.0/specification/resource/sdk.md#specifying-resource-information-via-an-environment-variable) for more details. |
| `OTEL_RESOURCE_ATTRIBUTES` |Key-valuepairstobeusedasresourceattributes. Seethe [ResourceSDKspecification](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.5.0/specification/resource/sdk.md#specifying-resource-information-via-an-environment-variable) for more details. |
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/opentelemetry-enable.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -313,7 +313,7 @@ As part of using Application Insights instrumentation, we collect and send diagn
313
313
314
314
- For details on adding and modifying Azure Monitor OpenTelemetry, see [Add and modify Azure Monitor OpenTelemetry](opentelemetry-add-modify.md)
315
315
- To review the source code, see the [Application Insights Beta GitHub repository](https://github.com/microsoft/ApplicationInsights-node.js/tree/beta).
316
-
- To install the npm package and check for updates, see the [applicationinsights npm Package](https://www.npmjs.com/package/applicationinsights/v/beta) page.
316
+
- To install the npm package and check for updates, see the [`applicationinsights` npm Package](https://www.npmjs.com/package/applicationinsights/v/beta) page.
317
317
- To become more familiar with Azure Monitor Application Insights and OpenTelemetry, see the [Azure Monitor Example Application](https://github.com/Azure-Samples/azure-monitor-opentelemetry-node.js).
318
318
- To learn more about OpenTelemetry and its community, see the [OpenTelemetry JavaScript GitHub repository](https://github.com/open-telemetry/opentelemetry-js).
319
319
- To enable usage experiences, [enable web or browser user monitoring](javascript.md).
0 commit comments