- changes the return type of the fields() method in TextMapPropagator from List<String> to Collection<String>
and updated all implementations for consistency
CHANGELOG: Breaking Change - the `@WithSpan` annotation has been moved to the `io.opentelemetry.extension.annotations` package in the `opentelemetry-extension-annotations` module .
CHANGELOG: Added support for propagating the B3 debug flag
* b3 propagator supports inject/extract of debug flag
* rename context key
* Update extensions/trace-propagators/src/main/java/io/opentelemetry/extension/trace/propagation/B3Propagator.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* changes as per code review comments
* added constants for b3propagator debug propagation
* tidy up
* changed b3 propagator to store a boolean in context
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* changed B3Propagator to default to inject/extra single header, and allow multiple headers to be injected by creating propagator via a builder
* changed to return Optional instead of null from B3PropagatorExtractor
* tidy up method name in B3Propagator builder
* Use spotless for formatting / license check
* Apply formatting
* README
* Apply to example
* google-java-format 1.8 for now
* google-java-format 1.7 for now (last supporting Java 8)
* subsume methods from AttributesKeys to AttributeKey
* remove missed instance of AttributesKeys
* make javadoc wording more representative of method intent
* Remove Event interface, and it's usage
Based on the specification we are not required to expose this interface or have APIs that accept this interface.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Fix links to Event
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Fix more javadocs references to Event
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* de-duplicate fields in TraceMultiPropagator
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
* reformat
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
* de-duplicate fields in DefaultContextPropagators
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
* use containsExactlyInAnyOrder
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
* use LinkedHashSet to preserve order
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
* Add a generic type for the key on the ImmutableKeyValuePairs.
This necessitated changing the `get` to `getValue` to avoid clashing with the java.util.Map interface.
Also introduced convenience sub-interfaces for consuming labels and attributes, so consumers don't have to worry about the types if they don't want to.
* Make AttributesMap not extend map, and restore the get method name for Attributes.
* key class and implementation
* key class and implementation
* The code compiles
* little tweaks
* some cleanup, tests are passing
* remove AttributeValue and clean up misc. references to it.
* clean up some unused bits
* add a TODO
* a bit of cleanup; fix a todo
* update for changes from the main branch
* Change method to get the underlying key.
Move the key creators to a AttributesKeys class.
Hide the implementation classes and replace with interface use.
* use autovalue for the key implementations
* fix javadoc issues
* update benchmark keys, and a few tweaks from PR review
* Add javadoc notes to encourage using the lower-overhead attribute options.
* Add javadoc clarifying subclass responsibilities around empty keys.
* make the compareTo on AttributeKeyImpl null-safe, for extra safety
* fix formatting