1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/metric
Tyler Yahn 1f9cc3036b
Add single instrument callback and split metric instrument configuration (#3507)
* Split metric inst config

Instead of having the same configuration for both the Synchronous and
Asynchronous instruments, use specific options for both.

* Use Async/Sync opt for appropriate inst

* Update noop inst providers

* Update internal global impl

* Update sdk

* Remove unused method for callbackOption

* Test instrument configuration

* Lint imports

* Add changes to changelog

* Refactor callbacks and further split opts

Define callbacks to return the value observed. Because of the different
types returned for different observables, the callbacks and options are
move to the sync/async packages.

* Update noop impl

* Fix example_test.go

* Fix internal impl

* Update Callbacks

Return observations for distinct attr sets.

* Refactor common code in sdk/metric inst provider

* Update examples and prom exporter

* Generalize callback

* Update changelog

* Add unit tests for callback

* Add meter tests for cbacks on creation

* Rename Observations to Measurements

* Update Callback to accept an Observer

* Update SDK impl

* Move conf to instrument pkg

* Apply suggestions from code review
2023-01-06 09:20:49 -08:00
..
global Add godot linter to golangci (#2845) 2022-04-25 13:22:49 -07:00
instrument Add single instrument callback and split metric instrument configuration (#3507) 2023-01-06 09:20:49 -08:00
internal/global Add single instrument callback and split metric instrument configuration (#3507) 2023-01-06 09:20:49 -08:00
unit Use already enabled revive linter and add depguard (#2883) 2022-05-19 15:15:07 -05:00
config.go Revert Adding attributes to the instrumentation scope. 2022-09-09 09:06:58 -05:00
doc.go [API EPIC 4/4] Fix tests and examples (#2587) 2022-03-02 09:50:29 -06:00
example_test.go Remove metric instrument provider API (#3530) 2023-01-03 10:34:10 -08:00
go.mod Release v1.11.2/v0.34.0 (#3512) 2022-12-05 13:43:20 -06:00
go.sum dependabot updates Mon Oct 31 15:24:02 UTC 2022 (#3433) 2022-10-31 08:54:41 -07:00
meter.go Add single instrument callback and split metric instrument configuration (#3507) 2023-01-06 09:20:49 -08:00
noop_test.go Remove metric instrument provider API (#3530) 2023-01-03 10:34:10 -08:00
noop.go Add single instrument callback and split metric instrument configuration (#3507) 2023-01-06 09:20:49 -08:00