Commit Graph

8 Commits

Author SHA1 Message Date
dengliming 71ba8e1b87
Use the concise license header without the year (#1623)
* Use the concise license header without the year

* Use the concise license header without the year
2020-10-02 22:42:53 +09:00
Sergei Malafeev f13fd58d25
#1372 Have Propagators expose only a singleton instance (#1622)
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
2020-09-07 10:47:05 -07:00
Sergei Malafeev 88582202c4
Rename 'HttpTextFormat' to 'TextMapPropagator' (#1586)
* #1581 Rename 'HttpTextFormat' to 'TextMapPropagator'

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* fix long line

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* add change log entry

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* add change log entry

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
2020-08-26 08:19:48 -07:00
Uladzislau Kiva 5aa00c57c3
Iterations benchmark (#1151)
* test: use iterations in benchmarks

* test: use iterations in benchmarks

* docs: added javadoc
2020-04-28 11:33:45 -07:00
Carlos Alberto Cortez 690651b65a
Context propagation update (OTEP 66) (#720)
* Initial Propagators refactor.

* Add tests for the new propagators changes.

* Make the SDK compile/pass.

* Make the OT shim compile/pass.

* Make contrib components compile/pass.

* Improvement over Span/SpanContext handling in Context.

* Add Span.setParent(Context) overload.

* Do not provide default values for Span/SpanContext keys in Context.

* Improve the Context's active state handling.

* Rename DistributedContext to CorrelationContext.

* Improve names for correlationcontext's ContextUtils methods.

* Don't provide an automatic default for current CorrelationContext.

* Improve the client-server example after the recent changes.

* Adds CorrelationContext.Builder.setParent(Context) overload.

* s/be/become.

* Fix javadoc.

* No need to use diamond.

* Simply import withScopedContext().

* Fix the API/SDK build.

* Remove the builder from the Propagators interface.

* Fix name.

* Use Collections.emptyList() directly.

* Rename Propagators to ContextPropagators.

* Move context/ members in api/ to context_prop/

* Add check/tests for null scoped Contexts.

* Rename ContextUtils classes to better alternatives.

* Update the context* util classes.

* Make the code compile after the latest master merge.

* Cache the fields() in our default composite propagator.

* Remove the overloads of setParent(Context) for now.

* Use DefaultSpan for the tests instead of calling getTracerProvider()

* Fix the sdk testbed artifact build.

* Make the B3 propagator comply with the new propagator API.

* Simplify the HttpTraceContextTest tests.

* Simplify the ContextUtils* classes handling of default values.

* Minor nit.

* Update api/src/main/java/io/opentelemetry/OpenTelemetry.java

Co-Authored-By: Giovanni Liva <giovanni.liva@dynatrace.com>

* Annotate ContextPropagators with ThreadSafe instead of Immutable.

* Do not use the fully qualified ContextUtils identifier.

* Remove SpanContext support from TracingContextUtils.

* Rever to using non-defaulted key for TracingContextUtils.

* Revert the default keys for CorrelationsContextUtils.

Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.com>
2020-03-20 13:38:05 -07:00
Bogdan Drutu 1f202a95ea
Cleanup jmh and trace context benchmarks (#920)
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-02-24 13:56:58 -08:00
Bogdan Drutu 9e1882f06a
Fix errorprone errors and re-enable errorprone for jmh (#887)
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-02-19 10:57:16 -08:00
Uladzislau Kiva 1fced4898f
Http trace context benchmark (#815)
* test: add benchmarks for http trace context extract and inject

* test: add benchmarks for http trace context extract and inject

* docs: add docs

* style: apply google code style

* style: format jmh.gradle, use not deprecated archiveFileName

* test: add params for trace id and span id

* fix: fix merge conflicts

* feat: use HashMap move params to inner state

* feat: use same measurement params

* fix: apply google code style

* fix: extract span creation for more clear benchmark

* test: use vector of traceparents, increase iterations to 50k

* style: apply google code style

* feat: use vector of traceparents in inject benchmark
2020-02-18 14:36:06 -08:00