Exemplo n.º 1
0
        public override void WriteSpan(Span span, Stream stream)
        {
            var protocol = new ThriftProtocol(new TStreamTransport(stream));

            SpanSerializer.Write(span, protocol);

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

            return(SpanSerializer.Read(protocol));
        }