java.lang.Object
io.helidon.tracing.Tag<T>
- Type Parameters:
T
- type of the tag
Tag abstraction that can be used with
TracerBuilder.addTracerTag(String, String)
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Tag source (a type that can create tags). -
Field Summary
Modifier and TypeFieldDescriptionstatic final Tag.TagSource
<String> Tag marking a component that triggers this span.static final Tag.TagSource
<String> Tag marking a Database statement.static final Tag.TagSource
<String> Tag marking a Database type.static final Tag.TagSource
<String> Http method used to invoke this request.static final Tag.TagSource
<Integer> Status code that was returned.static final Tag.TagSource
<String> URL of the HTTP request.static final Tag.TagSource
<String> HTTP version. -
Method Summary
Modifier and TypeMethodDescriptionabstract void
Configure this tag on the span provided.abstract void
apply
(Span.Builder<?> spanBuilder) Configure this tag on the span builder.Create a boolean tag.Create a numeric tag.Create a string tag.boolean
int
hashCode()
key()
Tag name.toString()
value()
Tag value.
-
Field Details
-
COMPONENT
Tag marking a component that triggers this span. -
HTTP_METHOD
Http method used to invoke this request. -
HTTP_URL
URL of the HTTP request. -
HTTP_VERSION
HTTP version. -
HTTP_STATUS
Status code that was returned. -
DB_TYPE
Tag marking a Database type. -
DB_STATEMENT
Tag marking a Database statement.
-
-
Method Details
-
create
Create a string tag.- Parameters:
key
- tag namevalue
- tag value- Returns:
- string tag
-
create
Create a numeric tag.- Parameters:
key
- tag namevalue
- tag value- Returns:
- numeric tag
-
create
Create a boolean tag.- Parameters:
key
- tag namevalue
- tag value- Returns:
- boolean tag
-
key
Tag name.- Returns:
- tag name
-
value
Tag value.- Returns:
- tag value
-
equals
-
hashCode
public int hashCode() -
toString
-
apply
Configure this tag on the span provided.- Parameters:
span
- span to apply the tag on
-
apply
Configure this tag on the span builder.- Parameters:
spanBuilder
- span builder to apply the tag on
-