* Deprecate SdkTracerManagement
* Deprecate global SDK
* Deprecate more
* Fix
* Cleanup
* Fix
* Handle test order random
* Collector removed queued_retry
This ensure clear separation of functionality. This PR does not change any functionality, it just restructures the code to separate global functionality from
the Default implementation. Also helps to ensure that Global initialization does not happen by mistake when working only with the default implementation.
Also it helps with methods like `OpenTelemetry.get()` and `OpenTelemetry.set()` to understand they are interacting with global instance
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* #2122 handle case insensitive logic for keys on context extraction in OpenTracing TracerShim
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
* #2122 fix test
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
* #2122 remove sort
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
CHANGELOG: Deprecated the `getCanonicalCode` method on `SpanBuilder` ; replaced with `getStatusCode`
* Some cleanup in span land.
* Clean up the SpanBuilder javadoc to match the current APIs
* Scrub mentions of canonical status code
* Deprecate the getCanonicalCode method on SpanBuilder and replace with getStatusCode
* rename an internal method to make more sense
* Update api/src/main/java/io/opentelemetry/api/trace/SpanBuilder.java
Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>
* Update api/src/main/java/io/opentelemetry/api/trace/SpanBuilder.java
Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>
* Update api/src/main/java/io/opentelemetry/api/trace/SpanBuilder.java
Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>
* add tests for the deprecated method
Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>
* Replace all assertions with AssetJ's assertThat
Remove uses of JUnit 4 and JUnit 5 assert* where a functional equivalent exists in AssertJ. JUnit 5's assertThrows remains.
Fixes#1994
* fixup! Replace all assertions with AssetJ's assertThat
* OT Shim: Return null for activeSpan() if it's DefaultSpan.
* Clarify that the null case for ScopeManager.active()
* Use DefaultSpan.getInvalid() to do the actual comparison.
* Expose the OT Tracer shim as done by related classes.
We don't need to expose the actual TracerShim type;
we are now exposing a pair of methods to create the
shim layer.
* Remove Trace class
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Fix check
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Fix comments
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* use OT by default in shim
Signed-off-by: Pavol Loffay <ploffay@redhat.com>