Class StackdriverV2Encoder

java.lang.Object
zipkin2.reporter.stackdriver.brave.StackdriverV2Encoder
All Implemented Interfaces:
zipkin2.reporter.BytesEncoder<brave.handler.MutableSpan>

public class StackdriverV2Encoder extends Object implements zipkin2.reporter.BytesEncoder<brave.handler.MutableSpan>
  • Constructor Details

    • StackdriverV2Encoder

      public StackdriverV2Encoder(brave.Tag<Throwable> errorTag)
  • Method Details

    • encoding

      public zipkin2.reporter.Encoding encoding()
      Specified by:
      encoding in interface zipkin2.reporter.BytesEncoder<brave.handler.MutableSpan>
    • sizeInBytes

      public int sizeInBytes(brave.handler.MutableSpan input)
      Specified by:
      sizeInBytes in interface zipkin2.reporter.BytesEncoder<brave.handler.MutableSpan>
    • encode

      public byte[] encode(brave.handler.MutableSpan span)
      This encodes a TraceSpan message prefixed by a potentially padded 32 character trace ID
      Specified by:
      encode in interface zipkin2.reporter.BytesEncoder<brave.handler.MutableSpan>