Skip to content
Discussion options

You must be logged in to vote

When running Vector in debug mode you are likely to see Sending HTTP request. logs.

impl<T: HttpBody> InternalEvent for AboutToSendHttpRequest<'_, T> {
fn emit(self) {
debug!(
message = "Sending HTTP request.",
uri = %self.request.uri(),
method = %self.request.method(),
version = ?self.request.version(),
headers = ?remove_sensitive(self.request.headers()),
body = %FormatBody(self.request.body()),
);
counter!("http_client_requests_sent_total", "method" => self.request.method().to_string())
.increment(1);
}
}

For information on controlling lo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pront
Comment options

Answer selected by pront
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
needs: more info Needs more info from author. The issue is missing a configuration, logs or benchmarks.
3 participants