Skip to content

Commit 1591676

Browse files
Merge pull request #216800 from AaronMaxwell/aaronmax-sampling-netcore-ApplicationInsights.config
https://github.com/MicrosoftDocs/azure-docs/issues/100281
2 parents 52f478d + 1155aaf commit 1591676

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

articles/azure-monitor/app/sampling.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ Metric counts such as request rate and exception rate are adjusted to compensate
9090
> [!NOTE]
9191
> This section applies to ASP.NET applications, not to ASP.NET Core applications. [Learn about configuring adaptive sampling for ASP.NET Core applications later in this document.](#configuring-adaptive-sampling-for-aspnet-core-applications)
9292
93-
> With ASP.NET Core and with Microsoft.ApplicationInsights.AspNetCore >= 2.15.0 you can configure AppInsights options via appsettings.json
94-
9593
In [`ApplicationInsights.config`](./configuration-with-applicationinsights-config.md), you can adjust several parameters in the `AdaptiveSamplingTelemetryProcessor` node. The figures shown are the default values:
9694

9795
* `<MaxTelemetryItemsPerSecond>5</MaxTelemetryItemsPerSecond>`
@@ -175,7 +173,8 @@ builder.UseAdaptiveSampling(maxTelemetryItemsPerSecond:5, excludedTypes: "Depend
175173

176174
### Configuring adaptive sampling for ASP.NET Core applications
177175

178-
There's no `ApplicationInsights.config` for ASP.NET Core applications, so all configuration is done via code.
176+
ASP.NET Core applications may be configured in code or through the `appsettings.json` file. For more information, see [Configuration in ASP.NET Core](https://learn.microsoft.com/aspnet/core/fundamentals/configuration).
177+
179178
Adaptive sampling is enabled by default for all ASP.NET Core applications. You can disable or customize the sampling behavior.
180179

181180
#### Turning off adaptive sampling

0 commit comments

Comments
 (0)