* 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.
* Per spec change, allow start digit. Fixes#562
* reject multiple at signs
* reformat
* remove redundant check
rename method to match its usage
* return to a negatively named method that is more clear
* add a todo to benchmark the key validation code
* formatting
* 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>
* 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>
* Fix service provider not found exception message.
Signed-off-by: qudongfang <qudongfang@gmail.com>
* Format with google java style.
Signed-off-by: qudongfang <qudongfang@gmail.com>
* Change Sampler.shouldSample to accept list of SpanContext.
Fixes#437
* Improve test coverage.
* Change Sampler signature shouldSample to accept list of Links.
* Change DistributedContextSdk.Builder to use current DistributedContext as implicit parent if none is provided explicitly
* Change DistributedContext.setNoParent to prevent inheriting an implicit context
* Clarify doc for DistributedContext.setNoParent
* Disallow null for DistributedContext.setParent
* Connect span builder and span in SDK
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Use proto in tests
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Remove
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Fix comments
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Fix review comments
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Add sampling attributes to span
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Remove line
Signed-off-by: Pavol Loffay <ploffay@redhat.com>