@@ -75,6 +75,9 @@ struct OtlpHttpClientOptions
75
75
// Additional HTTP headers
76
76
OtlpHeaders http_headers;
77
77
78
+ // Retry policy for select failure codes
79
+ ext::http::client::RetryPolicy retry_policy;
80
+
78
81
// Concurrent requests
79
82
std::size_t max_concurrent_requests = 64 ;
80
83
@@ -107,6 +110,10 @@ struct OtlpHttpClientOptions
107
110
bool input_console_debug,
108
111
std::chrono::system_clock::duration input_timeout,
109
112
const OtlpHeaders &input_http_headers,
113
+ std::uint32_t input_retry_policy_max_attempts,
114
+ std::chrono::duration<float > input_retry_policy_initial_backoff,
115
+ std::chrono::duration<float > input_retry_policy_max_backoff,
116
+ float input_retry_policy_backoff_multiplier,
110
117
const std::shared_ptr<sdk::common::ThreadInstrumentation> &input_thread_instrumentation,
111
118
std::size_t input_concurrent_sessions = 64 ,
112
119
std::size_t input_max_requests_per_connection = 8 ,
@@ -131,6 +138,8 @@ struct OtlpHttpClientOptions
131
138
console_debug(input_console_debug),
132
139
timeout(input_timeout),
133
140
http_headers(input_http_headers),
141
+ retry_policy{input_retry_policy_max_attempts, input_retry_policy_initial_backoff,
142
+ input_retry_policy_max_backoff, input_retry_policy_backoff_multiplier},
134
143
max_concurrent_requests (input_concurrent_sessions),
135
144
max_requests_per_connection (input_max_requests_per_connection),
136
145
user_agent (input_user_agent),
0 commit comments