T - type of the tagpublic abstract class Tag<T> extends Object
TracerBuilder.addTracerTag(String, String).| Modifier and Type | Method and Description |
|---|---|
abstract void |
apply(Span span)
Configure this tag on the span provided.
|
static Tag<Boolean> |
create(String key,
boolean value)
Create a boolean tag.
|
static Tag<Number> |
create(String key,
Number value)
Create a numeric tag.
|
static Tag<String> |
create(String key,
String value)
Create a string tag.
|
boolean |
equals(Object o) |
int |
hashCode() |
String |
key()
Tag name.
|
String |
toString() |
T |
value()
Tag value.
|
public static Tag<String> create(String key, String value)
key - tag namevalue - tag valuepublic static Tag<Number> create(String key, Number value)
key - tag namevalue - tag valuepublic static Tag<Boolean> create(String key, boolean value)
key - tag namevalue - tag valuepublic String key()
public T value()
public abstract void apply(Span span)
span - span to apply the tag onCopyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.