Ejemplo n.º 1
0
            public async global::System.Threading.Tasks.Task emitZipkinBatch_ProcessAsync(int seqid, TProtocol iprot, TProtocol oprot, CancellationToken cancellationToken)
            {
                var args = new InternalStructs.emitZipkinBatchArgs();
                await args.ReadAsync(iprot, cancellationToken);

                await iprot.ReadMessageEndAsync(cancellationToken);

                try
                {
                    await _iAsync.emitZipkinBatchAsync(args.Spans, cancellationToken);
                }
                catch (TTransportException)
                {
                    throw;
                }
                catch (Exception ex)
                {
                    var sErr = $"Error occurred in {GetType().FullName}: {ex.Message}";
                    if (_logger != null)
                    {
                        _logger.LogError(ex, sErr);
                    }
                    else
                    {
                        Console.Error.WriteLine(sErr);
                    }
                }
            }
Ejemplo n.º 2
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());
                }
            }