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/application-insights/app-insights-api-filtering-sampling.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ To filter telemetry, you write a telemetry processor and register it with the SD
50
50
51
51
Notice that Telemetry Processors construct a chain of processing. When you instantiate a telemetry processor, you pass a link to the next processor in the chain. When a telemetry data point is passed to the Process method, it does its work and then calls the next Telemetry Processor in the chain.
52
52
53
-
```C#
53
+
```csharp
54
54
55
55
usingMicrosoft.ApplicationInsights.Channel;
56
56
usingMicrosoft.ApplicationInsights.Extensibility;
@@ -97,7 +97,7 @@ To filter telemetry, you write a telemetry processor and register it with the SD
@@ -137,7 +137,7 @@ TelemetryClients created after this point will use your processors.
137
137
#### Synthetic requests
138
138
Filter out bots and web tests. Although Metrics Explorer gives you the option to filter out synthetic sources, this option reduces traffic by filtering them at the SDK.
139
139
140
-
```C#
140
+
```csharp
141
141
142
142
publicvoidProcess(ITelemetryitem)
143
143
{
@@ -178,7 +178,7 @@ If you only want to diagnose calls that are slow, filter out the fast ones.
178
178
>
179
179
>
180
180
181
-
```C#
181
+
```csharp
182
182
183
183
publicvoidProcess(ITelemetryitem)
184
184
{
@@ -251,13 +251,15 @@ If you provide a telemetry initializer, it is called whenever any of the Track*(
251
251
252
252
In ApplicationInsights.config:
253
253
254
+
```xml
254
255
<ApplicationInsights>
255
256
<TelemetryInitializers>
256
257
<!-- Fully qualified type name, assembly name: -->
0 commit comments