Commit Graph

1284 Commits

Author SHA1 Message Date
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 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
dengliming ac1099ee9b
Update the zipkin exporter Span Status handling (#2050)
CHANGELOG: Zipkin exporter has had it's handling of Span Status to match the specification.

* Update the zipkin exporter Span Status handling

* Fix review

* Remove unneeded check null
2020-11-11 12:36:05 -08:00
Carlos Alberto Cortez 56b1c23ac4
Do not export counters with no points. (#1978)
CHANGELOG: counters with no points are no longer exported via the OTLP exporter
2020-11-11 12:34:29 -08:00
John Watson 58ccf97929
Switch the key/value pair sorting to mergesort, because it is stable (#2049) 2020-11-11 08:04:42 -08:00
John Watson f8d7a1ce66
update the changelog 2020-11-10 (#2057)
* update the changelog 2020-11-10

* Add batch recorder update

* Add an item for the storage provider default
2020-11-10 18:29:43 -08:00
dengliming 33db03bc05
Add a way to enforce default context storage implementation (#2039)
* Add a way to enforce default context storage implementation

* Fix review

* Add testcase

* Use junit_pioneer

* Change the methods to be package-private

* Add some comments

* Remove DefaultContext.threadLocalStorage

* Fix review
2020-11-10 11:09:29 -08:00
John Watson 5ea50d3104
Make the BatchRecorderSdk actually batch the recordings (#2007)
* Make the BatchRecorderSdk actually batch the recordings
Rather than just forwarding them immediately.

* rework the batch recorder to use a queue of recordings

* remove an allocation per recording by introducing some typed classes
2020-11-10 09:44:16 -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
John Watson 813025a3fb
Update the QUICKSTART.md for the 0.10.0 release. (#2048) 2020-11-09 18:27:54 -08:00
Anuraag Agrawal 1883c578bd
Add unit to start, end and event timestamp accepting methods in Span. (#1969)
* Add unit to timestamp accepting methods in Span.

* end timestamp

* Merge

* Merge

* Add Instant versions too
2020-11-09 16:19:52 -08:00
Anuraag Agrawal 9063c385d9
Implement baggage using array of key/value pairs instead of Map. (#2016)
* Implement baggage using array of key/value pairs instead of Map.

* Cleanup
2020-11-09 08:54:22 -08: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
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
John Watson 1512a53704
publish the CHANGELOG for the 0.10.0 release (#2026)
* publish the CHANGELOG for the 0.10.0 release

* Add a late-breaking breaking change

* add some thanks

* Add unreleased items, post 0.10.0
2020-11-06 07:57:10 -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
John Watson 1a7a117a16
remove the enable.docker.tests gradle property since TestContainers handles it now (#2028) 2020-11-06 13:48:40 +09:00
John Watson d69752a6be
Move the SPI interfaces to .spi.* packages (#2005) 2020-11-06 11:08:35 +09:00
dengliming 16bb99b028
Provide default implementations for SpanProcessor.shutdown and forceFlush (#2025)
* Provide default implementations for SpanProcessor.shutdown and forceFlush

* Fix review
2020-11-05 16:33:30 -08:00
John Watson a5f7286e5c
Update the examples for v0.10.0 (#2030)
* Update the examples for v0.10.0

* make sure to install the propagator for the client/server examples

* rename method to be more consistent
2020-11-05 16:32:58 -08:00
Anuraag Agrawal 9c4c52dfee
Switch animal sniffer signature to gummy bears. (#2015) 2020-11-06 08:56:26 +09:00
John Watson 04ee52881f
Revert "Add paths-ignore for PR Build (#2017)" (#2031)
This reverts commit 72c88b61
2020-11-05 15:49:09 -08:00
dengliming 72c88b6116
Add paths-ignore for PR Build (#2017)
* Add paths-ignore for PR Build

* Update pr-examples-build.yml
2020-11-05 08:29:20 -08:00
Anuraag Agrawal 98ac11ce5a
Only deploy to artifactory when version is snapshot version. (#2023) 2020-11-06 00:08:52 +09:00
Carlos Alberto Cortez 4aba70877c
Push README updates. (#2024) 2020-11-05 16:03:42 +01:00
Carlos Alberto Cortez 5195622181
Add Getter.Keys() with Jaeger Baggage support. (#1549) 2020-11-05 12:51:07 +01: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
John Watson d0e0b5a553
Keep Span Attributes in order, as the spec strongly suggests. (#2004) 2020-11-05 11:30:07 +09:00
Brian Ashby ed71c41a41
Update CHANGELOG 0.10.0 formatting and edit entries (#2009)
* update unreleased changelog formatting and edit entries

* Update CHANGELOG.md

Co-authored-by: John Watson <jkwatson@gmail.com>

Co-authored-by: John Watson <jkwatson@gmail.com>
2020-11-04 18:19:27 -08:00
Zoe ea9888b8b9
Add OpenCensus shim (#1863)
* Add OpenCensus shim

* Fix dependencies

* Review changes

* Add interoperability test

* Add interoperability test

* Add interoperability test: all opencensus spans

* Fix license

* fix build.gradle

* fix build.gradle

* Pull upstream

* Review changes

* Formatting

* Merge branch 'master' of github.com:open-telemetry/opentelemetry-java into opencensus-migration

# Conflicts:
#	all/build.gradle
2020-11-04 17:17:43 -08:00
John Watson 392e55bf98
Add the combined b3 header to the propagator fields (#2008) 2020-11-04 14:37:48 -08:00
Anuraag Agrawal 28905b7e05
Expose foreach consumer instead of Entry for baggage. (#1982) 2020-11-04 13:41:30 -08:00
John Watson a833fcab15
Add CHANGELOG entries for 0.10.0 (#2006) 2020-11-04 13:27:46 -08:00
Bogdan Drutu 2dfc417e2d
Rename package name for sdk extensions to singular extension (#2002)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-04 12:26:43 -08:00
Bogdan Drutu 381133ab26
Remove testbed artifact, add testbed tests to trace sdk (#1999)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-04 09:00:33 -08:00
Bogdan Drutu 6f482a17f1
Update subprojects in all, probably need to do it automatically (#2001)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-04 08:46:07 -08:00
Bogdan Drutu 098584497d
Fix tests in the all package, update extension package, add support for exporter package (#2000)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-04 08:43:17 -08:00
Bogdan Drutu e8ba8317fd
Move semantic conventions script to buildscripts (#1998)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-04 08:30:23 -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
Anuraag Agrawal 5be613a3f0
Replace EndSpanOptions.Builder with factory. (#1934)
* Replace EndSpanOptions.Builder with factory.

* create

* Remove class completely
2020-11-04 13:33:10 +09:00
Bogdan Drutu 94fcaaed77
Remove unused class InMemoryTracing, junit5 helper is enough (#1990)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-04 13:32:15 +09:00
Bogdan Drutu 3014bb7fa0
Rename package name for extensions to singular extension (#1995)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-03 18:23:31 -08:00
Bogdan Drutu 139fcf261d
Fix proto generated files package for jaeger extension (#1993)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-03 17:09:50 -08:00
Anuraag Agrawal e5cf181ed9
Expose foreach consumer instead of entries for trace state. (#1979)
* Expose foreach consumer instead of entries for trace state.

* o-public
2020-11-03 16:41:27 -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
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
Bogdan Drutu faf6b9f15e
Change testbed to use the junit5 extension (#1988)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-03 15:22:11 -08:00
Anuraag Agrawal 37cce8dbca
Replace LabelConsumer with BiConsumer (#1980) 2020-11-03 15:21:52 -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