]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/common: fix metric label dumping
authorAishwarya Mathuria <amathuri@redhat.com>
Thu, 26 Feb 2026 11:04:40 +0000 (11:04 +0000)
committerAishwarya Mathuria <amathuri@redhat.com>
Mon, 2 Mar 2026 11:24:47 +0000 (11:24 +0000)
Seastar's escaped_string wrapper no longer implicitly converts to a string type.
Update dump_metric_value to call .value() to access the underlying string.

See: https://github.com/scylladb/seastar/commit/49c34b81bcae5bec3bf7f12bb91bdfd859326de0

Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
src/crimson/common/metrics_helpers.h

index 443a62b13a67611274089b1c605f63aa12271f77..bd63404c1026ce2b310d891052cdb71f31de86a7 100644 (file)
@@ -24,7 +24,7 @@ void dump_metric_value(
 {
   f->open_object_section(full_name);
   for (const auto& [key, value] : labels) {
-    f->dump_string(key, value);
+    f->dump_string(key, value.value());
   }
   auto value_name = "value";
   switch (auto v = metric(); v.type()) {