Skip to content

Commit 3aeb64a

Browse files
use tracing::error instead of eprintln
1 parent 710ff46 commit 3aeb64a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aggregation_mode/gateway/src/metrics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl GatewayMetrics {
3838

3939
let mut buffer = Vec::new();
4040
if let Err(e) = encoder.encode(&registry.gather(), &mut buffer) {
41-
eprintln!("could not encode prometheus metrics: {e}");
41+
tracing::error!("could not encode prometheus metrics: {e}");
4242
};
4343
let res = String::from_utf8(buffer.clone())
4444
.inspect_err(|e| eprintln!("prometheus metrics could not be parsed correctly: {e}"))

0 commit comments

Comments
 (0)