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-enable.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ Consider whether this preview is right for you. It *enables distributed tracing,
37
37
-[Instrumentation libraries](#instrumentation-libraries) support on Azure Functions
38
38
-[Status](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#set-status) only supports statuscode(unset,ok,error) and status-description. "Status Description" is ignored by Azure Monitor Exporters.
39
39
40
-
If you require a full-feature experience, use the existing Application Insights [ASP.NET](asp-net.md) or [ASP.NET Core](asp-net-core.md) SDK until the OpenTelemetry-based offering matures.
40
+
If you require a full-feature experience, use the existing Application Insights [ASP.NET](asp-net.md), or [ASP.NET Core](asp-net-core.md) SDK until the OpenTelemetry-based offering matures.
41
41
42
42
### [Node.js](#tab/nodejs)
43
43
@@ -395,14 +395,14 @@ For information on standard attributes for resources, see [Resource Semantic Con
395
395
396
396
## Enable Sampling
397
397
398
-
You may want to enable sampling to reduce your data ingestion volume which reduces your cost. Azure Monitor provides a custom *fixed-rate* sampler that populates events with a "sampling ratio", which Application Insights converts to "ItemCount". This ensures accurate experiences and event counts. The sampler is designed to preserve your traces across services, and it's interoperable with older Application Insights SDKs. The sampler expects a sample rate of between 0 and 1 inclusive. A rate of 0.1 means approximately 10% of your traces will be sent. For more information, see [Learn More about sampling](sampling.md#brief-summary).
398
+
You may want to enable sampling to reduce your data ingestion volume, which reduces your cost. Azure Monitor provides a custom *fixed-rate* sampler that populates events with a "sampling ratio", which Application Insights converts to "ItemCount". The *fixed-rate* sampler ensures accurate experiences and event counts. The sampler is designed to preserve your traces across services, and it's interoperable with older Application Insights SDKs. The sampler expects a sample rate of between 0 and 1 inclusive. A rate of 0.1 means approximately 10% of your traces will be sent. For more information, see [Learn More about sampling](sampling.md#brief-summary).
399
399
400
400
> [!NOTE]
401
401
> Metrics are unaffected by sampling.
402
402
403
403
#### [.NET](#tab/net)
404
404
405
-
In this example, we utilize the `ApplicationInsightsSampler` which offers compatibility with Application Insights SDKs.
405
+
In this example, we utilize the `ApplicationInsightsSampler`, which offers compatibility with Application Insights SDKs.
Todisablethisfeatureyoushouldset `disable_offline_storage` to `True`. Defaultsto `False`.
1501
+
Todisablethisfeature,youshouldset `disable_offline_storage` to `True`. Defaultsto `False`.
1502
1502
1503
1503
Forexample:
1504
1504
```python
@@ -1535,7 +1535,7 @@ provider.register();
1535
1535
1536
1536
#### [Python](#tab/python)
1537
1537
1538
-
TheAzureMonitorExporterusesthePythonstandardlogging [library](https://docs.python.org/3/library/logging.html) for its own internal logging. OpenTelemetry API and Azure Monitor Exporter logs are usually logged at the severity level of WARNING or ERROR for irregular activity. The INFO severity level is used for regular or successful activity. By default, the Python logging library sets the severity level to WARNING, so you must change the severity level to see logs under this severity setting. The following example shows how to output logs of *all* severity levels to the console *and* a file:
1538
+
TheAzureMonitorExporterusesthePythonstandardlogging [library](https://docs.python.org/3/library/logging.html) for its own internal logging. OpenTelemetry API and Azure Monitor Exporter logs are logged at the severity level of WARNING or ERROR for irregular activity. The INFO severity level is used for regular or successful activity. By default, the Python logging library sets the severity level to WARNING, so you must change the severity level to see logs under this severity setting. The following example shows how to output logs of *all* severity levels to the console *and* a file:
0 commit comments