* 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>
* 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>
* subsume methods from AttributesKeys to AttributeKey
* remove missed instance of AttributesKeys
* make javadoc wording more representative of method intent
* Remove Descriptor from metrics data to be consistent with proto
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Remove references to descriptor
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* 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
* switch to java 8
* update the READMEs and use Object.equals in a couple of cases to test that we're really compiling for java 8/android 24.
* formatting
* use the newer release options for the build, and change the int test to not be java 7 any more.
* switch back to source/target compatibility
* sure wish I could run docker locally to test this out.
* This is a combination of 2 commits.
This is the 1st commit message:
WIP on converting to String-based SpanContext
don't hand out the byte arrays publicly, but require making copies
make sure to hand out fresh invalid byte arrays.
Use strings for span and trace ids.
Switch over to CharSequence instead of String for the ids
Fix a couple of places that were casting to String
Add some simple wrappers for the generated longs to save converting until the last moment to the character-based representation.
introduce a reusable threadlocal char buffer for generating random ids.
update for changes from upstream
Change the SpanContext to store the ids as Strings internally
Change the id access methods on SpanContext to be clearly labeled as the base16 representations
Add a new create method that allows specifying offsets for traceId and spanId CharSequences
Provide an option for creating a SpanContext from longs or Strings, optionally.
fix a typo
update from upstream
The commit message #2 will be skipped:
don't hand out the byte arrays publicly, but require making copies
* WIP on converting to String-based SpanContext
* Update the SpanContext to only store Strings internally for Trace and Span ids.
* remove dead files
* cleanup some CharSequence usages to String
* Update api/src/main/java/io/opentelemetry/trace/BigendianEncoding.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Update extensions/trace_propagators/src/main/java/io/opentelemetry/extensions/trace/propagation/B3PropagatorInjectorSingleHeader.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Update api/src/main/java/io/opentelemetry/trace/SpanId.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Update api/src/main/java/io/opentelemetry/trace/TraceId.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* updates from PR suggestion fubars
* some cleanup from PR feedback
* Switch back to String from CharSequence
* Get rid of the overload with the offsets
* Lots of bits of cleanup from PR feedback.
* more renaming of base16 to hex
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Makes Export methods async
This commit recognises that the export and flush methods of span and trace exporters can be, and often are, implemented with long-lived operations over networks. We therefore see that these method return types are represented using Java's Future type to account for this common behaviour.
* PR feedback
* Convert Link and Event types to use the new immutable Attributes
update from the upstream branch
update from parent branch changes
* move the limiting of attributes to a custom consumer class
* change Event to an interface with an impl to match
* make TimedEvent implement the Event interface
* don't make copies of already immutable event data
* copy the wrapped event, so as not to hold to user's data
* Extract SpanData to an interface.
* Move the inner link and event classes to the top level and rename for consistency.
* clean up a few errant references to the impl
* use the right annotation
* move the Link and Event back into the SpanData and give them simple names.
* Switch to use pluginManagement, Use gradle plugin for jmh.
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
* Fix jmh report
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
* Use ' for the moment for plugin ids in main gradle
* Remove the Android API level enforcement.
Keep the Java 7 enforcement.
* put android 14 enforcement back onto the API
* update based on PR comments
* put back android verification at api level 24
* Introduce automatic module names into all libraries being built.
* Centralise manifest config of automatic module name into root build.gradle file.
* Adding empty new lines
* WIP on cleaning up the testing-only accessors.
* more WIP on cleanup of the RERSpan
* re-add the 3 attributes and put them onto the SpanData
* reformat
* re-add and clean up the clock inheritance tests