* Replace OpenTelemetry with GlobalOpenTelemetry in javadoc code snippets
* use openTelemetry instread of GlobalOpenTelemetry
* replace one ome usage of GlobalOpenTelemetry
* Allow root Context to be overridden
Adds ContextStorage.root() to provide a way to customize the
implementation of the root Context when you don't want the
root to be an ArrayBasedContext.
* Update context/src/main/java/io/opentelemetry/context/ContextStorage.java
Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Add a task to compare public APIs for every stable module.
* add a few comments and make the build task depend on the japicmp task
* update the api diffs after rebasing.
* task must depend on jar
* a few script tweaks based on feedback
* small tweak to make it a little more kotlin-idiomatic
* refactoring to make the code more clear
* some more refactoring.
* make the latest released version a lazy val of the build script
* have the task depend on check, rather than build
* put all the API diffs into a central directory
* run at --info to diagnose CI issues
* try an older java 11 version
* try another combo
* remove the info logging
* Add tests and update behavior to verify propagators do not alter the context when failing to parse inputs.
* Ad a couple tests around null contexts
* formatting
There are some things left to be done:
* Decide if context package should also be opentelemetry-api-context.
* Cleanup internal packages, things that are used by only one artifact should be moved there.
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
- changes the return type of the fields() method in TextMapPropagator from List<String> to Collection<String>
and updated all implementations for consistency
* Add a way to enforce default context storage implementation
* Fix review
* Add testcase
* Use junit_pioneer
* Change the methods to be package-private
* Add some comments
* Remove DefaultContext.threadLocalStorage
* Fix review
* 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>
* Fixes ThreadLocalContextStorage to return root Context if not set on current thread
* Kick CI
* Change docs on ContextStorage.current to indicate that it can return null
* Kick CI