Package brave
Class ErrorParser
-
-
Field Summary
Fields Modifier and Type Field Description static ErrorParserNOOPDeprecated.Adds no tags to the span representing the operation in error.
-
Constructor Summary
Constructors Constructor Description ErrorParser()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidannotate(Object span, String value)Deprecated.Same behaviour asSpanCustomizer.annotate(String)voiderror(Throwable error, MutableSpan span)Deprecated.Used to parse errors on a subtype of MutableSpanvoiderror(Throwable error, SpanCustomizer customizer)Deprecated.Used to parse errors on a subtype of SpanCustomizerprotected voiderror(Throwable error, Object span)Deprecated.Override to change what data from the error are parsed into the span modeling it.protected Stringkey(Throwable input)Deprecated.Overrides the tag key based on the inputprotected StringparseValue(Throwable input, TraceContext context)Deprecated.Override to change what data from the input are parsed into the span modeling it.protected voidtag(Object span, String key, String message)Deprecated.Same behaviour asSpanCustomizer.tag(String, String)
-
-
-
Field Detail
-
NOOP
public static final ErrorParser NOOP
Deprecated.Adds no tags to the span representing the operation in error.
-
-
Method Detail
-
error
public final void error(Throwable error, SpanCustomizer customizer)
Deprecated.Used to parse errors on a subtype of SpanCustomizer
-
error
public final void error(Throwable error, MutableSpan span)
Deprecated.Used to parse errors on a subtype of MutableSpan
-
error
protected void error(Throwable error, Object span)
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
protected final void annotate(Object span, String value)
Deprecated.Same behaviour asSpanCustomizer.annotate(String)
-
tag
protected final void tag(Object span, String key, String message)
Deprecated.Same behaviour asSpanCustomizer.tag(String, String)
-
key
protected final String key(Throwable input)
Deprecated.Description copied from class:TagOverrides the tag key based on the input
-
parseValue
protected final String parseValue(Throwable input, TraceContext context)
Deprecated.Description copied from class:TagOverride 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.ERRORmust 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:
parseValuein classTag<Throwable>- Returns:
- The result to add as a span tag.
nullmeans no tag will be added. Note: empty string is a valid tag value!
-
-