* Add the monotonic option when creating a Metric
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Change runtime metrics to set the right monotonic property
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Update to use monotonic only for gauge, counter and observer
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Update api/src/main/java/io/opentelemetry/metrics/Counter.java
Co-Authored-By: Yang Song <songy23@users.noreply.github.com>
* Fix style.
* Add metric observer and remove setCallback from Metric base class
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Fix javadoc and formatting
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Update api/src/main/java/io/opentelemetry/metrics/Meter.java
Co-Authored-By: Yang Song <songy23@users.noreply.github.com>
* Update api/src/main/java/io/opentelemetry/metrics/Meter.java
Co-Authored-By: Yang Song <songy23@users.noreply.github.com>
* Update javadoc for observerLongBuilder
* Update api/src/main/java/io/opentelemetry/metrics/Observer.java
Co-Authored-By: Yang Song <songy23@users.noreply.github.com>
* Update api/src/main/java/io/opentelemetry/metrics/Observer.java
Co-Authored-By: Yang Song <songy23@users.noreply.github.com>
* Update api/src/main/java/io/opentelemetry/metrics/Meter.java
Co-Authored-By: Yang Song <songy23@users.noreply.github.com>
* Update api/src/main/java/io/opentelemetry/metrics/Meter.java
Co-Authored-By: Yang Song <songy23@users.noreply.github.com>
* Each DefaultSpan has a unique span id. Remove INSTANCE.
* Use static methods instead of variables. Fixes#309.
* Fix the order of static fields.
* Revert random SpanId from this PR.
* Add Meter to global registry
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Add nullable
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Add test
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* reset before class
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Remove derived metrics and support a callback for the entire metric.
* Fix copyright, add javadoc and remove android compatibility restriction.
* Remove unused interfaces.
* Remove MessageEvent and make Event extensible.
* Add ImmutableEvent as the default implementation for Event.
* Move back to Event the create methods.