public override void WriteSpan(Span span, Stream stream) { var protocol = new ThriftProtocol(new TStreamTransport(stream)); SpanSerializer.Write(span, protocol); protocol.Flush(); }