1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-04 09:43:23 +02:00
opentelemetry-go/api
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
..
core Add comments and test for 64-bit field alignment (#418) 2020-01-06 13:08:40 -05:00
correlation Allow dropping items from correlations + docs + cleanups (#454) 2020-02-03 13:07:53 -08:00
global Improve detail in stdout exporter (#436) 2020-01-24 05:51:58 -08:00
key Namespace import path under "/otel" (#274) 2019-11-01 11:40:29 -07:00
metric Update metric types to not use pointer receivers (#462) 2020-02-04 10:27:03 -08:00
propagation Reorganize propagation code (shrink PR 381) (#444) 2020-01-28 10:13:46 -08:00
testharness Replace span relationship with a potentially remote parent context (#451) 2020-02-04 08:55:03 -08:00
trace Replace span relationship with a potentially remote parent context (#451) 2020-02-04 08:55:03 -08:00
unit Namespace import path under "/otel" (#274) 2019-11-01 11:40:29 -07:00