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

sample: change dynsampler metric names to match rulessampler convention #236

Merged
merged 1 commit into from
Apr 12, 2021

Conversation

isnotajoke
Copy link
Contributor

While reading the rules implementation and configuring our local Refinery, I noticed a couple of metrics that appeared to be misnamed. All of the other metrics are prefixed with rulessampler, but these two (for dropping events) are prefixed with dynsampler. This seemed like an oversight, though I'm by no means an expert. This PR changes the "dropped" metrics to conform to the convention of the other metric names.

Note that this is a breaking change: any existing dashboards, SLOs, etc built around the rules sampler and using the old metric name may no longer work as intended after this rename. A backwards compatible approach would be to emit both metrics, and then deprecate the dynsampler version later one. I didn't do that here, but am happy to do so if people feel strongly about it.

I ran the sampler unit test suite locally & confirmed that it passed with this change.

@isnotajoke isnotajoke requested a review from a team March 25, 2021 03:13
@vreynolds vreynolds added the version: bump minor A PR that adds behavior, but is backwards-compatible. label Apr 12, 2021
@vreynolds
Copy link
Contributor

Thank you! Since dynsampler_num_dropped is an existing metric for another sampler, we're considering this a "bug fix".

@vreynolds vreynolds merged commit 63fd239 into honeycombio:main Apr 12, 2021
ghost pushed a commit to opsramp/tracing-proxy that referenced this pull request Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
version: bump minor A PR that adds behavior, but is backwards-compatible.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants