This version contains two new samplers and some (backwards-compatible) changes to the API:
Many thanks to Yi Zhao for the contribution of the WindowedThroughput sampler. This sampler is like the Throughput sampler, but uses a moving average to accumulate sample rates across multiple sampling periods.
The new EMAThroughput sampler adjusts overall throughput to achieve a goal while also ensuring that all values in the key space are represented.
The GetSampleRateMulti() function allows a single request to represent multiple events. This is particularly useful when tail-sampling at the trace level (because each trace represents a number of spans).
All samplers now support specifying a time.Duration instead of a time in seconds. Fields like ClearFrequencySec are now deprecated and will be dropped in a future release.
⚠️ As of this version, dynsampler-go requires and is tested on versions of Go 1.17 and greater.
This version contains two new samplers and some (backwards-compatible) changes to the API:
Many thanks to Yi Zhao for the contribution of the WindowedThroughput sampler. This sampler is like the Throughput sampler, but uses a moving average to accumulate sample rates across multiple sampling periods.
The new EMAThroughput sampler adjusts overall throughput to achieve a goal while also ensuring that all values in the key space are represented.
The GetSampleRateMulti() function allows a single request to represent multiple events. This is particularly useful when tail-sampling at the trace level (because each trace represents a number of spans).
All samplers now support specifying a time.Duration instead of a time in seconds. Fields like ClearFrequencySec are now deprecated and will be dropped in a future release.
⚠️ As of this version, dynsampler-go requires and is tested on versions of Go 1.17 and greater.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps github.com/honeycombio/dynsampler-go from 0.3.0 to 0.4.0.
Release notes
Sourced from github.com/honeycombio/dynsampler-go's releases.
Changelog
Sourced from github.com/honeycombio/dynsampler-go's changelog.
Commits
a418208
rel: Prep for v0.4.0 release (#60)22b9a56
feat: EMAThroughput sampler (#58)2f3e10b
feat: Deprecate integer seconds and replace with time.Duration (#59)141159f
maint: Pull out common calculation into a function (#57)cb1cc4b
feat: add GetSampleRateMulti (#53)91cc927
maint: bump the go versions we support (#55)c439884
maint(deps): bump github.com/stretchr/testify from 1.6.1 to 1.8.2 (#49)1e7ae5a
fix: Fix flaky blocklist test (#52)1bbf5b6
feat: Windowed Throughput Sampling (#45)62ee9e1
maint: remove buildevents from circle (#48)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)