Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

TelemetryInitializers lack a DI friendly methods to add them #790

Closed
RamjotSingh opened this issue Dec 6, 2018 · 2 comments
Closed

TelemetryInitializers lack a DI friendly methods to add them #790

RamjotSingh opened this issue Dec 6, 2018 · 2 comments

Comments

@RamjotSingh
Copy link

TelemetryProcessors(services.AddApplicationInsightsTelemetryProcessor) and TelemetryModules (services.ConfigureTelemetryModule) both have a DI friendly way of injecting them. TelemetryInitializers lacks any such method.

@RamjotSingh
Copy link
Author

PR for reference which made TelemetryProcessors DI friendly.
#445

@cijothomas
Copy link
Contributor

Injecting TelemetryInitializers is done via DI. (all ITelemetryInitializers injected to DI will become part of TelemetryConfiguration)
https://github.com/Microsoft/ApplicationInsights-aspnetcore/wiki/Custom-Configuration#adding-new-telemetryinitializer

Agree, we need something like ConfigureTelemetryInitializer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants