From 0832c96c116f4c3a28bd22a0cdd287a3b0764c7b Mon Sep 17 00:00:00 2001 From: iximeow Date: Thu, 29 Dec 2022 19:08:01 +0000 Subject: record and present metrics --- src/ci_runner.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ci_runner.rs') diff --git a/src/ci_runner.rs b/src/ci_runner.rs index a47d298..97d8505 100644 --- a/src/ci_runner.rs +++ b/src/ci_runner.rs @@ -82,7 +82,8 @@ impl RunningJob { async fn send_metric(&mut self, name: &str, value: String) -> Result<(), String> { self.client.send(serde_json::json!({ "kind": "metric", - "value": value.to_string(), + "name": name, + "value": value, })).await .map_err(|e| format!("failed to send metric {}: {:?})", name, e)) } -- cgit v1.1