-
Notifications
You must be signed in to change notification settings - Fork 5.3k
proto: force link missing v2 protos #9615
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
Changes from all commits
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 |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| #include "extensions/stat_sinks/metrics_service/grpc_metrics_proto_descriptors.h" | ||
|
|
||
| #include "envoy/service/metrics/v2/metrics_service.pb.h" | ||
|
|
||
| #include "common/common/assert.h" | ||
| #include "common/common/fmt.h" | ||
| #include "common/protobuf/protobuf.h" | ||
|
|
@@ -10,6 +12,9 @@ namespace StatSinks { | |
| namespace MetricsService { | ||
|
|
||
| void validateProtoDescriptors() { | ||
| // https://github.com/envoyproxy/envoy/issues/9639 | ||
| const envoy::service::metrics::v2::StreamMetricsMessage _dummy_v2; | ||
|
Member
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. Can this be in protobuf_link_hacks? That way we can centralize this and more easily cleanup later.
Member
Author
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. I don't know all the intricacies of the extensions build system but I thought that because this was an extension I would leave this under the extensions tree. I'll put a link to the tracking issue once I create it.
Member
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. SGTM |
||
|
|
||
| const auto method = "envoy.service.metrics.v2.MetricsService.StreamMetrics"; | ||
|
|
||
| RELEASE_ASSERT(Protobuf::DescriptorPool::generated_pool()->FindMethodByName(method) != nullptr, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you include a link to the tracking issue here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, was waiting to see what you thought. Will create and link now.