You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The instrumentation key is always required so there is no good reason why we would want to create a client that doesn't have have one. As such we will add an additional (required) parameter to the ctor of TelemetryClient
To maintain (some) backwards compatibility cases, we will test the first parameter for the TelemetryChannel type and we will not raise an exception in this case.
It would be nice to be able to construct a TelemetryClient with just a key, rather than having to remember about setting it via context.
Since the first parameter can currently only be a TelemetryChannel, it seems easy enough to test for that type.
Maybe there's some reason why it makes sense to disallow this, but I can't think of it myself.
The text was updated successfully, but these errors were encountered: