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 part 3: logging and billing support #34960

Merged
merged 5 commits into from
Jul 3, 2024

Conversation

tyxia
Copy link
Member

@tyxia tyxia commented Jun 27, 2024

There is no response in observability mode by design, so logging on onFinishProcessorCalls which is invoked on response won't work. Note, existing error/close case still work as normal

Solution: Leverage the encodeComplete function to write the logging/billing info. This is also before the consumers (extensions/filters behind) reading it.

Test: Existing Integration test frame with logging_test_filter as consumer

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: #34960 was opened by tyxia.

see: more, trace.

Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: tyxia <tyxia@google.com>
@tyxia
Copy link
Member Author

tyxia commented Jun 28, 2024

/retest

@tyxia tyxia marked this pull request as ready for review June 28, 2024 01:53
@tyxia
Copy link
Member Author

tyxia commented Jun 28, 2024

/assign @htuch @yanavlasov

Signed-off-by: tyxia <tyxia@google.com>
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.

LGTM modulo nits.

Signed-off-by: tyxia <tyxia@google.com>
@tyxia
Copy link
Member Author

tyxia commented Jul 3, 2024

/retest

@htuch htuch merged commit 45c1b75 into envoyproxy:main Jul 3, 2024
50 of 51 checks passed
@tyxia tyxia deleted the ob_logging branch July 5, 2024 14:56
cainelli pushed a commit to cainelli/envoy that referenced this pull request Jul 5, 2024
…oyproxy#34960)

There is no response in observability mode by design, so logging on onFinishProcessorCalls which is invoked on response won't work. Note, existing error/close case still work as normal

Solution: Leverage the encodeComplete function to write the logging/billing info. This is also before the consumers (extensions/filters behind) reading it.

Test: Existing Integration test frame with logging_test_filter as consumer
Risk level: Low

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
…oyproxy#34960)

There is no response in observability mode by design, so logging on onFinishProcessorCalls which is invoked on response won't work. Note, existing error/close case still work as normal

Solution: Leverage the encodeComplete function to write the logging/billing info. This is also before the consumers (extensions/filters behind) reading it.

Test: Existing Integration test frame with logging_test_filter as consumer
Risk level: Low

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
…oyproxy#34960)

There is no response in observability mode by design, so logging on onFinishProcessorCalls which is invoked on response won't work. Note, existing error/close case still work as normal

Solution: Leverage the encodeComplete function to write the logging/billing info. This is also before the consumers (extensions/filters behind) reading it.

Test: Existing Integration test frame with logging_test_filter as consumer
Risk level: Low

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
…oyproxy#34960)

There is no response in observability mode by design, so logging on onFinishProcessorCalls which is invoked on response won't work. Note, existing error/close case still work as normal

Solution: Leverage the encodeComplete function to write the logging/billing info. This is also before the consumers (extensions/filters behind) reading it.

Test: Existing Integration test frame with logging_test_filter as consumer
Risk level: Low

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.

3 participants