getAttribute method
Implementation
@override
Future<String?> getAttribute(String key) async {
if (!kCanTrace) {
logger?.debug(this, 'Firebase Http Metric is not allowed to trace');
return null;
}
if (kInstance == null) {
logger?.error(this, 'Firebase Http Metric is not initialized');
return null;
}
if (key.isEmpty) {
logger?.error(this, 'Key cannot be empty when getting the attribute');
return null;
}
return kInstance?.getAttribute(key);
}