Skip to content

Releases: honeycombio/dynsampler-go

v0.6.0

12 Jan 22:47
cb9c700
Compare
Choose a tag to compare

0.6.0 2024-01-12

This version tweaks Throughput samplers to permit calculating non-integer sample rates, which makes them choose better sample rates in many scenarios. It also fixes a race condition that was recently detected by an improved Go runtime.

Fixes

  • fix: allow throughput samplers to have non-integer rates (#74) | Yi Zhao
  • fix: race condition in WindowedThroughput sampler (#73) | Kent Quirk

Maintenance

v0.5.0

08 Jun 14:11
3f22dde
Compare
Choose a tag to compare

0.5.0 2023-06-08

This version extends the Sampler interface to include a new GetMetrics function, which returns a collection of metrics relevant to that specific sampler. This improves visibility into the sampler and will be used in an upcoming release of Honeycomb's Refinery.

This is a breaking change for code implemented so as to conform to the dynsampler.Sampler interface, such as hand-coded mocks used for testing. Code using the interface is unaffected.

Features

Maintenance

v0.4.0

22 Mar 14:20
a418208
Compare
Choose a tag to compare

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.

Features

Maintenance

v0.3.0

07 Dec 22:10
8cd3a53
Compare
Choose a tag to compare

⚠️ As of this version, dynsampler-go is only tested on Go 1.16 or greater.

Maintenance

New Contributors

Full Changelog: v0.2.1...v0.3.0