/// <exception cref="System.IO.IOException"/> public virtual long AddSpanReceiver(SpanReceiverInfo info) { try { TraceAdminPB.AddSpanReceiverRequestProto.Builder bld = TraceAdminPB.AddSpanReceiverRequestProto .NewBuilder(); bld.SetClassName(info.GetClassName()); foreach (SpanReceiverInfo.ConfigurationPair configPair in info.configPairs) { TraceAdminPB.ConfigPair tuple = ((TraceAdminPB.ConfigPair)TraceAdminPB.ConfigPair .NewBuilder().SetKey(configPair.GetKey()).SetValue(configPair.GetValue()).Build( )); bld.AddConfig(tuple); } TraceAdminPB.AddSpanReceiverResponseProto resp = rpcProxy.AddSpanReceiver(null, ( (TraceAdminPB.AddSpanReceiverRequestProto)bld.Build())); return(resp.GetId()); } catch (ServiceException e) { throw ProtobufHelper.GetRemoteException(e); } }