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 f78f72d66c
Merge instrument cache to inserter (#3724)
* Merge instrument cache to inserter

The current pipeline resolution path will only add the resolved
aggregators to the pipeline when it creates one (cache miss). It will
not add it if there is a cache hit. This means (since we cache
instruments at the meter level, not the pipeline level) the first reader
in a multiple-reader setup is the only one that will collect data for
that aggregator. All other readers will have a cache hit and nothing is
added to the pipeline. This is causing #3720.

This resolves #3720 by moving the instrument caching into the inserter.
This means aggregators are cached at the reader level, not the meter.

* Rename aggCV to aggVal

---------

Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com>
2023-02-21 08:07:37 -08:00
..
aggregation Recommend not recording cumulative explicit histogram min/max (#3403) 2022-10-31 18:59:05 -07:00
internal No memory leakage in attributes filter (#3695) 2023-02-13 08:07:06 -08:00
metricdata Use Extrema type for Histogram min/max (#3550) 2023-01-26 10:49:58 -08:00
benchmark_test.go Change the Reader.Collect Signature. (#3732) 2023-02-21 09:04:27 -06:00
cache_test.go Handle duplicate Aggregators and log instrument conflicts (#3251) 2022-10-11 15:41:47 -04:00
cache.go Merge instrument cache to inserter (#3724) 2023-02-21 08:07:37 -08:00
config_test.go Change the Reader.Collect Signature. (#3732) 2023-02-21 09:04:27 -06: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 Use semconv creation functions (#3683) 2023-02-07 13:42:47 -08:00
exporter.go Warn metric Exporters of ResourceMetrics reuse (#3556) 2023-01-03 08:15:07 -08:00
go.mod Prepare v1.13.0/v0.36.0 release (#3688) 2023-02-07 14:34:41 -05: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 instrumentID to streamID in metric SDK (#3735) 2023-02-16 13:33:56 -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 Change the Reader.Collect Signature. (#3732) 2023-02-21 09:04:27 -06:00
meter_test.go Change the Reader.Collect Signature. (#3732) 2023-02-21 09:04:27 -06:00
meter.go Merge instrument cache to inserter (#3724) 2023-02-21 08:07:37 -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 Change the Reader.Collect Signature. (#3732) 2023-02-21 09:04:27 -06:00
pipeline_registry_test.go Merge instrument cache to inserter (#3724) 2023-02-21 08:07:37 -08:00
pipeline_test.go Merge instrument cache to inserter (#3724) 2023-02-21 08:07:37 -08:00
pipeline.go Merge instrument cache to inserter (#3724) 2023-02-21 08:07:37 -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 Change the Reader.Collect Signature. (#3732) 2023-02-21 09:04:27 -06:00
reader.go Change the Reader.Collect Signature. (#3732) 2023-02-21 09:04:27 -06: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