Sitelet https://github.com/Microsoft/ApplicationInsights-aspnetcore/issues/633
Skip to content
This repository was archived by the owner on Jun 10, 2020. It is now read-only.
This repository was archived by the owner on Jun 10, 2020. It is now read-only.

Make removal of built-in modules possible #633

Description

As an example,
DependencyCollectorTelemetryModule is injected into DI Container in a lazy way(https://github.com/Microsoft/ApplicationInsights-aspnetcore/blob/develop/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs#L142). This makes it difficult for customer to remove the module from the collection in the ConfigureServices method, as it wont be present yet.

Repro Steps

  1. Follow this steps and attempt to remove DependencyCollector module https://github.com/Microsoft/ApplicationInsights-aspnetcore/wiki/Dependency-Tracking-and-Performance-Counter-Collection#disabling-telemetry-module-services

Actual Behavior

DependencyCollector won't be removed.

Expected Behavior

DependencyCollector should be removed.

Version Info

SDK Version :
.NET Version :
How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) :
OS :
Hosting Info (IIS/Azure WebApps/ etc) :

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions