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

AppInsightsTelemetryModule can only be used once #72

Open
roberino opened this issue Mar 8, 2019 · 0 comments
Open

AppInsightsTelemetryModule can only be used once #72

roberino opened this issue Mar 8, 2019 · 0 comments

Comments

@roberino
Copy link

roberino commented Mar 8, 2019

Typically applications only require one TelemetryConfiguration instance with one set of ITelemetryInitializer but we have a few cases where we have multiple configurations running within a single application. This problem has popped up in testing scenarios but also in odd cases where a component has implemented specific telemetry with a specific channel (and other configuration) different to the host application.

In these cases, the AppInsightsTelemetryModule is problematic because once the Initialize method has been called then all other TelemetryClient instances are ignored.

We have a similar problem with one of our ITelemetryModule implementations and have got around this by keeping a reference to multiple instances of the client - i.e. if a client has a different Instrumentation key then we reference it.

Is this something that can be addressed?

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

No branches or pull requests

1 participant