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 ofMSALPublicClientApplication
-
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 }
-
Invoked when telemetry data is received.
Declaration
Objective-C
@property (copy, nullable) MSALTelemetryCallback telemetryCallback;
Swift
var telemetryCallback: MSALTelemetryCallback? { get set }