Skip to content

Conversation

MichaReiser
Copy link
Member

@MichaReiser MichaReiser commented Aug 18, 2025

Summary

Overriding callsite_enabled in the filter allows tracing to short-circuit many tracing calls that are known to always be off by leverging caching.

The implementation follows the recommended implementation of the Filter trait if the filtering isn't based on any dynamic data (which isn't the case for us)

Test Plan

Tested that the server still sends logs for ruff/ty tracing calls

@MichaReiser MichaReiser requested a review from carljm as a code owner August 18, 2025 10:29
@MichaReiser MichaReiser added server Related to the LSP server ty Multi-file analysis & type inference labels Aug 18, 2025
Copy link
Contributor

Diagnostic diff on typing conformance tests

No changes detected when running ty on typing conformance tests ✅

Copy link
Contributor

@sharkdp sharkdp left a comment

Choose a reason for hiding this comment

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

Thank you

@MichaReiser MichaReiser merged commit 5e4fa9e into main Aug 18, 2025
39 of 40 checks passed
@MichaReiser MichaReiser deleted the micha/logging branch August 18, 2025 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
server Related to the LSP server ty Multi-file analysis & type inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants