* A rough idea of how named tracers might look in the API.
* update to require at least a name for the tracer
* Introduce another layer of factory for the provider
* remove convenience tracer methods from the OpenTelemetry class.
* Update api/src/main/java/io/opentelemetry/trace/spi/TracerFactoryProvider.java
Co-Authored-By: Armin Ruech <armin.ruech@gmail.com>
* Update api/src/main/java/io/opentelemetry/trace/TracerFactory.java
Co-Authored-By: Armin Ruech <armin.ruech@gmail.com>
* Add clarifying javadoc, per PR review
* reverse who calls whom
* Allow explicit Timestamp values for Span start/end.
* Update the code after merging master.
* Set end/start options only for the API.
* Add a clarification on setStartTimestamp().
* Make EndSpanOptions.getDefault() package private for now.
* SpanData Export refactoring
* getting our span data exporter work to use the new SpanData implementation
* getting up to date with the moved Timestamp
* Update post rebase
* A few cleanups from PR comments
* A few more cleanups.
* 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 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>
* 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>
* 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>
* Add an AsyncSpanProcessor that uses Disruptor.
* Fix comments.
* Cleanup print messages and simplify tests
* Enforce shutdown to wait for all the processors to finish shutdown.
* Change Sampler.shouldSample to accept list of SpanContext.
Fixes#437
* Improve test coverage.
* Change Sampler signature shouldSample to accept list of Links.
* Add batch span processor.
* Update sdk/src/main/java/io/opentelemetry/sdk/trace/export/BatchSampledSpansProcessor.java
Co-Authored-By: Yang Song <songy23@users.noreply.github.com>
* Remove @SuppressWarnings(JdkObsolete) from tests.
* Add default values as constants, comment on setter about default values.
* Remove unnecessary since tag from tests.
* Change the batch creation logic to avoid checking the limit every time.