Quark Soup
Quark Soup

Reputation: 4733

How do you turn off Application Insights Dependency Tracker?

I'm trying to dump simple messages to my Application Insight log so I can monitor the health of my web service. Things like "Service starting...", "Service Started.", etc. as well as exception messages.

But my log is flooded with these Dependency Tracking messages. Things like the Put has been called, an SQL Query has been run. I have no interest in these messages and it makes it damned near impossible to see real issues in that mess.

How do you turn this 'feature' off but still use Application Insight for basic progress message?

Upvotes: 0

Views: 4931

Answers (1)

cijothomas
cijothomas

Reputation: 3126

If you want to disable DependencyCollection by ApplicationInsights SDK, modify your ApplicationInsights.Config file to remove the DependencyCollectionTelemetryModule.

If you are using Asp.Net Core SDK, then use this instructions to remove the same: https://github.com/Microsoft/ApplicationInsights-aspnetcore/wiki/Auto-collection-modules-(Dependencies,-Perf-Counters,-Live-metrics-and-more.)#disabling-telemetry-module

From your descriptions, it looks like you are seeing some logs about dependency tracking? Are you on asp.net core sdk and using ApplicationInsightsLoggerProvider? If you can elaborate a bit more on it, there might be a better solution.

Link to the doc about using ILogger and ApplicationInsights https://learn.microsoft.com/en-us/azure/azure-monitor/app/ilogger#frequently-asked-questions

Upvotes: 3

Related Questions