microsoft-authentication-library-for-go icon indicating copy to clipboard operation
microsoft-authentication-library-for-go copied to clipboard

Observability mechanisms

Open bgavrilMS opened this issue 3 years ago • 3 comments

Please see https://identitydivision.visualstudio.com/DevEx/_git/AuthLibrariesApiReview/pullrequest/4733

The gist of it is:

  • add a few metrics as part of AuthenticationResult such as "time spent in cache", "time spent in http" etc.
  • small logging improvements
  • review telemetry

bgavrilMS avatar Jan 12 '22 15:01 bgavrilMS

I agree that this is a critical aspect of MSALs, but it can be added later as it does not imply breaking changes.

bgavrilMS avatar Feb 06 '23 13:02 bgavrilMS

I need to read through observability stuff. In Go you either end up with logs doing observability (bad) or observability that is tied to the Context object, that way it can flow through the entire call chain. One of the best ways to do it is using OTEL. Don't know how much OTEL support MSAL's other libraries have.

One of the keys to GA should be making sure we have Context support on all public methods/interfaces so this is easy to instrument later.

element-of-surprise avatar Feb 06 '23 23:02 element-of-surprise

I need to read through observability stuff. In Go you either end up with logs doing observability (bad) or observability that is tied to the Context object, that way it can flow through the entire call chain. One of the best ways to do it is using OTEL. Don't know how much OTEL support MSAL's other libraries have.

One of the keys to GA should be making sure we have Context support on all public methods/interfaces so this is easy to instrument later.

OpenTelemetry support is being considered, we don't have it yet. I think observability can be added later than this GA. Absolutely agree about Context support on all public methods.

bgavrilMS avatar Feb 07 '23 12:02 bgavrilMS