Sets a single attribute. A no-op once the span has ended.
void setAttribute(String key, Object? value);