Skip to content

Commit e360907

Browse files
author
Kai Nawroth
committed
Testing tabs
1 parent 369a355 commit e360907

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

articles/azure-monitor/app/api-filtering-sampling.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ To filter telemetry, you write a telemetry processor and register it with `Telem
3737
>
3838
> Instead, consider using [sampling](./sampling.md).
3939
40-
### C#
41-
42-
#### Create a telemetry processor
40+
### Create a telemetry processor for .NET applications
4341

4442
1. To create a filter, implement `ITelemetryProcessor`.
4543

@@ -81,7 +79,7 @@ To filter telemetry, you write a telemetry processor and register it with `Telem
8179

8280
2. Add your processor.
8381

84-
**ASP.NET apps**
82+
#### [ASP.NET](#tab/dotnet)
8583

8684
Insert this snippet in ApplicationInsights.config:
8785

@@ -113,8 +111,8 @@ To filter telemetry, you write a telemetry processor and register it with `Telem
113111
```
114112

115113
Telemetry clients created after this point use your processors.
116-
117-
**ASP.NET Core/Worker service apps**
114+
115+
#### [ASP.NET Core/Worker service](#tab/dotnet)
118116

119117
> [!NOTE]
120118
> Adding a processor by using `ApplicationInsights.config` or `TelemetryConfiguration.Active` isn't valid for ASP.NET Core applications or if you're using the Microsoft.ApplicationInsights.WorkerService SDK.
@@ -134,6 +132,8 @@ To filter telemetry, you write a telemetry processor and register it with `Telem
134132
```
135133

136134
To register telemetry processors that need parameters in ASP.NET Core, create a custom class implementing **ITelemetryProcessorFactory**. Call the constructor with the desired parameters in the **Create** method and then use **AddSingleton<ITelemetryProcessorFactory, MyTelemetryProcessorFactory>()**.
135+
136+
---
137137

138138
#### Example filters
139139

@@ -276,7 +276,7 @@ namespace MvcWebRole.Telemetry
276276

277277
#### Load your initializer
278278

279-
**ASP.NET apps**
279+
##### [ASP.NET](#tab/dotnet)
280280

281281
In ApplicationInsights.config:
282282

@@ -302,7 +302,7 @@ protected void Application_Start()
302302

303303
See more of [this sample](https://github.com/MohanGsk/ApplicationInsights-Home/tree/master/Samples/AzureEmailService/MvcWebRole).
304304

305-
**ASP.NET Core/Worker service apps**
305+
##### [ASP.NET Core/Worker service](#tab/dotnetcore)
306306

307307
> [!NOTE]
308308
> Adding an initializer by using `ApplicationInsights.config` or `TelemetryConfiguration.Active` isn't valid for ASP.NET Core applications or if you're using the Microsoft.ApplicationInsights.WorkerService SDK.
@@ -317,6 +317,9 @@ public void ConfigureServices(IServiceCollection services)
317317
services.AddSingleton<ITelemetryInitializer, MyTelemetryInitializer>();
318318
}
319319
```
320+
321+
---
322+
320323
### JavaScript telemetry initializers
321324

322325
Insert a JavaScript telemetry initializer, if needed. For more information on the telemetry initializers for the Application Insights JavaScript SDK, see [Telemetry initializers](https://github.com/microsoft/ApplicationInsights-JS#telemetry-initializers).

0 commit comments

Comments
 (0)