@@ -102,16 +102,19 @@ pub struct TowerRequestConfig {
102
102
/// create orphaned requests, pile on retries, and result in duplicate data downstream.
103
103
#[ configurable( metadata( docs:: type_unit = "seconds" ) ) ]
104
104
#[ serde( default = "default_timeout_secs" ) ]
105
+ #[ configurable( metadata( docs:: human_name = "Timeout" ) ) ]
105
106
pub timeout_secs : Option < u64 > ,
106
107
107
108
/// The time window used for the `rate_limit_num` option.
108
109
#[ configurable( metadata( docs:: type_unit = "seconds" ) ) ]
109
110
#[ serde( default = "default_rate_limit_duration_secs" ) ]
111
+ #[ configurable( metadata( docs:: human_name = "Rate Limit Duration" ) ) ]
110
112
pub rate_limit_duration_secs : Option < u64 > ,
111
113
112
114
/// The maximum number of requests allowed within the `rate_limit_duration_secs` time window.
113
115
#[ configurable( metadata( docs:: type_unit = "requests" ) ) ]
114
116
#[ serde( default = "default_rate_limit_num" ) ]
117
+ #[ configurable( metadata( docs:: human_name = "Rate Limit Number" ) ) ]
115
118
pub rate_limit_num : Option < u64 > ,
116
119
117
120
/// The maximum number of retries to make for failed requests.
@@ -124,13 +127,15 @@ pub struct TowerRequestConfig {
124
127
/// The maximum amount of time to wait between retries.
125
128
#[ configurable( metadata( docs:: type_unit = "seconds" ) ) ]
126
129
#[ serde( default = "default_retry_max_duration_secs" ) ]
130
+ #[ configurable( metadata( docs:: human_name = "Max Retry Duration" ) ) ]
127
131
pub retry_max_duration_secs : Option < u64 > ,
128
132
129
133
/// The amount of time to wait before attempting the first retry for a failed request.
130
134
///
131
135
/// After the first retry has failed, the fibonacci sequence is used to select future backoffs.
132
136
#[ configurable( metadata( docs:: type_unit = "seconds" ) ) ]
133
137
#[ serde( default = "default_retry_initial_backoff_secs" ) ]
138
+ #[ configurable( metadata( docs:: human_name = "Retry Initial Backoff" ) ) ]
134
139
pub retry_initial_backoff_secs : Option < u64 > ,
135
140
136
141
#[ configurable( derived) ]
0 commit comments