public override void AddBreadcrumbImpl(Breadcrumb breadcrumb) { var level = GetBreadcrumbLevel(breadcrumb.Level); var timestamp = GetTimestamp(breadcrumb.Timestamp); SentryCocoaBridgeProxy.SentryNativeBridgeAddBreadcrumb(timestamp, breadcrumb.Message, breadcrumb.Type, breadcrumb.Category, level); }
/// <summary> /// Configures the native Android support. /// </summary> /// <param name="options">The Sentry Unity options to use.</param> public static void Configure(SentryUnityOptions options) { if (options.IosNativeSupportEnabled) { options.ScopeObserver = new IosNativeScopeObserver(options); options.EnableScopeSync = true; options.CrashedLastRun = () => { var crashedLastRun = SentryCocoaBridgeProxy.CrashedLastRun() == 1; options.DiagnosticLogger? .LogDebug("Native iOS SDK reported: 'crashedLastRun': '{0}'", crashedLastRun); return(crashedLastRun); }; ApplicationAdapter.Instance.Quitting += () => { options.DiagnosticLogger?.LogDebug("Closing the sentry-cocoa SDK"); SentryCocoaBridgeProxy.Close(); }; } }
public override void UnsetUserImpl() => SentryCocoaBridgeProxy.SentryNativeBridgeUnsetUser();
public override void SetUserImpl(User user) => SentryCocoaBridgeProxy.SentryNativeBridgeSetUser(user.Email, user.Id, user.IpAddress, user.Username);
public override void UnsetTagImpl(string key) => SentryCocoaBridgeProxy.SentryNativeBridgeUnsetTag(key);
public override void SetTagImpl(string key, string value) => SentryCocoaBridgeProxy.SentryNativeBridgeSetTag(key, value);
public override void SetExtraImpl(string key, string?value) => SentryCocoaBridgeProxy.SentryNativeBridgeSetExtra(key, value);