All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.twitter.zipkin.gen.SpanCodec Maven / Gradle / Ivy

There is a newer version: 4.13.6
Show newest version
package com.twitter.zipkin.gen;

import com.github.kristofa.brave.internal.DefaultSpanCodec;
import java.util.List;

public interface SpanCodec {
  SpanCodec THRIFT = DefaultSpanCodec.THRIFT;
  SpanCodec JSON = DefaultSpanCodec.JSON;

  byte[] writeSpan(Span span);

  byte[] writeSpans(List spans);

  /** throws {@linkplain IllegalArgumentException} if the span couldn't be decoded */
  Span readSpan(byte[] bytes);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy