Commit Graph

26 Commits

Author SHA1 Message Date
Nikita Salnikov-Tarnovski 7aca0d9192
Apply bom imports only if needed (#1281) 2020-05-29 12:35:15 -07:00
John Watson d7f6d5a641
Extract SpanData to an interface (#1218)
* 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.
2020-05-14 18:10:38 -07:00
Bogdan Drutu 5dff1b9165
Remove unnecessary throws statements (#1205)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-05-12 10:54:16 -07:00
Bogdan Drutu bcacf39a9c
Apply intelij inspect suggestions for Java code (#1196)
* Apply intelij inspect suggestions for Java code

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Fix comments.
2020-05-11 16:54:39 -07:00
Giovanni Liva 4bcfdb703f
Array values for span attributes (#807)
* [API] - Add Arrays for span attributes

* [SDK] - Add Arrays for span attributes

* [Exporters/Shim] - Add Arrays for span attributes

* add tests

* Adjust jaeger exporter to specification. Add tests.

* Fix checkstyle naming issue

* Add further tests.

* Align null value behavior of attributes with spec

* fix javadoc @since

* API must not crash on misusage of AttributeValue

* API - Remove Attribute ArrayValues from Span surface

* Immutable String array values for AttributeValue

* Immutable values for AttributeValue arrays

* ./gradlew goJF

* Implement ArrayAttribute

* Rebase and add tests

* Adapt RecordEventsReadableSpan
2020-04-21 11:08:24 -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
Mike Goldsmith 577bab0032
move AttributeValue to common package (#1005) 2020-03-12 12:54:00 -07:00
Bogdan Drutu 56719f02b6
Update InMemoryTracing to use builder, and limit the public API. (#947)
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-02-28 12:44:49 -08:00
Bogdan Drutu 5a09b818d9
More gradle cleanups (#910)
* More gradle cleanups, separate jmh and jmhreport config

Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>

* Remove the need to includ jmhreport

Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>

* Only projects with the plugin maven-publish will be published

Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-02-24 09:58:04 -08:00
Bogdan Drutu a148263597
Switch to use pluginManagement, Use gradle plugin for jmh. (#903)
* 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
2020-02-21 10:19:51 -08:00
Giovanni Liva b0d42dd4cc
Rename TracerRegistry -> Tracer Provider (#879)
* Rename TracerRegistry -> Tracer Provider

* Add comment to address the provider name

* gradlew goJF
2020-02-20 07:26:13 -08:00
Bogdan Drutu 38d9352a84
Move SpanData to data package, consistent with metrics. (#848)
* Move SpanData to data package, consistent with metrics.

Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>

* Update SpanDataTest.java
2020-02-11 17:53:23 -08:00
Bogdan Drutu 24b1813525
Cleanup sdk.trace API (#804)
* Cleanup sdk.trace API

Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>

* Make TracerSdk public

Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-01-28 12:49:36 -08:00
Jonathan Giles ecad8609aa Introduce automatic module names into all libraries being built. (#781)
* 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
2020-01-22 18:22:00 -08:00
Tyler Benson 7b601b1ad0 Rename Setter.put to Setter.set (#769)
Improving consistency and cohesion of naming.
2020-01-17 13:54:07 -08:00
John Watson 91053c45c8 rename the factories to registries (#725) 2020-01-06 20:11:02 -05:00
Bogdan Drutu 69a0f465cb
Cleanup deprecated methods in TracerSdk (#651)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-30 15:12:46 -07:00
Bogdan Drutu ce1cd9c3bd
Remove Timestamp and change start/end times to use epoch nanos (#646)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-28 19:51:39 -07:00
Bogdan Drutu d6befaf711
Remove special timestamp definition (#619)
* Remove sepcial timestamp definition

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Update api/src/main/java/io/opentelemetry/trace/Span.java

Co-Authored-By: Armin Ruech <armin.ruech@gmail.com>

* ./gradlew goJF

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* fix build

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-22 18:14:55 -07:00
Carlos Alberto Cortez a10e918e59 Move InMemorySpanExporter to exporters/ (#618) 2019-10-21 17:33:16 -07:00
John Watson 08d58837c1 Convert the export system to use SpanData (#587)
* SpanData Export refactoring

* getting our span data exporter work to use the new SpanData implementation

* getting up to date with the moved Timestamp

* Update post rebase

* A few cleanups from PR comments

* A few more cleanups.
2019-10-05 00:39:30 -04:00
Pavol Loffay fe19a23c9e Report span which is recording events (#503)
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-10-02 07:11:40 -07:00
Bogdan Drutu 1aa49037df
Update errorprone, remove stale disabled checks. (#579)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-09-30 11:43:23 -07:00
Bogdan Drutu 9b294a6741
Remove -Xlint:-deprecation from compiler options (#578)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-09-30 08:54:16 -07:00
Carlos Alberto Cortez b50ca87607
Use a CountDownLatch to coordinate MultipleCallbacksTest. (#526)
Be more deterministic about this, as previous approaches
used sleep or sort by start time.
2019-09-13 15:02:32 +02:00
Bogdan Drutu 75811d4f41
Copy testbed for OpenTelemetry API (#513) 2019-08-26 11:09:16 -07:00