setCustomAttribute static method

void setCustomAttribute(
  1. String key,
  2. String value
)

Set a single custom attribute. See setCustomAttributes.

Implementation

static void setCustomAttribute(String key, String value) {
  unawaited(OpentelemetryPlatform.instance.setGlobalAttributes({key: value}));
}