- java.lang.Object
-
- io.helidon.tracing.Tag<T>
-
- Type Parameters:
T
- type of the tag
public abstract class Tag<T> extends Object
Tag abstraction that can be used withTracerBuilder.addTracerTag(String, String)
.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
create
public static Tag<String> create(String key, String value)
Create a string tag.- Parameters:
key
- tag namevalue
- tag value- Returns:
- string tag
-
create
public static Tag<Number> create(String key, Number value)
Create a numeric tag.- Parameters:
key
- tag namevalue
- tag value- Returns:
- numeric tag
-
create
public static Tag<Boolean> create(String key, boolean value)
Create a boolean tag.- Parameters:
key
- tag namevalue
- tag value- Returns:
- boolean tag
-
key
public String key()
Tag name.- Returns:
- tag name
-
value
public T value()
Tag value.- Returns:
- tag value
-
apply
public abstract void apply(Span span)
Configure this tag on the span provided.- Parameters:
span
- span to apply the tag on
-
-