Package org.microproxy
Interface FlowTrace.Span
- Enclosing interface:
FlowTrace
public static interface FlowTrace.Span
A span
FlowTrace.startSpan(java.lang.String) started, used by one thread at a time. Every method has a no-op
default.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault voidEnds the span, now; later calls do nothing.default voidsetAttribute(String key, Object value) Adds an attribute to the span.
-
Field Details
-
NONE
No span: every call does nothing.
-
-
Method Details
-
setAttribute
Adds an attribute to the span.- Parameters:
key- the attribute's namevalue- a value as forFlowTrace.setAttribute(java.lang.String, java.lang.Object)
-
end
Ends the span, now; later calls do nothing.- Parameters:
error- why the work failed, which gives the span an error status with this message, ornullwhen it did not
-