setCustomAttribute static method
Set a single custom attribute. See setCustomAttributes.
Implementation
static void setCustomAttribute(String key, String value) {
unawaited(OpentelemetryPlatform.instance.setGlobalAttributes({key: value}));
}
Set a single custom attribute. See setCustomAttributes.
static void setCustomAttribute(String key, String value) {
unawaited(OpentelemetryPlatform.instance.setGlobalAttributes({key: value}));
}