configureScope method
Configures the scope through the callback.
Implementation
void configureScope(ScopeCallback callback) {
if (!_isEnabled) {
_options.logger(
SentryLevel.warning,
"Instance is disabled and this 'configureScope' call is a no-op.",
);
} else {
final item = _peek();
try {
callback(item.scope);
} catch (err) {
_options.logger(
SentryLevel.error,
"Error in the 'configureScope' callback, error: $err",
);
}
}
}