opentelemetry-java/api
John Watson ee435201b5
Immutable Attributes and Labels (#1304)
* prototype for class to replace Map<String, AttributeValue)

* safely copy the builder's data

* add the empty constant

* optimization for attributes with a single key/value

* Add an iterator/iterable and some simple tests

* fix animalsniffer complaint

* tests for de-duping and order-independent equality, plus removal of possibly unneeded access methods.

* clean up the sort&filter method a tad

* replace the iterator with a foreach method

* Make the Attributes parameterized by the value type.

* Add basic javadoc

* remove helper class; add a simple test for the builder; make the tests more robust

* Add a varargs method for creating an arbitrary number of key/value pairs.

* static import the check method, for consistency

* Refactor to have an interface and two implementations, with some shared logic.

* fix an accidental rename

* really fix it for real

* add a few more tests

* preserve the `setAttribute` names from existing Span API

* Replace the treemap sorting and filtering with a quicksort and post-filter.

* remove an unneeded list.

* switch to an abstract base class to remove some code duplication

* Updated docs based on feedback.

* Small change to use the builder for the empty implementations.
2020-06-08 17:16:39 -07:00
..
src Immutable Attributes and Labels (#1304) 2020-06-08 17:16:39 -07:00
README.md Add javadoc link to all readmes (#981) 2020-03-09 14:32:22 -07:00
build.gradle More gradle cleanups (#910) 2020-02-24 09:58:04 -08:00

README.md

OpenTelemetry API

Javadocs

  • Java 7 and Android 14 compatible.
  • The abstract classes in this directory can be subclassed to create alternative implementations of the OpenTelemetry library.