Skip to content

Commit 4e643d7

Browse files
authored
Merge pull request #100688 from johndowns/patch-6
Clarify that telemetry initializers are available in all SDKs
2 parents 7b95b08 + cd33b98 commit 4e643d7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

articles/azure-monitor/app/sampling.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ ms.topic: conceptual
77
author: mrbullwinkle
88
ms.author: mbullwin
99
ms.date: 01/17/2020
10-
1110
ms.reviewer: vitalyg
1211
ms.custom: fasttrack-edit
1312
---
@@ -528,7 +527,7 @@ The accuracy of the approximation largely depends on the configured sampling per
528527

529528
*There are certain rare events I always want to see. How can I get them past the sampling module?*
530529

531-
* The best way to achieve this is to write a custom [TelemetryInitializer](../../azure-monitor/app/api-filtering-sampling.md#addmodify-properties-itelemetryinitializer), which sets the `SamplingPercentage` to 100 on the telemetry item you want retained, as shown below. As initializers are guaranteed to be run before telemetry processors (including sampling), this ensures that all sampling techniques will ignore this item from any sampling considerations.
530+
* The best way to achieve this is to write a custom [TelemetryInitializer](../../azure-monitor/app/api-filtering-sampling.md#addmodify-properties-itelemetryinitializer), which sets the `SamplingPercentage` to 100 on the telemetry item you want retained, as shown below. As initializers are guaranteed to be run before telemetry processors (including sampling), this ensures that all sampling techniques will ignore this item from any sampling considerations. Custom telemetry initializers are available in the ASP.NET SDK, the ASP.NET Core SDK, the JavaScript SDK, and the Java SDK. For example, you can configure a telemetry initializer using the ASP.NET SDK:
532531

533532
```csharp
534533
public class MyTelemetryInitializer : ITelemetryInitializer

0 commit comments

Comments
 (0)