-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Update envoy SHA to 6/18 #3387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update envoy SHA to 6/18 #3387
Changes from all commits
4f91ab9
be7a960
692717f
07e9f51
bc1ce0e
eff899b
abe68f5
e958e8a
c7434a9
0787301
d9f2af5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,7 @@ | |
|
|
||
| #include "extensions/stackdriver/common/utils.h" | ||
|
|
||
| #include "extensions/common/util.h" | ||
| #include "extensions/stackdriver/common/constants.h" | ||
| #include "grpcpp/grpcpp.h" | ||
|
|
||
|
|
@@ -106,9 +107,12 @@ std::string getGCEInstanceUID(const ::Wasm::Common::FlatNode &node) { | |
| } | ||
|
|
||
| if (name.size() > 0 && project && location) { | ||
| return absl::StrCat("//compute.googleapis.com/projects/", | ||
| project->value()->string_view(), "/zones/", | ||
| location->value()->string_view(), "/instances/", name); | ||
| return absl::StrCat( | ||
| "//compute.googleapis.com/projects/", | ||
| ::Wasm::Common::toAbslStringView(project->value()->string_view()), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: doesn't absl StrCat handle std::string_view natively?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It doesn't - it supports
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @PiotrSikora Could you clarify wrt null?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch - |
||
| "/zones/", | ||
| ::Wasm::Common::toAbslStringView(location->value()->string_view()), | ||
| "/instances/", ::Wasm::Common::toAbslStringView(name)); | ||
| } | ||
|
|
||
| return ""; | ||
|
|
@@ -131,8 +135,9 @@ std::string getOwner(const ::Wasm::Common::FlatNode &node) { | |
| } | ||
| auto created_by = platform_metadata->LookupByKey(kGCECreatedByKey.data()); | ||
| if (created_by) { | ||
| return absl::StrCat("//compute.googleapis.com/", | ||
| created_by->value()->string_view()); | ||
| return absl::StrCat( | ||
| "//compute.googleapis.com/", | ||
| ::Wasm::Common::toAbslStringView(created_by->value()->string_view())); | ||
| } | ||
|
|
||
| return getGCEInstanceUID(node); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.