Commit Graph

63 Commits

Author SHA1 Message Date
Anuraag Agrawal 58bcf7fe88
Deprecate tracermanagement and SDK global access (#2547)
* Deprecate SdkTracerManagement

* Deprecate global SDK

* Deprecate more

* Fix

* Cleanup

* Fix

* Handle test order random

* Collector removed queued_retry
2021-01-21 14:39:32 +09:00
Bogdan Drutu ca661b8c40
Avoid using inner classes in SpanData (#2495)
* Avoid using inner classes in SpanData

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

* Javadoc cleanups

* Remove non-existent type param

Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-01-12 19:12:00 -08:00
John Watson 5daa50ffdc
Mark a few more modules as alpha release status (#2436)
* mark a few more modules as alpha release status

* alphacate a few more modules

* remove the copyright/license from gradle.properties
2021-01-07 20:30:53 -08:00
Anuraag Agrawal 8fc4e627ca
Reduce usage of GlobalOpenTelemetry (#2386)
* Reduce usage of GlobalOpenTelemetry

* Cleanup
2020-12-23 10:17:46 +09:00
Anuraag Agrawal 6954d1f624
Use normal filesystem-based Gradle paths. (#2332)
* Use normal filesystem-based Gradle paths.

* Update workflow by making agnostic to jacoco project name

* More merge
2020-12-18 12:07:33 +09:00
Anuraag Agrawal 17fa4e9c97
Only apply java-library to projects and configure reactively. (#2319)
* Use java-library

* Only apply java-library to projects and configure reactively.

* Consistency

* Cleanup
2020-12-17 09:11:44 +09:00
Bogdan Drutu 25bf879df7
Split global functionality into a separate class (#2233)
This ensure clear separation of functionality. This PR does not change any functionality, it just restructures the code to separate global functionality from
the Default implementation. Also helps to ensure that Global initialization does not happen by mistake when working only with the default implementation.

Also it helps with methods like `OpenTelemetry.get()` and `OpenTelemetry.set()` to understand they are interacting with global instance

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-15 10:27:35 -08:00
Anuraag Agrawal 91dc119181
Move Sdk to be prefix of implementation classes instead of suffix/midfix. (#2292) 2020-12-14 11:59:28 -08:00
Anuraag Agrawal 4762c6a25d
Remove ReadableAttributes (#2187)
* Remove ReadableAttributes

* Don't rewrite history

* Drift
2020-12-03 11:26:24 -08:00
Anuraag Agrawal f8b9f0ac6a
Expose BaggageEntry / Metadata as interfaces and add asMap (#2177)
* Expose BaggageEntry / Metadata as interfaces and add asMap

* Disclaimer
2020-12-02 10:40:46 -08:00
Sergei Malafeev 49b3e68b92
handle case insensitive logic for keys on context extraction in OpenTracing TracerShim (#2133)
* #2122 handle case insensitive logic for keys on context extraction in OpenTracing TracerShim

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

* #2122 fix test

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

* #2122 remove sort

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
2020-12-01 16:14:45 +09:00
Anuraag Agrawal ac672e56bf
Update dependencies (#2115) 2020-11-21 09:39:27 -08:00
John Watson 1fe334ff12
Some cleanup in span land. (#2062)
CHANGELOG:  Deprecated the `getCanonicalCode` method on `SpanBuilder` ; replaced with `getStatusCode`

* Some cleanup in span land.
* Clean up the SpanBuilder javadoc to match the current APIs
* Scrub mentions of canonical status code
* Deprecate the getCanonicalCode method on SpanBuilder and replace with getStatusCode

* rename an internal method to make more sense

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

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

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

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

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

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

* add tests for the deprecated method

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>
2020-11-11 18:34:07 -08:00
Anuraag Agrawal b5efbcf187
Move builders to top level. (#1958)
* Move builders (and TraceStateEntry) to top level.

* Revert Entry

* Fix and more revert

* Drift
2020-11-10 14:50:37 +09:00
Marius Volkhart 3e31fd91aa
Replace all assertions with AssetJ's assertThat (#2042)
* Replace all assertions with AssetJ's assertThat

Remove uses of JUnit 4 and JUnit 5 assert* where a functional equivalent exists in AssertJ. JUnit 5's assertThrows remains.

Fixes #1994

* fixup! Replace all assertions with AssetJ's assertThat
2020-11-07 14:48:00 -08:00
Anuraag Agrawal 9121c61121
Add coverage of exceptional cases (and some handling) to opentracer shim. (#2034) 2020-11-06 07:56:51 -08:00
Carlos Alberto Cortez 5195622181
Add Getter.Keys() with Jaeger Baggage support. (#1549) 2020-11-05 12:51:07 +01:00
Anuraag Agrawal 28905b7e05
Expose foreach consumer instead of Entry for baggage. (#1982) 2020-11-04 13:41:30 -08:00
Bogdan Drutu 18d45beb4f
Remove inmemory exporter artifact, move to sdk-testing (#1991)
* Remove unused class InMemoryTracing, junit5 helper is enough

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

* Remove inmemory exporter artifact, move to sdk-tracing

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-04 08:18:01 -08:00
Bogdan Drutu 01aa248356
Change opentracing testbed to use the junit5 extension (#1989)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-03 15:22:42 -08:00
Anuraag Agrawal db93a841ed
Rename exporter artifacts to singular (#1984)
Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-03 14:24:00 -08:00
Anuraag Agrawal 390d92e49a
Rename folder names from underscore to hyphen (#1968) 2020-11-03 14:46:40 +09:00
Bogdan Drutu 2379965a97
Use underscore instead of dash sign in the directory name. (#461) 2019-07-09 07:12:29 -07:00
Yang Song da7ad86bee Move HTTP and binary trace context format to trace.propagation. (#450) 2019-06-28 10:23:01 -07:00
Yang Song 5a1681855f Rename TraceContextFormat to HttpTraceContext. (#449) 2019-06-28 09:29:54 -07:00
Carlos Alberto Cortez 182856289d
OT Shim: Add a super basic InMemoryTracer. (#415)
* Add a super basic InMemorTracer for the OT Shim tests.
2019-06-21 16:45:34 +02:00
Carlos Alberto Cortez 7cd91aff2a OT Shim: Return null for activeSpan() if it's DefaultSpan. (#399)
* OT Shim: Return null for activeSpan() if it's DefaultSpan.

* Clarify that the null case for ScopeManager.active()

* Use DefaultSpan.getInvalid() to do the actual comparison.
2019-06-11 08:33:28 -07:00
Carlos Alberto Cortez c2c7ed4975 Make Link an interface. (#395)
* Make Link an interface.

* Rename LinkTest to SpanDataLinkTest.
2019-06-07 09:45:10 -07:00
Carlos Alberto Cortez c75cc68123 Clean up the Link handling in Span. (#388)
* Clean up the Link handling in Span.

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

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

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

Co-Authored-By: Armin Ruech <armin.ruech@gmail.com>
2019-06-06 11:30:07 -07:00
Carlos Alberto Cortez 60013e3de6
OT Shim: Small cleanup of the public TraceShim class. (#374)
* Make the public methods static.
* Update the documentation.
2019-06-04 23:17:51 +02:00
Carlos Alberto Cortez b9c7c6bacc
OT Shim: Handle the specific TextFormat Inject/Extract formats too. (#372) 2019-06-04 19:53:08 +02:00
Carlos Alberto Cortez 745a707720
OT Shim: Only set Span.Kind at build time if it is not null. (#373) 2019-06-04 19:46:57 +02:00
Carlos Alberto Cortez c8f0f7cf9c
Span parent cleanup (#296)
* Set the Span's parent from its Builder.
* Add Span.Builder.setNoParent().
2019-05-17 18:30:50 +02:00
Carlos Alberto Cortez 37a2e5bc62
Clean up the asChildOf()/addReference code in the OT shim. (#254) 2019-05-14 15:57:40 +02:00
Bogdan Drutu 4bf821d821
Cleanup gradle files. (#297) 2019-05-13 17:33:39 -07:00
Carlos Alberto Cortez cfddecb101
Expose the OT Tracer shim as done by related classes. (#250)
* Expose the OT Tracer shim as done by related classes.

We don't need to expose the actual TracerShim type;
we are now exposing a pair of methods to create the
shim layer.
2019-05-08 17:53:46 +02:00
Pavol Loffay 3cc0af53af
Remove Trace class (#252)
* Remove Trace class

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Fix check

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Fix comments

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* use OT by default in shim

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-05-07 17:50:45 +02:00
Carlos Alberto Cortez 8b1865303a
Update our OpenTracing dependency to 0.33.0 (#249) 2019-05-06 20:27:26 +02:00
Carlos Alberto Cortez bddd3d0b23
Report an error for the OOB Span calls. (#247) 2019-05-06 16:12:58 +02:00
Bogdan Drutu ca0ec9dfa8
Replace everywhere OpenConsensus with OpenTelemetry (#244)
* Replace everywhere OpenConsensus with OpenTelemetry

* Fix javadoc references.

* Update javadoc exclude in the api.
2019-05-02 13:46:04 -07:00
Carlos Alberto Cortez 354e776ebf Rename TextFormat to HttpTextFormat, and related. (#188)
* Rename TextFormat to HttpTextFormat, and related.

* Correct a TextFormat mention in the inline docs.

* Clean some inline bits.

* Fix the build.
2019-04-30 12:08:53 -07:00
Carlos Alberto Cortez 1421c9482e
Set status based on error, either true or false. (#227) 2019-04-30 17:57:20 +02:00
Bogdan Drutu 9217bde780
Move SpanBuilder as inner class to Span (#203) 2019-04-25 08:24:44 -07:00
Carlos Alberto Cortez 27381adaad Use builtin constants/members in the OT Shim for Span/SpanBuilder. (#210) 2019-04-25 08:23:43 -07:00
Carlos Alberto Cortez 0cd1db2b27 Make core classes interfaces. (#194) 2019-04-24 12:00:25 -07:00
Bogdan Drutu 58b58c7fbe
Move all propagation formats to context and remove from the package. (#159) 2019-04-18 14:55:55 -07:00
Bogdan Drutu 62728d9002
Cleanup exceptions and comments for binary formatters. (#154) 2019-04-18 12:48:03 -07:00
Bogdan Drutu 8b61ddfc9f
Move TextFormat in the context. (#133)
* Move TextFormat in the context.

* Fix the shim to not expect exception.
2019-04-18 10:51:42 -07:00
Carlos Alberto Cortez 1d8bdd04d2 Do set the Span name for the OT shim. (#150) 2019-04-18 10:50:37 -07:00
Carlos Alberto Cortez f33cc0b94f
Support child/parent Span setup for the OT shim. (#142) 2019-04-18 16:54:10 +02:00