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
    Modifier and Type
    Field
    Description
    static final FlowTrace.Span
    No span: every call does nothing.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    end(String error)
    Ends the span, now; later calls do nothing.
    default void
    setAttribute(String key, Object value)
    Adds an attribute to the span.
  • Field Details

    • NONE

      static final FlowTrace.Span NONE
      No span: every call does nothing.
  • Method Details

    • setAttribute

      default void setAttribute(String key, Object value)
      Adds an attribute to the span.
      Parameters:
      key - the attribute's name
      value - a value as for FlowTrace.setAttribute(java.lang.String, java.lang.Object)
    • end

      default void end(String error)
      Ends the span, now; later calls do nothing.
      Parameters:
      error - why the work failed, which gives the span an error status with this message, or null when it did not