SpanReceiverInfoBuilder factory = new SpanReceiverInfoBuilder(className); String prefix = ""; for (int i = 0; i < args.size(); ++i) { factory.addConfigurationPair(key, value); configsOut.print(prefix + key + " = " + value); prefix = ", "; long id = remote.addSpanReceiver(factory.build()); System.out.println("Added trace span receiver " + id + " with configuration " + configStreamStr);
@Override public AddSpanReceiverResponseProto addSpanReceiver( RpcController controller, AddSpanReceiverRequestProto req) throws ServiceException { try { SpanReceiverInfoBuilder factory = new SpanReceiverInfoBuilder(req.getClassName()); for (ConfigPair config : req.getConfigList()) { factory.addConfigurationPair(config.getKey(), config.getValue()); } long id = server.addSpanReceiver(factory.build()); return AddSpanReceiverResponseProto.newBuilder().setId(id).build(); } catch (IOException e) { throw new ServiceException(e); } }
SpanReceiverInfoBuilder factory = new SpanReceiverInfoBuilder(className); String prefix = ""; for (int i = 0; i < args.size(); ++i) { factory.addConfigurationPair(key, value); configsOut.print(prefix + key + " = " + value); prefix = ", "; long id = remote.addSpanReceiver(factory.build()); System.out.println("Added trace span receiver " + id + " with configuration " + configStreamStr);
SpanReceiverInfoBuilder factory = new SpanReceiverInfoBuilder(className); String prefix = ""; for (int i = 0; i < args.size(); ++i) { factory.addConfigurationPair(key, value); configsOut.print(prefix + key + " = " + value); prefix = ", "; long id = remote.addSpanReceiver(factory.build()); System.out.println("Added trace span receiver " + id + " with configuration " + configStreamStr);
SpanReceiverInfoBuilder factory = new SpanReceiverInfoBuilder(className); String prefix = ""; for (int i = 0; i < args.size(); ++i) { factory.addConfigurationPair(key, value); configsOut.print(prefix + key + " = " + value); prefix = ", "; long id = remote.addSpanReceiver(factory.build()); System.out.println("Added trace span receiver " + id + " with configuration " + configStreamStr);
SpanReceiverInfoBuilder factory = new SpanReceiverInfoBuilder(className); String prefix = ""; for (int i = 0; i < args.size(); ++i) { factory.addConfigurationPair(key, value); configsOut.print(prefix + key + " = " + value); prefix = ", "; long id = remote.addSpanReceiver(factory.build()); System.out.println("Added trace span receiver " + id + " with configuration " + configStreamStr);
@Override public AddSpanReceiverResponseProto addSpanReceiver( RpcController controller, AddSpanReceiverRequestProto req) throws ServiceException { try { SpanReceiverInfoBuilder factory = new SpanReceiverInfoBuilder(req.getClassName()); for (ConfigPair config : req.getConfigList()) { factory.addConfigurationPair(config.getKey(), config.getValue()); } long id = server.addSpanReceiver(factory.build()); return AddSpanReceiverResponseProto.newBuilder().setId(id).build(); } catch (IOException e) { throw new ServiceException(e); } }
@Override public AddSpanReceiverResponseProto addSpanReceiver( RpcController controller, AddSpanReceiverRequestProto req) throws ServiceException { try { SpanReceiverInfoBuilder factory = new SpanReceiverInfoBuilder(req.getClassName()); for (ConfigPair config : req.getConfigList()) { factory.addConfigurationPair(config.getKey(), config.getValue()); } long id = server.addSpanReceiver(factory.build()); return AddSpanReceiverResponseProto.newBuilder().setId(id).build(); } catch (IOException e) { throw new ServiceException(e); } }
@Override public AddSpanReceiverResponseProto addSpanReceiver( RpcController controller, AddSpanReceiverRequestProto req) throws ServiceException { try { SpanReceiverInfoBuilder factory = new SpanReceiverInfoBuilder(req.getClassName()); for (ConfigPair config : req.getConfigList()) { factory.addConfigurationPair(config.getKey(), config.getValue()); } long id = server.addSpanReceiver(factory.build()); return AddSpanReceiverResponseProto.newBuilder().setId(id).build(); } catch (IOException e) { throw new ServiceException(e); } }
@Override public AddSpanReceiverResponseProto addSpanReceiver( RpcController controller, AddSpanReceiverRequestProto req) throws ServiceException { try { SpanReceiverInfoBuilder factory = new SpanReceiverInfoBuilder(req.getClassName()); for (ConfigPair config : req.getConfigList()) { factory.addConfigurationPair(config.getKey(), config.getValue()); } long id = server.addSpanReceiver(factory.build()); return AddSpanReceiverResponseProto.newBuilder().setId(id).build(); } catch (IOException e) { throw new ServiceException(e); } }