We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 710ff46 commit 3aeb64aCopy full SHA for 3aeb64a
1 file changed
aggregation_mode/gateway/src/metrics.rs
@@ -38,7 +38,7 @@ impl GatewayMetrics {
38
39
let mut buffer = Vec::new();
40
if let Err(e) = encoder.encode(®istry.gather(), &mut buffer) {
41
- eprintln!("could not encode prometheus metrics: {e}");
+ tracing::error!("could not encode prometheus metrics: {e}");
42
};
43
let res = String::from_utf8(buffer.clone())
44
.inspect_err(|e| eprintln!("prometheus metrics could not be parsed correctly: {e}"))
0 commit comments