Skip to content
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

ext_proc: observability mode with deferred stream closure (part 2) #34491

Merged
merged 24 commits into from
Jun 27, 2024

Conversation

tyxia
Copy link
Member

@tyxia tyxia commented Jun 3, 2024

Below are two key parts of this PR, they are added together because observability mode is the only use case (thus test case) of deferred stream closure (at the moment).

(1) Deferred stream closure (Part 2):

(2) Observability mode:

  • Implement the observability mode on all phase of Http request and response life cycle
  • TODO: Next PR will add the logging/billing support

Testing: Integration test + unit test.

Copy link

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #34491 was opened by tyxia.

see: more, trace.

tyxia added 14 commits June 3, 2024 19:51
Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: tyxia <tyxia@google.com>
…_deferred

Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: tyxia <tyxia@google.com>
…_deferred

Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: tyxia <tyxia@google.com>
…_deferred

Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: tyxia <tyxia@google.com>
@tyxia tyxia marked this pull request as ready for review June 6, 2024 00:25
@tyxia
Copy link
Member Author

tyxia commented Jun 6, 2024

/assign @htuch @yanavlasov

PTAL, Thanks!

@htuch htuch changed the title ext_proc: deferred stream closure (part 2) + observability mode ext_proc: observability mode with deferred stream closure (part 2) Jun 6, 2024
@htuch
Copy link
Member

htuch commented Jun 6, 2024

I modified the PR title to make it clearer this is primarily about o11y mode.

Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

One quick observation - this is a major addition to ext_proc and has tricky semantics. I think it would be ideal to have some more unit tests, since the weight of behavioral testing here is in integration testing.

tyxia added 3 commits June 7, 2024 00:14
Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: tyxia <tyxia@google.com>
@alyssawilk
Copy link
Contributor

@yanavlasov PTAL (or swap reviewers)

…_deferred

Signed-off-by: tyxia <tyxia@google.com>
@yanavlasov
Copy link
Contributor

/wait-any

@tyxia
Copy link
Member Author

tyxia commented Jun 18, 2024

/wait-any

Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

Approach LGTM, will defer to @yanavlasov on the detailed review, thanks!

source/extensions/filters/http/ext_proc/ext_proc.cc Outdated Show resolved Hide resolved
source/extensions/filters/http/ext_proc/ext_proc.cc Outdated Show resolved Hide resolved
Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: tyxia <tyxia@google.com>
@tyxia
Copy link
Member Author

tyxia commented Jun 21, 2024

Thanks all for review!

@yanavlasov PTAL, Thanks

@tyxia tyxia requested a review from yanavlasov June 21, 2024 13:03
Copy link
Contributor

@yanavlasov yanavlasov 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 minor comments.

/wait

changelogs/current.yaml Outdated Show resolved Hide resolved
Signed-off-by: tyxia <tyxia@google.com>
@yanavlasov yanavlasov merged commit 1a98fd5 into envoyproxy:main Jun 27, 2024
50 of 51 checks passed
@tyxia tyxia deleted the async_deferred branch June 27, 2024 15:18
cainelli pushed a commit to cainelli/envoy that referenced this pull request Jul 5, 2024
…nvoyproxy#34491)

---------

Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: Fernando Cainelli <fernando.cainelli-external@getyourguide.com>
cainelli pushed a commit to cainelli/envoy that referenced this pull request Jul 5, 2024
…nvoyproxy#34491)

---------

Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: Fernando Cainelli <fernando.cainelli-external@getyourguide.com>
cainelli pushed a commit to cainelli/envoy that referenced this pull request Jul 5, 2024
…nvoyproxy#34491)

---------

Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: Fernando Cainelli <fernando.cainelli-external@getyourguide.com>
cainelli pushed a commit to cainelli/envoy that referenced this pull request Jul 5, 2024
…nvoyproxy#34491)

---------

Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: Fernando Cainelli <fernando.cainelli-external@getyourguide.com>
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.

None yet

4 participants