Skip to content

Commit e6b35fb

Browse files
authored
Update sampling documentation's FAQ to mention telemetry initializers available in all SDKs
The current documentation wording does not clarify that telemetry initializers are available in all SDKs, and the only example is for the ASP.NET SDK. This PR clarifies that multiple SDKs support this feature.
1 parent de6534b commit e6b35fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-monitor/app/sampling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.topic: conceptual
77
author: mrbullwinkle
88
ms.author: mbullwin
99
ms.date: 03/14/2019
10-
10+
ms.custom: fasttrack-edit
1111
ms.reviewer: vitalyg
1212
---
1313

@@ -535,7 +535,7 @@ apply sampling to those items already sampled in the SDK itself.'
535535
536536
*There are certain rare events I always want to see. How can I get them past the sampling module?*
537537
538-
* 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.
538+
* 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:
539539
540540
```csharp
541541
public class MyTelemetryInitializer : ITelemetryInitializer

0 commit comments

Comments
 (0)