Class BinaryFormat.NoopBinaryFormat

java.lang.Object
io.opencensus.trace.propagation.BinaryFormat
io.opencensus.trace.propagation.BinaryFormat.NoopBinaryFormat
Enclosing class:
BinaryFormat

private static final class BinaryFormat.NoopBinaryFormat extends BinaryFormat
  • Constructor Details

    • NoopBinaryFormat

      private NoopBinaryFormat()
  • Method Details

    • toByteArray

      public byte[] toByteArray(SpanContext spanContext)
      Description copied from class: BinaryFormat
      Serializes a SpanContext into a byte array using the binary format.
      Overrides:
      toByteArray in class BinaryFormat
      Parameters:
      spanContext - the SpanContext to serialize.
      Returns:
      the serialized binary value.
    • fromByteArray

      public SpanContext fromByteArray(byte[] bytes)
      Description copied from class: BinaryFormat
      Parses the SpanContext from a byte array using the binary format.
      Overrides:
      fromByteArray in class BinaryFormat
      Parameters:
      bytes - a binary encoded buffer from which the SpanContext will be parsed.
      Returns:
      the parsed SpanContext.