Reputation: 906
For context: Say for example I work in Healthcare IT and we have applications that pass PHI/PII that we do not want anything recorded (it just creates headaches).
Is there a way to tell App Insights in my tenant to ignore a group of URLs?
For example: I'd provide a list of urls like http://someservice.contsohealth.com/webhook and others and App Insights would just not see those anymore.
Upvotes: 0
Views: 133
Reputation: 7347
You can use Telemetry Processors to filter the traces before sending it to Application Insights.
As mentioned in the MSDoc, use ITelemetryProcessor
and filter the data.
ITelemetryProcessor
.public class FilterURL: ITelemetryProcessor
{
-------
}
ApplicationInsights.config
<TelemetryProcessors>
<Add Type="WebAppName.FilterURL, WebAppName">
</Add>
</TelemetryProcessors>
Program.cs
file.builder.Services.AddApplicationInsightsTelemetryProcessor<SuccessfulDependencyFilter>();
we do not want anything recorded (it just creates headaches).
Upvotes: 2