1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-11-06 09:09:44 +02:00

Refactor exemplars to not use generic argument (#5285)

* Refactor exemplars to not use generic argument

* Update internal/aggregate

* Update metric SDK

* Test exemplar value type

* Add TestCollectExemplars

* Fix lint

---------

Co-authored-by: Sam Xie <sam@samxie.me>
This commit is contained in:
Tyler Yahn
2024-05-07 08:12:59 -07:00
committed by GitHub
parent f8b9fe3dbe
commit 2f662dbe13
24 changed files with 334 additions and 126 deletions

View File

@@ -49,8 +49,8 @@ var (
}
)
func dropExemplars[N int64 | float64]() exemplar.Reservoir[N] {
return exemplar.Drop[N]()
func dropExemplars[N int64 | float64]() exemplar.Reservoir {
return exemplar.Drop()
}
func TestBuilderFilter(t *testing.T) {