I get far too many "Invoke" dependency items in Application insights.
Have tried;
services.AddApplicationInsightsTelemetryWorkerService(o => o.EnableDependencyTrackingTelemetryModule = false);
and
services.AddApplicationInsightsTelemetryProcessor<RemoveInvokeTelemetryProcessor>();
////
public sealed class RemoveInvokeTelemetryProcessor(
IOptionsMonitor<TelemetryFilterOptions> options,
ITelemetryProcessor next) :
ITelemetryProcessor
{
/// <inheritdoc/>
public void Process(ITelemetry item)
{
if (options.CurrentValue.FilterInvokeDependencyItems)
{
if (item is DependencyTelemetry dependency && dependency.Name == "Invoke")
{
// Do not send telemetry for the "Invoke" dependency.
return;
}
}
next.Process(item);
}
}
Still I get this;
Any ideas? Is an absolute killer on high frequency function apps.
Description
I get far too many "Invoke" dependency items in Application insights.
Have tried;
services.AddApplicationInsightsTelemetryWorkerService(o => o.EnableDependencyTrackingTelemetryModule = false);
and
Still I get this;
Any ideas? Is an absolute killer on high frequency function apps.
thanks!
Steps to reproduce
Create function app with Application Insights.
Run function app.
Observe