@Immutable public final class BooleanAttributeSetter extends Object
| Modifier and Type | Method and Description |
|---|---|
static BooleanAttributeSetter |
create(String attributeKey)
Returns a new attribute setter.
|
String |
key()
Returns the attribute name.
|
void |
set(Span span,
boolean value)
Sets the attribute on the provided span.
|
public static BooleanAttributeSetter create(String attributeKey)
attributeKey - the attribute namepublic String key()
public void set(Span span, boolean value)
span - the span to add the attribute tovalue - the value for this attribute