1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/sdk/metric/internal
Anthony Regeda 441a173514
No memory leakage in attributes filter (#3695)
The attributes filter collects seen attributes in order to avoid
filtration on the same attribute set. However, the `attribute.Set` is
not comparable type and new allocations of sets with same attributes will be
considered as new sets.

Metrics with a high cardinality of attributes consume a lot of memory
even if we set a filter to reduce that cardinality.

Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2023-02-13 08:07:06 -08:00
..
aggregator_example_test.go Deprecate the syncint64/syncfloat64/asyncint64/asyncfloat64 packages (#3575) 2023-01-10 15:06:24 -08:00
aggregator_test.go Handle duplicate Aggregators and log instrument conflicts (#3251) 2022-10-11 15:41:47 -04:00
aggregator.go Combine precomputed values of filtered attribute sets (#3549) 2023-01-20 09:54:42 -08:00
doc.go Merge metric SDK development branch "new_sdk/main" into "main" (#3175) 2022-09-15 18:41:24 -07:00
filter_test.go Combine precomputed values of filtered attribute sets (#3549) 2023-01-20 09:54:42 -08:00
filter.go No memory leakage in attributes filter (#3695) 2023-02-13 08:07:06 -08:00
histogram_test.go Use Extrema type for Histogram min/max (#3550) 2023-01-26 10:49:58 -08:00
histogram.go Use Extrema type for Histogram min/max (#3550) 2023-01-26 10:49:58 -08:00
lastvalue_test.go Do not export aggregations without any data points (#3436) 2022-11-11 07:22:27 -08:00
lastvalue.go Do not export aggregations without any data points (#3436) 2022-11-11 07:22:27 -08:00
sum_test.go Combine precomputed values of filtered attribute sets (#3549) 2023-01-20 09:54:42 -08:00
sum.go Combine precomputed values of filtered attribute sets (#3549) 2023-01-20 09:54:42 -08:00