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
Hi @bmc-msft ! Thanks for reporting the issue! While it is a little annoying it is made by design. Since telemetry logs collected and sent in the background it cannot return an error during initialization process. Moreover someone can rotate key from appinsights while client is running, so the initialization is also not the place to handle this type of errors?
Is there a neat pattern to handle this type of errors we can leverage? I'm open to any suggestions.
When an invalid instrumentation key is provided, appinsights-rs will happily continue to send records even though they should all be rejected.
This behavior can be seen using an invalid instrumentation key using the example clients:
The text was updated successfully, but these errors were encountered: