opentelemetry-java/sdk/metrics-testing
James Moessis 82e2bc2630
Prototype for Exponential Histogram Aggregator (#3724)
* draft for exponential histogram aggregator

* autoscaling for exponential histogram

* more tests for exp histogram

* re-add nr copyright notice after spotlessapply deleted them; convert some comments to javadoc

* change to long index for bucketmapper

* add scale to hashCode for buckets

* implement jsuereth initial review for exphist

* move data and pointdata for exphist into data package

* replace windowedCounterArray with minimal map implementation

* use Arrays.asList() for exposing bucket counts

* remove WindowedCounterArray and MultiTypeCounterArray

* javadoc for ExponentialCounter

* implement and test merge() for exponential histogram aggregation; fix scale reduction bug

* appease spotless check

* optimize inital hashmap size for MapCounter

* merging exphist accumulation not alter original accumulation

* more tests, with a currently failing limit tester

* change map counter to be able to copy any of its interface type

* add dummy switch cases for exponential histogram exporter to appease build

* test fixes

* metrics-testing helpers for exponential histogram

* javadoc and linting

* multithreaded test on update/merge for exphist

* some cleanup

* resolve conflicts

* Update sdk/metrics-testing/src/main/java/io/opentelemetry/sdk/testing/assertj/metrics/ExponentialHistogramAssert.java

Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>

* address some review

* spotless

* add static factories to interface as per anuraag review

* use string concatenation in favour of String.format()

* address minor review comments

* make doIncrement() atomic

* change index from long to int

* refactor aggregator to align with recent Aggregator refactor

* implement diff() for exponential histogram aggregator

* add missing javadoc for metric assertions

* more javadoc for diff()

* remove unnecessary comment

* add another test for diff exphist

* spotless

* address comment regarding failure message

* metric assertions test for exponential histogram assertions

* replace warning log with IllegalStateException

* improve test coverage

* make record package private

* remove unnecessary double check to improve code cov

* add comments

Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
2021-11-11 18:15:22 -08:00
..
src Prototype for Exponential Histogram Aggregator (#3724) 2021-11-11 18:15:22 -08:00
README.md Add missing readmes and missing javadoc links (#3500) 2021-08-16 12:36:54 -07:00
build.gradle.kts Add missing readmes and missing javadoc links (#3500) 2021-08-16 12:36:54 -07:00
gradle.properties Migrate Metrics SDK "data' package to Attributes (#3352) 2021-07-01 09:15:44 -07:00

README.md

OpenTelemetry Metrics SDK Testing

Javadocs