We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4b2fc1 commit 20d207fCopy full SHA for 20d207f
metrics/src/key.rs
@@ -35,6 +35,12 @@ impl From<String> for KeyName {
35
KeyName(SharedString::from(name))
36
}
37
38
+
39
+impl From<std::borrow::Cow<'static, str>> for KeyName {
40
+ fn from(name: std::borrow::Cow<'static, str>) -> Self {
41
+ KeyName(SharedString::from(name))
42
+ }
43
+}
44
/// A metric identifier.
45
///
46
/// A key represents both the name and labels of a metric.
0 commit comments