Class ZipkinState

  • All Implemented Interfaces:
    org.apache.camel.SafeCopyProperty

    public final class ZipkinState
    extends Object
    implements org.apache.camel.SafeCopyProperty
    The state of the zipkin trace which we store on the Exchange

    This is needed to keep track of of correlating when an existing span is calling downstream service(s) and therefore must be able to correlate those service calls with the parent span.

    • Constructor Detail

      • ZipkinState

        public ZipkinState()
    • Method Detail

      • pushClientSpan

        public void pushClientSpan​(brave.Span span)
      • popClientSpan

        public brave.Span popClientSpan()
      • pushServerSpan

        public void pushServerSpan​(brave.Span span)
      • popServerSpan

        public brave.Span popServerSpan()
      • peekServerSpan

        public brave.Span peekServerSpan()
      • safeCopy

        public ZipkinState safeCopy()
        Specified by:
        safeCopy in interface org.apache.camel.SafeCopyProperty