Skip to content

Commit 9721559

Browse files
committed
use std::get with bigtable metrics
1 parent a943ba2 commit 9721559

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

google/cloud/bigtable/internal/operation_context_factory.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,15 @@ void MetricsOperationContextFactory::InitializeProvider(
214214
auto& labels = *resource.mutable_labels();
215215
auto const& attributes = pda.attributes.GetAttributes();
216216
labels[kProjectLabel] =
217-
absl::get<std::string>(attributes.find(kProjectLabel)->second);
217+
std::get<std::string>(attributes.find(kProjectLabel)->second);
218218
labels[kInstanceLabel] =
219-
absl::get<std::string>(attributes.find(kInstanceLabel)->second);
219+
std::get<std::string>(attributes.find(kInstanceLabel)->second);
220220
labels[kTableLabel] =
221-
absl::get<std::string>(attributes.find(kTableLabel)->second);
221+
std::get<std::string>(attributes.find(kTableLabel)->second);
222222
labels[kClusterLabel] =
223-
absl::get<std::string>(attributes.find(kClusterLabel)->second);
223+
std::get<std::string>(attributes.find(kClusterLabel)->second);
224224
labels[kZoneLabel] =
225-
absl::get<std::string>(attributes.find(kZoneLabel)->second);
225+
std::get<std::string>(attributes.find(kZoneLabel)->second);
226226
return std::make_pair(labels[kProjectLabel], resource);
227227
};
228228

0 commit comments

Comments
 (0)