Skip to content

Commit 393cd71

Browse files
authored
Merge pull request #189792 from AaronMaxwell/aaronmax-update-dotnetcore-example
[AppInsights][AaronMax] updated asp.net core instructions
2 parents 8042d19 + c197672 commit 393cd71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ For apps written by using [ASP.NET Core](asp-net-core.md#adding-telemetry-proces
129129
}
130130
```
131131

132+
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>()**.
133+
132134
### Example filters
133135

134136
#### Synthetic requests

0 commit comments

Comments
 (0)