v0.4.0
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 likeClearFrequencySec
are now deprecated and will be dropped in a future release.
Features
- feat: EMAThroughput sampler (#58) | Kent Quirk
- feat: Deprecate integer seconds and replace with time.Duration (#59) | Kent Quirk
- feat: add GetSampleRateMulti (#53) | Kent Quirk
- feat: Windowed Throughput Sampling (#45) | Yi Zhao
Maintenance
- maint: Pull out common calculation into a function (#57) | Kent Quirk
- maint: bump the go versions we support (#55) | Kent Quirk
- maint(deps): bump github.com/stretchr/testify from 1.6.1 to 1.8.2 (#49) | dependabot[bot]
- maint: remove buildevents from circle (#48) | Jamie Danielson
- chore: Update workflow (#47) | Tyler Helmuth
- chore: Update CODEOWNERS (#46) | Tyler Helmuth
- chore: update dependabot.yml (#44) | Kent Quirk