com.twitter.zipkin.gen.SpanCodec Maven / Gradle / Ivy
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