Package brave
Class ErrorParser
public class ErrorParser extends Tag<Throwable>
Deprecated.
Since 5.12 Use Tags#ERROR or defer to
ZipkinSpanHandler
-
Field Summary
Fields Modifier and Type Field Description static ErrorParser
NOOP
Deprecated.Adds no tags to the span representing the operation in error. -
Constructor Summary
Constructors Constructor Description ErrorParser()
Deprecated. -
Method Summary
Modifier and Type Method Description protected void
annotate(Object span, String value)
Deprecated.Same behaviour asSpanCustomizer.annotate(String)
void
error(Throwable error, MutableSpan span)
Deprecated.Used to parse errors on a subtype of MutableSpanvoid
error(Throwable error, SpanCustomizer customizer)
Deprecated.Used to parse errors on a subtype of SpanCustomizerprotected void
error(Throwable error, Object span)
Deprecated.Override to change what data from the error are parsed into the span modeling it.protected String
key(Throwable input)
Deprecated.Overrides the tag key based on the inputprotected String
parseValue(Throwable input, TraceContext context)
Deprecated.Override to change what data from the input are parsed into the span modeling it.protected void
tag(Object span, String key, String message)
Deprecated.Same behaviour asSpanCustomizer.tag(String, String)
-
Field Details
-
NOOP
Deprecated.Adds no tags to the span representing the operation in error.
-
-
Constructor Details
-
ErrorParser
public ErrorParser()Deprecated.
-
-
Method Details
-
error
Deprecated.Used to parse errors on a subtype of SpanCustomizer -
error
Deprecated.Used to parse errors on a subtype of MutableSpan -
error
Deprecated.Override to change what data from the error are parsed into the span modeling it. By default, this tags "error" as the message or simple name of the type. -
annotate
Deprecated.Same behaviour asSpanCustomizer.annotate(String)
-
tag
Deprecated.Same behaviour asSpanCustomizer.tag(String, String)
-
key
Deprecated.Description copied from class:Tag
Overrides the tag key based on the input -
parseValue
Deprecated.Description copied from class:Tag
Override to change what data from the input are parsed into the span modeling it. Any exceptions will be logged and ignored.Note: Overrides of
Tags.ERROR
must return a valid value when {@param context} isnull
, even if that value is "" (empty string). Otherwise, error spans will not be marked as such.- Specified by:
parseValue
in classTag<Throwable>
- Returns:
- The result to add as a span tag.
null
means no tag will be added. Note: empty string is a valid tag value!
-