1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/api/metric
Tyler Yahn 493e13f834
Update metric types to not use pointer receivers (#462)
The methods on the `Float64Gauge`, `Int64Gauge`, `Float64Counter`,
`Int64Counter`, `Float64Measure`, and `Int64Measure` `struct`s do not
need to mutate the internal state of the `struct` and can therefore be
defined with value receivers instead. This aligns closer to the function
signatures of each instruments constructor function. Additionally, this
change means calls to these methods do not need an allocation to the
heap.

Resolves #440

Co-authored-by: Rahul Patel <rghetia@yahoo.com>
2020-02-04 10:27:03 -08:00
..
alignment_test.go Add comments and test for 64-bit field alignment (#418) 2020-01-06 13:08:40 -05:00
api_test.go Rename handle to bound instrument (@sircelsius) (#400) 2019-12-27 16:30:19 -08:00
api.go Add comments and test for 64-bit field alignment (#418) 2020-01-06 13:08:40 -05:00
common.go Rename handle to bound instrument (@sircelsius) (#400) 2019-12-27 16:30:19 -08:00
counter.go Update metric types to not use pointer receivers (#462) 2020-02-04 10:27:03 -08:00
doc.go Rename handle to bound instrument (@sircelsius) (#400) 2019-12-27 16:30:19 -08:00
gauge.go Update metric types to not use pointer receivers (#462) 2020-02-04 10:27:03 -08:00
measure.go Update metric types to not use pointer receivers (#462) 2020-02-04 10:27:03 -08:00
noop.go Rename handle to bound instrument (@sircelsius) (#400) 2019-12-27 16:30:19 -08:00
sdkhelpers.go Rename handle to bound instrument (@sircelsius) (#400) 2019-12-27 16:30:19 -08:00