diff options
author | iximeow <git@iximeow.net> | 2022-12-29 19:08:01 +0000 |
---|---|---|
committer | iximeow <git@iximeow.net> | 2022-12-29 19:08:01 +0000 |
commit | 0832c96c116f4c3a28bd22a0cdd287a3b0764c7b (patch) | |
tree | 9b58beaf733a7ded11eb8519d37d41653f1e77fe /src/ci_runner.rs | |
parent | e28b277980763b88d2828812bff2c0b9546d3d25 (diff) |
record and present metrics
Diffstat (limited to 'src/ci_runner.rs')
-rw-r--r-- | src/ci_runner.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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)) } |