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