We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12ddf77 commit 428dfe4Copy full SHA for 428dfe4
2 files changed
google/cloud/bigtable/internal/metrics.cc
@@ -39,11 +39,12 @@ auto constexpr kMeterInstrumentationScopeVersion = "v1";
39
// time.
40
LabelMap IntoLabelMap(ResourceLabels const& r, DataLabels const& d,
41
std::set<std::string> const& filtered_data_labels) {
42
- LabelMap labels = {{"project_id", r.project_id},
43
- {"instance", r.instance},
44
- {"table", r.table},
45
- {"cluster", r.cluster},
46
- {"zone", r.zone}};
+ LabelMap labels = {
+ {"project_id", r.project_id},
+ {"instance", r.instance},
+ {"table", r.table},
+ {"cluster", r.cluster.empty() ? "<unspecified>" : r.cluster},
47
+ {"zone", r.zone.empty() ? "global" : r.zone}};
48
std::map<std::string, std::string> data = {{
49
{"method", d.method},
50
{"streaming", d.streaming},
0 commit comments