1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-03 22:52:30 +02:00
opentelemetry-go/sdk
Tyler Yahn dcfec0c2fa
Add the random fixed size exemplar reservoir (#4852)
* Add the random fixed size exemplar reservoir

* Rename fixed.go to storage.go

* Update sdk/metric/internal/exemplar/rand.go

Co-authored-by: David Ashpole <dashpole@google.com>

* Remove stale ref to spec recommendation

* Add comments to clarify the reset/advance/Collect methods

* Apply comment from feedback

* Add random func to gen rand float64 on (0,1)

* Use random in TestFixedSizeSamplingCorrectness

* Add clarifying algorithm comments

Include a high-level overview of the algorithm implemented and clarify
parameter names to be consistent.

* Fix duplicate word

* Update sdk/metric/internal/exemplar/rand.go

* Comment TestFixedSizeSamplingCorrectness

* Update test delta

* Test collect less than cap

* Remove measurement.Valid method

---------

Co-authored-by: David Ashpole <dashpole@google.com>
Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com>
2024-01-29 07:26:30 -08:00
..
instrumentation Revert Adding attributes to the instrumentation scope. 2022-09-09 09:06:58 -05:00
internal Use gofumpt instead of gofmt (#4623) 2023-10-16 10:02:21 -07:00
metric Add the random fixed size exemplar reservoir (#4852) 2024-01-29 07:26:30 -08:00
resource Fix ContainerID detector on systemd with colon in cgroup path (#4449) 2024-01-23 13:04:46 -08:00
trace docs: minor update to docstring (#4833) 2024-01-19 15:18:16 +01:00
go.mod Release v1.23.0-rc.1 (#4832) 2024-01-18 12:26:17 -08:00
go.sum dependabot updates Sun Jan 7 15:43:49 UTC 2024 (#4813) 2024-01-07 09:00:00 -08:00
version_test.go Fix Version test in otel/sdk (#3994) 2023-04-14 07:41:27 -07:00
version.go Release v1.23.0-rc.1 (#4832) 2024-01-18 12:26:17 -08:00