* add ReadableSpanAdapter as the next step toward leveraging SpanData.
* move the conversion into a method on the ReadableSpan interface.
* replace the tests that use protobuf spans to use SpanData
* remove unused method
* get rid of an un-needed interface method
* Update sdk/src/main/java/io/opentelemetry/sdk/trace/RecordEventsReadableSpan.java
Co-Authored-By: Yang Song <songy23@users.noreply.github.com>
* Add the SpanData class, for future use in export
* address code review comments
* add missing javadocs
* reformat
* Let's see how this feels with the context removed and the 4 fields added instead.
* add missing javadocs
* Get the default values in place for collections and parentSpanId.
Write a test for the SpanData
* add junit runwith
* move spandata up to the trace package
* Update sdk/src/main/java/io/opentelemetry/sdk/trace/SpanData.java
Co-Authored-By: Yang Song <songy23@users.noreply.github.com>
* Add builders for gauge, counter and observer metrics
* Update sdk/src/test/java/io/opentelemetry/sdk/metrics/AbstractCounterBuilderTest.java
Co-Authored-By: Yang Song <songy23@users.noreply.github.com>
* Add tests for observer and all uncovered methods.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* More tests and update names
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Add metrics data and metric descriptor, to avoid using proto
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Fix review comments.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Remove Add from Gauges, based on specs only Set.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Update GagueDouble handle name in the example.
* Update handle name in GaugeLong example.
* 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>
* Add a small artifact that joins TracerSdk and InMemorySpanExporter.
Used for OpenTelemetry integration testing.
* Re-organize the inmemory artifact.
* Put it under contrib.
* Use package io.opentelemetry.sdk.contrib.trace.export
* Move inmemory_export to sdk_contrib.
* Comsume proto files from git submodule and build them in a separate module
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Install make
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Fix CI
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Add back animalsniffer
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Polish gradle
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Move proto to libraries
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* remove install make run
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Install make to openjdk9 image
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Add comment
Signed-off-by: Pavol Loffay <ploffay@redhat.com>