Exemple #1
0
        public override void WriteSpan(Span span, Stream stream)
        {
            var protocol = new ThriftProtocol(new TStreamTransport(stream));

            SpanSerializer.Write(span, protocol);

            protocol.Flush();
        }
Exemple #2
0
        public override Span ReadSpan(Stream stream)
        {
            var protocol = new ThriftProtocol(new TStreamTransport(stream));

            return(SpanSerializer.Read(protocol));
        }