Skip to content

codec: add metadata_not_supported_error to HTTP/1 codec stats#7801

Merged
mattklein123 merged 5 commits intoenvoyproxy:masterfrom
soya3129:h1stats
Aug 6, 2019
Merged

codec: add metadata_not_supported_error to HTTP/1 codec stats#7801
mattklein123 merged 5 commits intoenvoyproxy:masterfrom
soya3129:h1stats

Conversation

@soya3129
Copy link
Contributor

@soya3129 soya3129 commented Aug 1, 2019

Description: introduce stats to HTTP/1 codec. Add metadata_not_supported_error.
Risk Level: Low. stats change only.
Testing: Unit test.
Docs Changes: N/A
Release Notes:

Yang Song added 2 commits August 1, 2019 18:54
Signed-off-by: Yang Song <yasong@google.com>
Signed-off-by: Yang Song <yasong@google.com>
Copy link
Contributor

@alyssawilk alyssawilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM modulo needing docs.
Once they're in you can /assign Matt for final pass

switch (type) {
case Type::HTTP1: {
codec_ = std::make_unique<Http1::ClientConnectionImpl>(*connection_, *this);
codec_ = std::make_unique<Http1::ClientConnectionImpl>(*connection_,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind updating docs/root/configuration/http_conn_man/stats.rst ?

Each codec has the option of adding per-codec statistics. Currently only http2 has codec stats. needs updating, and a section on Http1 codec stats?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Thanks!

@alyssawilk alyssawilk self-assigned this Aug 1, 2019
Signed-off-by: Yang Song <yasong@google.com>
@mattklein123 mattklein123 self-assigned this Aug 2, 2019
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one small doc comment. Thank you! Please also merge master to fix CI.

/wait

:header: Name, Type, Description
:widths: 1, 1, 2

metadata_not_supported_error, Counter, Total number of parsing metadata with http1 error
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this description is quite right. Maybe something like "Total number of metadata frames dropped during HTTP/1 encoding" or something like that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Thanks!

Yang Song added 2 commits August 6, 2019 17:35
Signed-off-by: Yang Song <yasong@google.com>
Signed-off-by: Yang Song <yasong@google.com>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mattklein123
Copy link
Member

/retest

@repokitteh-read-only
Copy link

🔨 rebuilding ci/circleci: clang_tidy (failed build)

🐱

Caused by: a #7801 (comment) was created by @mattklein123.

see: more, trace.

@mattklein123
Copy link
Member

/azp run envoy-linux

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mattklein123 mattklein123 merged commit 3286ea0 into envoyproxy:master Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants