MSALTelemetryConfig

Objective-C

@interface MSALTelemetryConfig : NSObject

Swift

class MSALTelemetryConfig : NSObject

MSAL configuration interface responsible for setting up MSAL telemetry callback and configuring telemetry collection behavior.

Note

Configuration changes inside MSALTelemetryConfig will apply to all instances of MSALPublicClientApplication

Configuring telemetry collection

  • Setting piiEnabled to YES, will allow MSAL to return fields with user information in the telemetry events. MSAL does not send telemetry data by itself to any server. If apps want to collect MSAL telemetry with user information they must setup the telemetry callback and set this flag on. By default MSAL will not return any user information in telemetry.

    Declaration

    Objective-C

    @property BOOL piiEnabled;

    Swift

    var piiEnabled: Bool { get set }
  • If set YES, telemetry events are only dispatched when errors occurred; If set NO, MSAL will dispatch all events.

    Declaration

    Objective-C

    @property BOOL notifyOnFailureOnly;

    Swift

    var notifyOnFailureOnly: Bool { get set }

Listening to telemetry events

Unavailable initializers

  • Unavailable

    Use class properties instead.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Unavailable

    Use class properties instead.

    Declaration

    Objective-C

    + (nonnull instancetype)new;