Skip to content

chore(weave): Debounced scoring: max sampling rate#6296

Open
mscavezze-cw wants to merge 5 commits intomasterfrom
mike/debounced_scoring_sampling_rate
Open

chore(weave): Debounced scoring: max sampling rate#6296
mscavezze-cw wants to merge 5 commits intomasterfrom
mike/debounced_scoring_sampling_rate

Conversation

@mscavezze-cw
Copy link
Contributor

@mscavezze-cw mscavezze-cw commented Mar 7, 2026

Description

Add max sampling rate for debounced scorers. Default to 0.0, meaning that debounced monitors will be ignored.

@codecov
Copy link

codecov bot commented Mar 7, 2026

Codecov Report

❌ Patch coverage is 12.50000% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
weave/trace_server/environment.py 12.50% 7 Missing ⚠️

📢 Thoughts on this report? Let us know!

@mscavezze-cw mscavezze-cw marked this pull request as ready for review March 9, 2026 17:55
@mscavezze-cw mscavezze-cw requested a review from a team as a code owner March 9, 2026 17:55
@mscavezze-cw mscavezze-cw changed the title chore(weave): scoring sampling rate chore(weave): Debounced scoring: max sampling rate Mar 9, 2026
@mscavezze-cw mscavezze-cw changed the title chore(weave): Debounced scoring: max sampling rate chore(weave): Debounced Scoring: Max Sampling Rate Mar 9, 2026
@mscavezze-cw mscavezze-cw changed the title chore(weave): Debounced Scoring: Max Sampling Rate chore(weave): Debounced scoring: max sampling rate Mar 9, 2026
Comment on lines +50 to +53
key = "WF_SCORING_WORKER_DEBOUNCED_SCORING_MAX_SAMPLING_RATE"
try:
if key in os.environ:
del os.environ[key]
Copy link
Member

Choose a reason for hiding this comment

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

this could be a test fixture

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.

2 participants