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

ddtrace/tracer: fix rate limiter moving average #812

Merged
merged 1 commit into from
Jan 11, 2021

Conversation

raphaelgavache
Copy link
Contributor

Fix to sampling rate name: since twl rules, _dd.agent_psr is they name to the priority rate pulled from the agent and applied to the root.

Fixing the limiter rate moving average

@knusbaum knusbaum changed the title [sampler] Update limiter rate ddtrace/tracer: fix rate limiter moving average Jan 11, 2021
Copy link
Contributor

@knusbaum knusbaum left a comment

Choose a reason for hiding this comment

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

This looks good overall. Just a couple nits.

ddtrace/tracer/sampler.go Outdated Show resolved Hide resolved
Comment on lines 473 to 474
assert.Equal(float64(100), sl.seen)
assert.Equal(float64(42), sl.allowed)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use 100.0 and 42.0 here rather than using conversion, for consistency?

arbll
arbll previously approved these changes Jan 11, 2021
@knusbaum knusbaum added this to the 1.29.0 milestone Jan 11, 2021
@raphaelgavache raphaelgavache merged commit 3ed2a27 into v1 Jan 11, 2021
@raphaelgavache raphaelgavache deleted the raphael/fix_rate_name branch January 11, 2021 17:21
dianashevchenko pushed a commit that referenced this pull request Feb 8, 2021
This was referenced Mar 11, 2021
This was referenced Mar 15, 2021
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.

None yet

3 participants