Skip to content

dynamic_modules: expose current log level getter#46052

Merged
agrawroh merged 1 commit into
envoyproxy:mainfrom
agrawroh:dm-fr-1
Jul 9, 2026
Merged

dynamic_modules: expose current log level getter#46052
agrawroh merged 1 commit into
envoyproxy:mainfrom
agrawroh:dm-fr-1

Conversation

@agrawroh

@agrawroh agrawroh commented Jul 9, 2026

Copy link
Copy Markdown
Member

Description

This PR adds the envoy_dynamic_module_callback_get_log_level ABI callback and surfaces it in the Rust and Go SDKs so modules can read the effective log level and gate expensive work.

Fixes #45032


Commit Message: dynamic_modules: expose current log level getter
Risk Level: Low
Testing: Added Tests
Docs Changes: Added
Release Notes: Added

Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
@@ -495,6 +495,15 @@ void envoy_dynamic_module_callback_log(envoy_dynamic_module_type_log_level level
*/
bool envoy_dynamic_module_callback_log_enabled(envoy_dynamic_module_type_log_level level);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

should we deprecate envoy_dynamic_module_callback_log_enabled?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, I can do a follow-up to deprecate it

@agrawroh agrawroh merged commit 5427a96 into envoyproxy:main Jul 9, 2026
28 checks passed
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.

dynamic modules: expose current log level getter in the Golang dynamic module API

3 participants