1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-12 02:28:07 +02:00
opentelemetry-go/sdk/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
..
aggregation Recommend not recording cumulative explicit histogram min/max (#3403) 2022-10-31 18:59:05 -07:00
internal Add single instrument callback and split metric instrument configuration (#3507) 2023-01-06 09:20:49 -08:00
metricdata Adds an Attribute assertion to metric data test (#3487) 2022-11-29 14:32:15 -06:00
benchmark_test.go Remove metric instrument provider API (#3530) 2023-01-03 10:34:10 -08:00
cache_test.go Handle duplicate Aggregators and log instrument conflicts (#3251) 2022-10-11 15:41:47 -04:00
cache.go Handle duplicate Aggregators and log instrument conflicts (#3251) 2022-10-11 15:41:47 -04:00
config_test.go Rename metric SDK instrument kind to match API (#3562) 2023-01-04 12:47:18 -08:00
config.go Add Metric Producer as a new interface, which returns scope metrics (#3524) 2022-12-15 07:50:45 -08:00
doc.go Replace view use from sdk/metric/view to sdk/metric (#3461) 2022-11-19 09:05:20 -08:00
example_test.go Remove unnecessary build restrictions for go1.18 (#3197) 2022-09-21 10:00:00 -07:00
exporter.go Warn metric Exporters of ResourceMetrics reuse (#3556) 2023-01-03 08:15:07 -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
instrument.go Rename metric SDK instrument kind to match API (#3562) 2023-01-04 12:47:18 -08:00
manual_reader_test.go Replace view use from sdk/metric/view to sdk/metric (#3461) 2022-11-19 09:05:20 -08:00
manual_reader.go Add Metric Producer as a new interface, which returns scope metrics (#3524) 2022-12-15 07:50:45 -08:00
meter_test.go Add single instrument callback and split metric instrument configuration (#3507) 2023-01-06 09:20:49 -08:00
meter.go Add single instrument callback and split metric instrument configuration (#3507) 2023-01-06 09:20:49 -08:00
periodic_reader_test.go Add Metric Producer as a new interface, which returns scope metrics (#3524) 2022-12-15 07:50:45 -08:00
periodic_reader.go Add Metric Producer as a new interface, which returns scope metrics (#3524) 2022-12-15 07:50:45 -08:00
pipeline_registry_test.go Rename metric SDK instrument kind to match API (#3562) 2023-01-04 12:47:18 -08:00
pipeline_test.go Add single instrument callback and split metric instrument configuration (#3507) 2023-01-06 09:20:49 -08:00
pipeline.go Add single instrument callback and split metric instrument configuration (#3507) 2023-01-06 09:20:49 -08:00
provider_test.go Remove unnecessary build restrictions for go1.18 (#3197) 2022-09-21 10:00:00 -07:00
provider.go Associate views with MeterProvider instead of Reader (#3387) 2022-10-31 07:55:54 -07:00
reader_test.go Rename metric SDK instrument kind to match API (#3562) 2023-01-04 12:47:18 -08:00
reader.go Rename metric SDK instrument kind to match API (#3562) 2023-01-04 12:47:18 -08:00
view_test.go Rename metric SDK instrument kind to match API (#3562) 2023-01-04 12:47:18 -08:00
view.go Add View, NewView, Instrument, Stream, and InstrumentKind to sdk/metric with unit tests (#3459) 2022-11-16 08:18:02 -08:00