Interface TraceContextListener

All Known Implementing Classes:
Log4jMdcProvider, Slf4jMdcProvider

public interface TraceContextListener
A listener that gets notified when trace contexts are started and closed. Implementations should be very quick.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when a trace context was closed.
    void
    Called when a trace context was opened.
  • Method Details

    • contextOpened

      void contextOpened(TraceContext context)
      Called when a trace context was opened.
      Parameters:
      context - the trace context
    • contextClosed

      void contextClosed(TraceContext context)
      Called when a trace context was closed.
      Parameters:
      context - the trace context