* fix:add an ending period to form notes
* feat:add the shortcut of removeif in ResourceBuilder
* fix:fix the errors of check
* feat:run two gradlew task to achieve check
* fix:fix format violations
* feat:remove extra function and modify the unit test
* fix: fix format violations
* feat:format code and modify unit test
* feat:make unit test specification
* feat:cleanup for normalize
* Allow multiple async callbacks, allow callbacks to be removed
* Use AutoCloseable to remove callbacks, don't unregister from MetricStorageRegistry
* Use CopyOnWriteArrayList
* PR feedback
* PR feedback
* Overload put with AttributeKey with String array
* Use generic instead of String
* Format and javadoc
* Cast to type
* New public method
* File based view configuration (#4163)
* Add experimental view config module
* Rename view-config to metric-incubator
* Switch naming from camelCase to snake_case
* Extend with attribute key filter
* Wire up to autoconfiguration
* Use snakeyaml instead of jackson
* PR feedback
* PR feedback
* Remove explicit okio dependency (#4187)
* Deprecate PrometheusCollector (#4185)
* Correct javadoc
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Cast to type
Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* update indexing strategy to use simple static methods
* remove unused BucketMapper interface
* fix errors introduced by conflict resolution
* fix integer overflow/underflow in exphist corner case
* add test for recording at limits of Double
* fix mistake
* remove superfluous casts
* memoize scaleFactor
* remove superfluous javadoc
* static final not final static
* Make assertions clearer and comment for Math.pow() rounding
* spotless
* Add adaptable circular buffer implementation for ExponentialCounter and expose hooks to test its use in Exponential Histogram aggregator.
* Clean up some adapting circular buffer code.
* Fix style issues.
* Apply spotless.
* Add tests for adapting integer array.
* Finish wiring ability to remember previous integer cell size and expand testing.
* Update array copy from code review.
* Fixes/cleanups from review.
- Fix a bug in equality where it was forcing ExponentialCounter to have
the same offset, even if it had stored 0 counts in all buckets. This
interacts negatively with merge/diff tests where creating a fresh
exponential bucket would have different indexStart then diff-ing
another.
- Modify default exponential bucket counter to be adapting circular
buffer.
- Remove some not-well-though-out methods (like zeroOf, zeroFrom) in
favor of a "clear" method on ExponentialCounter
- Modify ExponentialBucketStrategy to be an actual implementation.
* Improve testing of copy behavior across exponential-counter implementations.
* Last fix/cleanup for PR. Remove remaining TODO around preserving runtime optimisations.
* Fixes from review.
* Add test to ensure 0 is returned from exponential counters outside popualted range.
* Add a bunch of extra equality tests.
* run spotless.
* Add note about equality.
* Add copy() method to AdaptingIntegerArray, update tests.
* Fix checkstyle.
* Add internal disclaimer, reduce visibility of test classes
Co-authored-by: jack-berg <jberg@newrelic.com>
* Replace OpenTelemetry with GlobalOpenTelemetry in javadoc code snippets
* use openTelemetry instread of GlobalOpenTelemetry
* replace one ome usage of GlobalOpenTelemetry