1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-04 09:43:23 +02:00
opentelemetry-go/sdk/metric
Tyler Yahn e3bf787c21
Add cardinality limiting to the metric SDK as an experimental feature (#4457)
* Add agg limiting func

* Add unit test for limitAttr

* Add limiting to aggregate types

* Add internal x pkg for experimental feature-flagging

* Connect cardinality limit to metric SDK

* Replace limitAttr fn with limiter type

The Attribute method is still inlinable.

* Use x.CardinalityLimit directly

* Simplify limiter test

* Add limiter benchmark

* Document the AggregationLimit field

* Test sum limits

* Test limit for last value

* Test histogram limit

* Refactor expo hist test to use existing fixtures

The tests for the exponential histogram create their own testing
fixtures. There is nothing these new fixtures do that cannot already be
done with the existing testing fixtures used by all the other aggregate
functions. Unify the exponential histogram testing to use the existing
fixtures.

* Test the ExponentialHistogram limit

* Fix lint

* Add docs

* Rename aggregation field to aggLimit

---------

Co-authored-by: Robert Pająk <pellared@hotmail.com>
2023-12-19 07:53:01 -08:00
..
internal Add cardinality limiting to the metric SDK as an experimental feature (#4457) 2023-12-19 07:53:01 -08:00
metricdata Add summary support in the OpenCensus bridge (#4668) 2023-11-02 15:07:41 -05:00
aggregation_test.go Flatten sdk/metric/aggregation into sdk/metric (#4435) 2023-08-14 08:15:15 -07:00
aggregation.go Add Base2ExponentialHistogram example (#4518) 2023-09-18 10:05:33 +02:00
benchmark_test.go Switch Stream back to having an AttributeFilter field and add New*Filter functions (#4444) 2023-08-25 07:39:43 -07:00
cache_test.go sdk/metric: Fix goroutine leaks in tests (#4352) 2023-07-25 10:54:08 +02:00
cache.go docs(typos): Run codespell to fix typos (#3980) 2023-04-11 17:28:13 -07:00
config_test.go Use gofumpt instead of gofmt (#4623) 2023-10-16 10:02:21 -07:00
config.go sdk/metric: Remove Reader.ForceFlush and ManualReader.ForceFlush (#4375) 2023-08-11 09:22:21 +02:00
doc.go Add and refine metrics examples (#4504) 2023-09-14 08:17:20 +02:00
env.go Support OTEL_METRIC_EXPORT_INTERVAL and OTEL_METRIC_EXPORT_TIMEOUT (#3763) 2023-02-24 09:26:47 -06:00
example_test.go sdk/metric: Update package example (#4540) 2023-09-22 08:04:06 +02:00
EXPERIMENTAL.md Add cardinality limiting to the metric SDK as an experimental feature (#4457) 2023-12-19 07:53:01 -08:00
exporter.go Document public metric SDK interfaces to remain stable (#4396) 2023-09-06 13:55:56 -07:00
go.mod dependabot updates Sun Dec 3 16:09:27 UTC 2023 (#4740) 2023-12-03 08:38:12 -08:00
go.sum dependabot updates Sun Dec 3 16:09:27 UTC 2023 (#4740) 2023-12-03 08:38:12 -08:00
instrument_test.go Replace internal aggregate Aggregator with Measure/ComputeAggregation and a Builder (#4304) 2023-07-17 16:15:50 +02:00
instrument.go sdk/metric: Record measurements when context is done (#4671) 2023-12-15 19:14:16 +01:00
instrumentkind_string.go Use inst ID for agg cache key (#4337) 2023-07-19 09:59:07 -07:00
manual_reader_test.go Use gofumpt instead of gofmt (#4623) 2023-10-16 10:02:21 -07:00
manual_reader.go Flatten sdk/metric/aggregation into sdk/metric (#4435) 2023-08-14 08:15:15 -07:00
meter_test.go sdk/metric: Record measurements when context is done (#4671) 2023-12-15 19:14:16 +01:00
meter.go Fix multi-reader observable counter double-counting bug (#4742) 2023-12-08 14:21:30 -08:00
periodic_reader_test.go Fix data race in periodic reader tests (#4731) 2023-11-28 11:12:11 +01:00
periodic_reader.go Use gofumpt instead of gofmt (#4623) 2023-10-16 10:02:21 -07:00
pipeline_registry_test.go Implement WithExplicitBucketBoundaries option in the metric SDK (#4605) 2023-10-31 08:41:27 +01:00
pipeline_test.go Implement WithExplicitBucketBoundaries option in the metric SDK (#4605) 2023-10-31 08:41:27 +01:00
pipeline.go Add cardinality limiting to the metric SDK as an experimental feature (#4457) 2023-12-19 07:53:01 -08:00
provider_test.go sdk/metric: Fix goroutine leaks in tests (#4352) 2023-07-25 10:54:08 +02:00
provider.go sdk/metric: Remove Reader.ForceFlush and ManualReader.ForceFlush (#4375) 2023-08-11 09:22:21 +02:00
reader_test.go Use gofumpt instead of gofmt (#4623) 2023-10-16 10:02:21 -07:00
reader.go Fix typos in comments (#4553) 2023-09-26 10:05:53 +02:00
version_test.go added version.go and test file for issue 2143 (#3677) 2023-05-09 08:29:19 -07:00
version.go Release 1.21.0/0.44.0 (#4724) 2023-11-16 21:11:06 +01:00
view_test.go Add and refine metrics examples (#4504) 2023-09-14 08:17:20 +02:00
view.go sdk/metric: Refine NewView wildcard comment (#4530) 2023-09-19 07:30:26 -07:00