setAttribute abstract method

void setAttribute(
  1. String key,
  2. Object? value
)

Sets a single attribute. A no-op once the span has ended.

Implementation

void setAttribute(String key, Object? value);