John Watson
aac9284f83
Add a new module for extensions to the tracing APIs. ( #2962 )
...
* Add a new module for extensions to the tracing APIs.
Includes one simple possible example.
* formatting
* rename and add javadoc
* Clean up & simplify based on feedback
* rename the module to just incubator
* Move to a package named more like the core api trace package.
* repackage to match the module
2021-03-17 18:53:38 -07:00
Anuraag Agrawal
1ec484e2d6
Add event assertion, full attributes assertion, and fuzzy attribute value assertion. ( #2927 )
2021-02-24 08:02:08 -08:00
Bogdan Drutu
013643c707
Add package-info for all packages ( #2902 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-21 10:44:00 -08:00
Bogdan Drutu
7c038e00e9
Mark classes final, or hide ctor for testing classes ( #2847 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-17 15:18:46 -08:00
Bogdan Drutu
a633d1ee87
[Breaking Change] Remove metrics exporter from stable testing package ( #2857 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-17 12:29:05 -08:00
John Watson
f83c21638a
[Breaking Change] Rename TraceStateBuilder.set() to put() ( #2830 )
...
Provisionally resolves #2746
2021-02-17 08:16:24 -08:00
John Watson
20a1601089
[Breaking Change] Rename getEmpty() to empty() ( #2831 )
2021-02-17 08:15:23 -08:00
John Watson
920f79d151
clean up the javadoc and make examples pasteable ( #2824 )
...
* clean up the javadoc and make examples pastable
resolves #2817
* formatting
2021-02-17 12:31:08 +09:00
Anuraag Agrawal
0385f6d79b
Make StrictContextStorage package-private ( #2772 )
2021-02-08 19:03:35 -08:00
Bogdan Drutu
dbfd07faf8
[BREAKING CHANGE] Remove not very used method from SpanData ( #2722 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-05 20:34:54 -08:00
Bogdan Drutu
07b5ebe868
[BREAKING CHANGE] Remove not very used method from SpanData ( #2723 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-05 20:34:17 -08:00
Bogdan Drutu
d932baa919
Remove trivial usage of fromLong[s] methods ( #2730 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-05 20:28:00 -08:00
Bogdan Drutu
19c002471e
Move Span.Kind to the upper level as SpanKind ( #2646 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-02 12:27:54 -08:00
Bogdan Drutu
301a29d7a3
Move labels outside of the stable package ( #2647 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-02 10:24:06 -08:00
Bogdan Drutu
527b5f4549
Expose the SpanContext to the SpanData ( #2660 )
...
This helps exporter to have access directly to bytes, hex or any other format we will expose for the ids in the SpanContext.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-02 08:54:26 -08:00
John Watson
d16e51f798
Remove the remaining deprecated code from the project. ( #2612 )
2021-01-29 19:26:42 -08:00
Anuraag Agrawal
1a56b8b0d8
Migrate api / sdk projects to build.gradle.kts ( #2609 )
2021-01-29 10:10:40 -08:00
Anuraag Agrawal
32a63fb8e3
Migrate to using gradle platform to manage dependency versions instea… ( #2586 )
...
* Migrate to using gradle platform to manage dependency versions instead of global variables.
* Remove unused and fix test
* Revert test yolo
* Workaround test ordering issue by just merging them
* Spot
2021-01-27 13:54:58 +09:00
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
Anuraag Agrawal
b4218426ee
Prevent setting global OpenTelemetry twice. ( #2548 )
...
* Prevent setting global OpenTelemetry twice.
* Unneessary volatile
* Separate testing class
* Cleanup
* Delete
* Update api/all/src/main/java/io/opentelemetry/api/GlobalOpenTelemetry.java
Co-authored-by: John Watson <jkwatson@gmail.com>
Co-authored-by: John Watson <jkwatson@gmail.com>
2021-01-21 13:55:46 +09:00
Bogdan Drutu
cbcec6b359
Rename Point to PointData to suggest that it represents data reprezentation ( #2519 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-01-14 13:05:40 +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
Bogdan Drutu
61eafc62eb
Avoid using inner classes in MetricData ( #2493 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-01-13 11:31:24 +09:00
Anuraag Agrawal
fe78126aed
Use logunit instead of tedious jul handler modifications for testing ( #2425 )
2021-01-06 09:30:35 +09:00
Anuraag Agrawal
24ef29efea
Add SimpleSpanProcessor.create and deprecate SimpleSpanProcessorBuilder ( #2374 )
...
* Deprecate SimpleSpanProcessorBuilder
* Null test
2020-12-23 12:31:02 +09:00
Anuraag Agrawal
68b939faab
Remove most addspanprocessor mutator invocations. ( #2373 )
...
* Remove more addSpanProcessor mutations
* Merge
* Cleanup
2020-12-22 11:28:19 +09:00
Anuraag Agrawal
70f665992e
Migrate assertThrows -> assertThatThrownBy ( #2375 )
2020-12-21 08:57:33 -08:00
Anuraag Agrawal
94422d9dc0
Remove dependency on metrics from sdk:all ( #2356 )
...
* 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>
2020-12-18 08:16:04 -08: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
dengliming
718f512701
Make MetricExporter shutdown method returns CompletableResultCode. ( #2321 )
2020-12-16 09:11:50 -08:00
Anuraag Agrawal
8a369e3695
Make public src/main classes final where possible. ( #2309 )
...
* Make public src/main classes final where possible.
* methods
* Spot
2020-12-16 13:13:04 +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
Bogdan Drutu
d4bddd1fdf
Change MetricData to be consistent with protos, move creation to the Aggregation ( #2274 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-11 11:04:12 -08:00
Bogdan Drutu
ae63b9fbe7
Update types to reflect the names in proto ( #2243 )
...
* 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>
2020-12-09 13:13:32 -08:00
Anuraag Agrawal
469900eb34
Add a system property that can enable strict context checking for staging environments. ( #2195 )
2020-12-07 12:38:27 +09:00
Anuraag Agrawal
8697de9afa
Detect GC leaks of scopes in StrictContextStorage. ( #2164 )
...
* Detect GC leaks of scopes in StrictContextStorage.
* More
* Finish
* Force GC more aggressively
* Cleanup
* Vendor code directly
* Copy test too
* Try waiting more
* ep
* oops
* Remove from build.gradle
* Drift
* Log on multiple
* Cleaner ourselves.
* EP
* Move into if
* Revert accidental
2020-12-04 13:04:27 +09:00
Anuraag Agrawal
4762c6a25d
Remove ReadableAttributes ( #2187 )
...
* Remove ReadableAttributes
* Don't rewrite history
* Drift
2020-12-03 11:26:24 -08:00
Anuraag Agrawal
ca3714053f
Replace SpanData.hasRemoteParent/getParentSpanId with getParentSpanContext ( #2146 )
...
* Remove SpanData.hasRemoteParent
* Replace parentSpanId with parentSpanContext
* Update sdk/trace/src/main/java/io/opentelemetry/sdk/trace/RecordEventsReadableSpan.java
Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
* Keep parentId
Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
2020-12-01 09:50:11 -08:00
Christian Neumüller
bbe8702257
Rename HttpTraceContext to W3CTraceContextPropagator. ( #2116 )
...
* Rename HttpTraceContext to W3CTraceContextPropagator.
* Add javadoc.
2020-11-25 10:27:07 +09:00
Anuraag Agrawal
ac672e56bf
Update dependencies ( #2115 )
2020-11-21 09:39:27 -08:00
Anuraag Agrawal
0e013e5c73
Hide default context propagators implementation behind interface. ( #2089 )
...
* Hide default context propagators implementation behind interface.
* Deprecate
* Revamp
2020-11-20 10:58:34 +09:00
Anuraag Agrawal
9d17c6619a
Add assertj helpers for asserting traces and expose from the junit5 h… ( #2051 )
...
* Add assertj helpers for asserting traces and expose from the junit5 helper.
* Style and stability of map
* Revert rename, any order comes in future.
* Add coverage for protected method implementations.
* Test hasTraceId
* Check hasTraceId failure too.
2020-11-12 09:06:00 +09:00
Anuraag Agrawal
cdc725c3c3
Add AssertJ custom assertions for SpanData and ReadableAttributes. ( #2035 )
...
* Add AssertJ custom assertions for SpanData and ReadableAttributes.
* Simpler?
* Cleanup
2020-11-09 08:36:27 -08:00
Anuraag Agrawal
570924b4b7
Fix post-merge conflict in OpenTelemetryRule. ( #2014 )
2020-11-04 19:05:43 -08:00
Anuraag Agrawal
f01456bebd
Add a junit4 rule for OTel testing. ( #1996 )
...
* Add a junit4 rule for OTel testing.
* Docs to 4
* A bit more 4
* Volatile just in case
2020-11-05 11:37:51 +09: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
6dfbc14e19
Rename package name for exporters to singular exporter ( #1992 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-03 16:27:57 -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
Bogdan Drutu
2046ec050e
Move testing-internal artifact to sdk-testing ( #1987 )
...
* Move testing-internal artifact to sdk-testing
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Fix missed usage of TestSpanData
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-03 13:54:43 -08:00