-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Add quic_client_stats_impl.h to QUICHE platform implementation #5832
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
Merged
alyssawilk
merged 5 commits into
envoyproxy:master
from
wu-bin:quic_platform_client_stats
Feb 5, 2019
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a7be9bb
Add quic_client_stats_impl.h to QUICHE platform implementation, with
wu-bin 294b4d0
Fix typo in QuicPlatformTest.
wu-bin 374d948
Include <string> in quic_client_stats_impl.h.
wu-bin 30aea00
Merge remote-tracking branch 'upstream/master' into quic_platform_cli…
wu-bin 68b6a7c
Add a comment for why the QUIC client stats macros are NOOP.
wu-bin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
source/extensions/quic_listeners/quiche/platform/quic_client_stats_impl.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| #pragma once | ||
|
|
||
| // NOLINT(namespace-envoy) | ||
| // | ||
| // This file is part of the QUICHE platform implementation, and is not to be | ||
| // consumed or referenced directly by other Envoy code. It serves purely as a | ||
| // porting layer for QUICHE. | ||
|
|
||
| #include <string> | ||
|
|
||
| // NOTE(wub): These macros are currently NOOP because they are supposed to be | ||
| // used by client-side stats. They should be implemented when QUIC client code | ||
| // is used by Envoy to connect to backends. | ||
|
|
||
| #define QUIC_CLIENT_HISTOGRAM_ENUM_IMPL(name, sample, enum_size, docstring) \ | ||
| do { \ | ||
| } while (0) | ||
| #define QUIC_CLIENT_HISTOGRAM_BOOL_IMPL(name, sample, docstring) \ | ||
| do { \ | ||
| } while (0) | ||
| #define QUIC_CLIENT_HISTOGRAM_TIMES_IMPL(name, sample, min, max, num_buckets, docstring) \ | ||
| do { \ | ||
| } while (0) | ||
| #define QUIC_CLIENT_HISTOGRAM_COUNTS_IMPL(name, sample, min, max, num_buckets, docstring) \ | ||
| do { \ | ||
| } while (0) | ||
|
|
||
| namespace quic { | ||
|
|
||
| inline void QuicClientSparseHistogramImpl(const std::string& /*name*/, int /*sample*/) {} | ||
|
|
||
| } // namespace quic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
On functions where we're not implementing the actual functionality, should we have comments or a document somewhere for what expect to work and what not?
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.
We can 1) add comments to quic_client_stats_impl.h, 2) add a column to the platform impl tracking spreadsheet to say it's not actually implemented.
Or both? WDYT?
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.
I'd mildly prefer something in the code just so folks don't have to dig up the spreadsheet but as long as we're tracking it I'm good :-)
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.
Added a comment in quic_client_stats_impl.h.