Interface TraceInterceptor

All Known Implementing Classes:
AbstractTraceInterceptor

public interface TraceInterceptor
  • Method Details

    • onTraceComplete

      Collection<? extends MutableSpan> onTraceComplete(Collection<? extends MutableSpan> trace)
      After a trace is "complete" but before it is written, it is provided to the interceptors to modify. The result following all interceptors is sampled then sent to the trace writer.
      Parameters:
      trace - - The collection of spans that represent a trace. Can be modified in place. Order of spans should not be relied upon.
      Returns:
      A potentially modified or replaced collection of spans. Must not be null.
    • priority

      int priority()
      Returns:
      A unique priority for sorting relative to other TraceInterceptors. Unique because interceptors are stored in a sorted set, so duplicates will not be added.