@@ -294,12 +294,14 @@ OptionsImpl::OptionsImpl(int argc, const char* const* argv) {
294294 stats_flush_interval_),
295295 false , 5 , " uint32_t" , cmd);
296296
297- TCLAP::ValueArg<std::string> response_header_with_latency_input (
298- " " , " response-header-with-latency-input" ,
299- " Set an optional response header name, whose values will be tracked in a latency histogram "
300- " if set. Can be used in tandem with the test server "
301- " \" emit_previous_request_delta_in_response_header\" option to get a sense of elapsed time "
302- " between request arrivals. Default: \"\" " ,
297+ TCLAP::ValueArg<std::string> response_latency_header_name (
298+ " " , " response-latency-header-name" ,
299+ " Set an optional header name that will be returned in responses, whose values will be "
300+ " tracked in a latency histogram if set. "
301+ " Can be used in tandem with the test server's response option "
302+ " \" emit_previous_request_delta_in_response_header\" to record elapsed time between request "
303+ " arrivals. "
304+ " Default: \"\" " ,
303305 false , " " , " string" , cmd);
304306
305307 Utility::parseCommand (cmd, argc, argv);
@@ -433,7 +435,7 @@ OptionsImpl::OptionsImpl(int argc, const char* const* argv) {
433435 }
434436 }
435437 TCLAP_SET_IF_SPECIFIED (stats_flush_interval, stats_flush_interval_);
436- TCLAP_SET_IF_SPECIFIED (response_header_with_latency_input, response_header_with_latency_input_ );
438+ TCLAP_SET_IF_SPECIFIED (response_latency_header_name, response_latency_header_name_ );
437439
438440 // CLI-specific tests.
439441 // TODO(oschaaf): as per mergconflicts's remark, it would be nice to aggregate
@@ -619,8 +621,8 @@ OptionsImpl::OptionsImpl(const nighthawk::client::CommandLineOptions& options) {
619621 no_duration_ = PROTOBUF_GET_WRAPPED_OR_DEFAULT (options, no_duration, no_duration_);
620622 }
621623 std::copy (options.labels ().begin (), options.labels ().end (), std::back_inserter (labels_));
622- response_header_with_latency_input_ = PROTOBUF_GET_WRAPPED_OR_DEFAULT (
623- options, response_header_with_latency_input, response_header_with_latency_input_ );
624+ response_latency_header_name_ = PROTOBUF_GET_WRAPPED_OR_DEFAULT (
625+ options, response_latency_header_name, response_latency_header_name_ );
624626
625627 validate ();
626628}
@@ -793,8 +795,8 @@ CommandLineOptionsPtr OptionsImpl::toCommandLineOptionsInternal() const {
793795 *command_line_options->add_stats_sinks () = stats_sink;
794796 }
795797 command_line_options->mutable_stats_flush_interval ()->set_value (stats_flush_interval_);
796- command_line_options->mutable_response_header_with_latency_input ()->set_value (
797- response_header_with_latency_input_ );
798+ command_line_options->mutable_response_latency_header_name ()->set_value (
799+ response_latency_header_name_ );
798800 return command_line_options;
799801}
800802
0 commit comments