Commit Graph

22 Commits

Author SHA1 Message Date
Bogdan Drutu 8973bc371a
Cleanup and update dependencies. (#602)
* Cleanup and update dependencies.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Fix build

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Fix build

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-11 08:49:03 -07:00
Bogdan Drutu 5f530a000a
Add monotonic option for Gauge/Observer/Counter (#556)
* 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.
2019-09-24 11:04:44 -07:00
Bogdan Drutu 2c6c687b5e
Add metric observer and remove setCallback from Metric base class (#548)
* 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>
2019-09-19 12:19:40 -07:00
Bogdan Drutu 8be6a282b5
Make Measure a Metric and add support for Handle. (#539)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-09-18 13:16:09 -07:00
Bogdan Drutu d8f37b33b7
Rename Timeseries with Handle. (#508) 2019-08-22 17:27:03 -07:00
Bogdan Drutu 0a0032bd0e
Remove description from LabelKey and use directly String. (#489) 2019-08-15 09:35:52 -07:00
Bogdan Drutu 9ede324d9d
Remove unnecessary LabelValue object. (#433)
* Remove unnecessary LabelValue object.

* Remove the LabelValue class and all usages.
2019-08-13 16:21:28 -07:00
Bogdan Drutu 8e368d2f4a
Split contrib into different packages. (#462)
* Split contrib into different packages.

* Update readme and build.gradle.
2019-07-10 13:19:10 -07:00
Yang Song f62dbff017 Use static methods instead of variables. (#379)
* 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.
2019-06-05 16:34:53 -07:00
Yang Song 4172855fcd Rename BlankSpan to DefaultSpan. (#376) 2019-06-05 13:14:39 -07:00
Bogdan Drutu 7f4d9536ad
Make Event interface. (#317) 2019-05-17 01:46:20 -07:00
Bogdan Drutu db6b5fb96e
Cleanup ContextUtil usages. (#306) 2019-05-14 16:19:05 -07:00
Bogdan Drutu 4bf821d821
Cleanup gradle files. (#297) 2019-05-13 17:33:39 -07:00
Bogdan Drutu e7556411b6
Fix small warnings. (#267) 2019-05-10 18:56:31 -07:00
Pavol Loffay 1eec5efbfa Add meter to global registry (#257)
* 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>
2019-05-10 13:12:06 -07:00
Bogdan Drutu 750e16c5e7
Remove metric registry and fix examples. (#238) 2019-05-07 09:34:18 -07:00
Bogdan Drutu 898f81bf1c
Remove helper functions that interact with Context from Tracer and move into contrib (#246) 2019-05-03 08:44:05 -07:00
Bogdan Drutu ca0ec9dfa8
Replace everywhere OpenConsensus with OpenTelemetry (#244)
* Replace everywhere OpenConsensus with OpenTelemetry

* Fix javadoc references.

* Update javadoc exclude in the api.
2019-05-02 13:46:04 -07:00
Bogdan Drutu a63080da46
Rename Cumulative to Counter, and use names like templates GaugeLong. (#221) 2019-04-26 14:53:59 -07:00
Bogdan Drutu 5344ab14f9
Remove derived metrics and support a callback for the entire metric. (#219)
* Remove derived metrics and support a callback for the entire metric.

* Fix copyright, add javadoc and remove android compatibility restriction.

* Remove unused interfaces.
2019-04-26 14:32:06 -07:00
Bogdan Drutu 6928ae2946
Copy the current OpenCensus protos. (#134)
* Copy the current OpenCensus protos.

* Update protobuf and grpc

* Remove jmh.
2019-04-17 14:07:12 -07:00
Bogdan Drutu 1103010c9c
Remove MessageEvent and make Event extensible. (#81)
* Remove MessageEvent and make Event extensible.

* Add ImmutableEvent as the default implementation for Event.

* Move back to Event the create methods.
2019-04-15 16:06:12 -07:00