Skip to content

Commit 6c226ec

Browse files
authored
Merge pull request #112435 from lzchen/patch-1
Fix examples for OpenCensus Python sampling
2 parents 020c05c + 49e14a9 commit 6c226ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/azure-monitor/app/sampling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ tracer = Tracer(
383383
You can configure fixed-rate sampling for `AzureLogHandler` by modifying the `logging_sampling_rate` optional argument. If no argument is supplied, a sampling rate of 1.0 will be used. A sampling rate of 1.0 represents 100%, meaning all of your requests will be sent as telemetry to Application Insights.
384384

385385
```python
386-
exporter = metrics_exporter.new_metrics_exporter(
386+
handler = AzureLogHandler(
387387
instrumentation_key='00000000-0000-0000-0000-000000000000',
388388
logging_sampling_rate=0.5,
389389
)

0 commit comments

Comments
 (0)