We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15e92d0 commit f46db82Copy full SHA for f46db82
lading/src/blackhole/splunk_hec.rs
@@ -96,12 +96,12 @@ async fn srv(
96
97
let (parts, body) = req.into_parts();
98
let bytes = body.collect().await?.to_bytes();
99
- counter!("bytes_received", &metric_labels).increment(bytes.len() as u64);
+ counter!("bytes_received", &*labels).increment(bytes.len() as u64);
100
101
match crate::codec::decode(parts.headers.get(hyper::header::CONTENT_ENCODING), bytes) {
102
Err(response) => Ok(response),
103
Ok(body) => {
104
- counter!("decoded_bytes_received", &metric_labels).increment(body.len() as u64);
+ counter!("decoded_bytes_received", &*labels).increment(body.len() as u64);
105
106
let mut okay = Response::default();
107
*okay.status_mut() = StatusCode::OK;
0 commit comments