setCustomKey method

  1. @override
Future<void> setCustomKey(
  1. String key,
  2. Object value
)
override

Implementation

@override
Future<void> setCustomKey(String key, Object value) async {
  if (isReady) {
    try {
      await Sentry.configureScope((scope) {
        scope.setContexts(key, value);
      });
    } catch (e) {
      _printDebug(
        '$providerName: Failed to set custom key: $e, trace: ${StackTrace.current}',
      );
    }
  }
}