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

dekaf: Improve log filtering #1947

Closed
wants to merge 1 commit into from
Closed

Conversation

jshearer
Copy link
Contributor

@jshearer jshearer commented Feb 19, 2025

Since we're now piping tracing logs into the task logs which is user facing, we'd like to make the logs we send as meaningful as possible. In order to do that, we need to be able to more narrowly specify which logs should get sent. In order to do that, I've swapped the simple log level filter for a slightly more advanced tracing_subscriber::filter::Targets which allows us to specify log filters such as debug,simple_crypt=warn,aws_config=warn,h2=warn.

An alternative to Arc<RwLock> would be something like the the arc-swap crate which provides a lock-free way to accomplish this shared mutable state, but since the usage pattern of LOG_LEVEL is pretty much entirely reads, I don't anticipate any actual lock contention to happen here and wanted to avoid yet another new dependency.

This appears to have some locking issue, holding off for the moment.


This change is Reviewable

@jshearer jshearer force-pushed the dekaf/improved_log_filtering branch from 79e114a to a481b56 Compare February 21, 2025 17:30
Since we're now piping `tracing` logs into the task logs which is user facing, we'd like to make the logs we send as meaningful as possible. In order to do that, we need to be able to more narrowly specify which logs should get sent. In order to do that, I've swapped the simple log level filter for a slightly more advanced `tracing_subscriber::filter::Targets` which allows us to specify log filters such as `debug,simple_crypt=warn,aws_config=warn,h2=warn`.
@jshearer jshearer force-pushed the dekaf/improved_log_filtering branch from a481b56 to 3d17463 Compare February 24, 2025 16:44
@jshearer jshearer marked this pull request as ready for review February 24, 2025 16:46
@jshearer
Copy link
Contributor Author

Closing in favor of #1965

@jshearer jshearer closed this Feb 24, 2025
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.

1 participant