Future<void> stopResourceWithError( DateTime timestamp, String key, Exception error, Map<String, Object?> attributes, );