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-configuration.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -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. |
0 commit comments