Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit ab82e5f

Browse files
authored
Metric: Add LabelKey type that has key and description. (#57)
1 parent 562994b commit ab82e5f

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

opencensus/proto/stats/metrics/metrics.proto

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,17 @@ message MetricDescriptor {
7575
}
7676
Type type = 4;
7777

78-
// TODO: Consider to add LabelInfo{key, description} if needed.
7978
// The label keys associated with the metric descriptor.
80-
repeated string label_keys = 5;
79+
repeated LabelKey label_keys = 5;
80+
}
81+
82+
// Defines a label key associated with a metric descriptor.
83+
message LabelKey {
84+
// The key for the label.
85+
string key = 1;
86+
87+
// A human-readable description of what this label key represents.
88+
string description = 2;
8189
}
8290

8391
// A collection of data points that describes the time-varying values

0 commit comments

Comments
 (0)