public emitZipkinBatchArgs DeepCopy()
                {
                    var tmp0 = new emitZipkinBatchArgs();

                    if ((Spans != null) && __isset.spans)
                    {
                        tmp0.Spans = this.Spans.DeepCopy();
                    }
                    tmp0.__isset.spans = this.__isset.spans;
                    return(tmp0);
                }
Beispiel #2
0
            public async Task emitZipkinBatchAsync(List <Jaeger.Thrift.Agent.Zipkin.Span> spans, CancellationToken cancellationToken)
            {
                await OutputProtocol.WriteMessageBeginAsync(new TMessage("emitZipkinBatch", TMessageType.Oneway, SeqId), cancellationToken);

                var args = new emitZipkinBatchArgs();

                args.Spans = spans;

                await args.WriteAsync(OutputProtocol, cancellationToken);

                await OutputProtocol.WriteMessageEndAsync(cancellationToken);

                await OutputProtocol.Transport.FlushAsync(cancellationToken);
            }
Beispiel #3
0
            public async Task emitZipkinBatch_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken)
            {
                var args = new emitZipkinBatchArgs();
                await args.ReadAsync(iprot, cancellationToken);

                await iprot.ReadMessageEndAsync(cancellationToken);

                try
                {
                    await _iAsync.emitZipkinBatchAsync(args.Spans, cancellationToken);
                }
                catch (TTransportException)
                {
                    throw;
                }
                catch (Exception ex)
                {
                    Console.Error.WriteLine("Error occurred in processor:");
                    Console.Error.WriteLine(ex.ToString());
                }
            }