We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e9c7a7 commit b6d2e6cCopy full SHA for b6d2e6c
bottlecap/src/traces/proxy_flusher.rs
@@ -161,6 +161,7 @@ impl Flusher {
161
);
162
return Ok(());
163
} else if attempts >= FLUSH_RETRY_COUNT {
164
+ // Final attempt. Log with error level and return error.
165
let body_string = body.unwrap_or_default();
166
error!(
167
"PROXY_FLUSHER | Request failed with status {status} to {url}: {body_string} after {attempts} attempts"
@@ -170,6 +171,7 @@ impl Flusher {
170
171
message: format!("Request failed with status {status}: {body_string}"),
172
}));
173
}
174
+ // Not the final attempt. Log with info level and retry.
175
info!(
176
"PROXY_FLUSHER | Request failed with status {status} to {url}: {body:?} (attempt {attempts}/{FLUSH_RETRY_COUNT})"
177
0 commit comments