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