* Allow users to access the default Clock and TestClock
* Update TestClock API
* Doc
* Fix
* html
* Less newlines
* Update sdk/common/src/main/java/io/opentelemetry/sdk/common/Clock.java
Co-authored-by: John Watson <jkwatson@gmail.com>
Co-authored-by: John Watson <jkwatson@gmail.com>
* Implement handling the OTEL_SERVICE_NAME env var.
* Update to use the semconv module and attributes testing helpers.
* add unit tests for testing API additions
* Add a new module for extensions to the tracing APIs.
Includes one simple possible example.
* formatting
* rename and add javadoc
* Clean up & simplify based on feedback
* rename the module to just incubator
* Move to a package named more like the core api trace package.
* repackage to match the module
This helps exporter to have access directly to bytes, hex or any other format we will expose for the ids in the SpanContext.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Migrate to using gradle platform to manage dependency versions instead of global variables.
* Remove unused and fix test
* Revert test yolo
* Workaround test ordering issue by just merging them
* Spot
* Deprecate SdkTracerManagement
* Deprecate global SDK
* Deprecate more
* Fix
* Cleanup
* Fix
* Handle test order random
* Collector removed queued_retry
* Remove dependency on metrics from sdk:all
* Update sdk/all/build.gradle
Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
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>
* Update types to reflect the names in proto
NON_MONOTONIC_SUM will be soon merged with SUM and offer the "isMonotonic" as a property.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Update names to follow, type + aggregation pattern
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Detect GC leaks of scopes in StrictContextStorage.
* More
* Finish
* Force GC more aggressively
* Cleanup
* Vendor code directly
* Copy test too
* Try waiting more
* ep
* oops
* Remove from build.gradle
* Drift
* Log on multiple
* Cleaner ourselves.
* EP
* Move into if
* Revert accidental
* Add assertj helpers for asserting traces and expose from the junit5 helper.
* Style and stability of map
* Revert rename, any order comes in future.
* Add coverage for protected method implementations.
* Test hasTraceId
* Check hasTraceId failure too.
* Add a StrictContextStorage which keeps track of scope open / close to throw errors when it's incorrect for tests.
* Separate out SettableContextStorageProvider
* Check noop too
* Update sdk/testing/src/main/java/io/opentelemetry/sdk/testing/context/StrictContextStorage.java
Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
* Add a JUnit5 extension for setting up OpenTelemetry in a test.
* git add
* Split API and management accessors.
* Update sdk/testing/src/main/java/io/opentelemetry/sdk/testing/junit5/OpenTelemetryExtension.java
Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.com>
Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.com>