Commit Graph

1163 Commits

Author SHA1 Message Date
Bogdan Drutu 185d10e395
Serialize the entire trace flags not only the sample bit (#1774)
* Serialize the entire trace flags not only the sample bit

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

* Add test for more than just sampling bit in the context

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

* Update api/src/test/java/io/opentelemetry/trace/propagation/HttpTraceContextTest.java

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2020-10-23 13:33:41 +09:00
Anuraag Agrawal 23444d6e5c
Update google java format to 1.9 (#1854)
* Update google java format to 1.9

* Spotless

* Update Contributing.md
2020-10-23 12:47:10 +09:00
Bogdan Drutu 5e31e99877
Nit: move Context as first argument to SpanProcessor.onStart (#1866)
* Nit: move Context as first argument to SpanProcessor.onStart

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

* ./gradlew spotlessApply

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-22 19:28:36 -07:00
John Watson 14c2faf064
Simplify a call so that we don't have cycles in the TCU->Span call chain. (#1867) 2020-10-23 11:10:45 +09:00
Bogdan Drutu 52a6af86d4
Remove baggage sdk package, move tests to API (#1865)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-22 09:55:28 -07:00
Anuraag Agrawal ee03c5eabc
Remove unused BaggageManagerFactory SPI. (#1858) 2020-10-22 09:53:50 -07:00
Anuraag Agrawal 6ee9a19e09
Replace CircleCI badge with GitHub Actions (#1861) 2020-10-22 08:40:21 -07:00
Anuraag Agrawal 36a0339e15
Add a factory method for creating PropagatedSpan to allow auto-instrumentation to intercept the method. (#1859) 2020-10-22 08:39:28 -07:00
Anuraag Agrawal f4a1587c25
Increase Jaeger container timeout (#1856) 2020-10-22 16:36:43 +09:00
Anuraag Agrawal ed5136bcda
Move Span context accessors to Span static methods. (#1843)
* Move Span context accessors to Span static methods.

* Bad IDE

* More merge

* More merge
2020-10-21 20:02:58 -07:00
Anuraag Agrawal f5082d10f6
Context.with/get, AttributesBuilder/LabelsBuilder.set (#1838)
* Context.with, AttributesBuilder/LabelsBuilder.set

* put
2020-10-21 19:51:14 -07:00
Anuraag Agrawal 34e66a1175
Rename getContext to getSpanContext. (#1852) 2020-10-21 19:38:08 -07:00
Anuraag Agrawal ea1a0a0486
Rename OpenTelemetry interface methods to normal interface conventions. (#1842) 2020-10-21 19:21:57 -07:00
Anuraag Agrawal 4c85bb449e
Remove CircleCI build. (#1853) 2020-10-21 19:20:30 -07:00
John Watson f5c1971a96
Make the jaeger example send more spans to make sure that they get properly exported. (#1847) 2020-10-22 10:25:03 +09:00
Anuraag Agrawal 9791ffa5ba
Update error prone plugin to support toolchains. (#1851) 2020-10-22 09:40:22 +09:00
Anuraag Agrawal 6e557d0cb9
Add secrets to environment for publishing. (#1850)
* Add secrets to environment for publishing.

* Update .github/workflows/continuous-build.yml

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

Co-authored-by: John Watson <jkwatson@gmail.com>
2020-10-22 08:37:58 +09:00
John Watson f3df455d2b
Make Baggage implement ImplicitContextKeyed and make the BaggageUtils.withBaggage non-public. (#1849) 2020-10-21 16:05:25 -07:00
Anuraag Agrawal 6544923215
Extract an interface for the OpenTelemetry API to later allow an SDK … (#1805)
* Extract an interface for the OpenTelemetry API to later allow an SDK to implement it.

* Cleanups

* mine

* final

* Fix shortcuts

* Fix javadoc

* More merge
2020-10-21 12:33:50 -07:00
Anuraag Agrawal 057f93cee1
Publish snapshots from GitHub CI instead of CircleCI (#1845) 2020-10-21 07:57:09 -07:00
Anuraag Agrawal 082791503b
Upgrade to Gradle 6.7 and use toolchains feature to build on 11 and t… (#1829)
* Upgrade to Gradle 6.7 and use toolchains feature to build on 11 and test on 11/8.

* Debug (probably first JDK download taking some time)

* Remove now unnecessary java toolchain workarounds

* Remove debug

* Remove windows build for now

* bin

* Raise no_output_timeout since this change seems to eliminate cache and build doesn't finish.
2020-10-21 15:01:50 +09:00
John Watson e13e631847
Make the baggage API fully functional in the API (#1822)
* Make the baggage API fully functional in the API
and get rid of the BaggageManager that was needed previously.

* javadoc cleanup

* more javadoc cleanup

* make the ImmutableBaggage package access
2020-10-20 21:57:17 -07:00
Anuraag Agrawal 9efb503544
Fix build breakage due to conflicting merges. (#1844)
* Fix build breakage due to conflicting merges.

* Test too
2020-10-21 13:33:00 +09:00
John Watson f20b3d73a9
Change the sampling API to take a parent Context, rather than SpanContext (#1840) 2020-10-21 12:53:47 +09:00
dengliming c1fbaaf479
Update Jaeger exporter to conform to updated specification (#1839)
* Update Jaeger exporter to conform to updated specification

* Add default getDroppedAttributesCount method to Event
2020-10-20 19:29:29 -07:00
dengliming e1016d66e2
Fix Logger name (#1837)
* Fix Logger name

* Fix spotlessCheck
2020-10-20 19:28:37 -07:00
Anuraag Agrawal ecdfc391f2
Add a ContextValue interface to allow Context.withValue(value) withou… (#1827)
* Add a ContextValue interface to allow Context.withValue(value) without a key.

* Assertions

* Renames
2020-10-20 19:26:54 -07:00
Sergei Malafeev 17ef49abf7
Update Jaeger exporter to map Resources to process tags (#1800)
* #1609 Update Jaeger exporter to map Resources to process tags

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

* add resource attributes to process tags

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

* fix checkstyle error

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

* refactored according to review comments

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

* implement comments

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
2020-10-21 11:05:28 +09:00
Sergei Malafeev 3670a69722
Document precedence order is multiple context propagators are used (#1698)
* Document precedence order is multiple context propagators are used

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

* implement review comments

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
2020-10-20 14:07:00 -07:00
John Watson def5a23ca0
A small bit of cleanup in the HttpTraceContext integration test (#1836) 2020-10-20 11:58:55 +09:00
Anuraag Agrawal 894f53707c
Restore third party copyright headers in context package. (#1828) 2020-10-19 13:17:40 -07:00
dengliming c7a46022d4
Fix using default context storage implemenation in LazyStorage (#1823)
* Fix using default context storage implemenation in LazyStorage

* Use the single implementation if providerClassName property is unset

* Add unit tests for LazyStorage
2020-10-19 13:08:30 -07:00
Christian Neumüller 9b73fb06fd
Fix non-null carrier not working in extract. (#1835) 2020-10-19 13:07:02 -07:00
Anuraag Agrawal 3957d2a281
Synchronize access in TestLogExporter to make sure memory updates are synced. (#1831) 2020-10-19 12:50:53 -07:00
Anuraag Agrawal 511b6df23a
Loosen deadline check in metric exporter. (#1832) 2020-10-19 10:16:55 -07:00
Anuraag Agrawal cb646955f9
Increase timeout for context wrap test. (#1833) 2020-10-19 10:16:09 -07:00
dengliming fbfba34134
Update TraceConfig configuration option names (#1824)
* Update TraceConfig configuration option names

* Update span default limit config

* Update constant names
2020-10-18 12:00:03 -07:00
John Watson fe07cff3ba
Add a new Gauge metric type, and hook it up to Prometheus and OTLP exporters. (#1788) 2020-10-16 10:09:52 -07:00
John Watson c01112b973
fix examples broken by an errant script (#1814) 2020-10-16 17:59:16 +02:00
Anuraag Agrawal cc122e7e4c
Replace restassured test assertion with okhttp/jackson (#1817) 2020-10-16 08:13:18 -07:00
John Watson fa1e876df2
Move the stress test code to being a TestContainers-based test. (#1803)
* Move the stress test code to being a TestContainers-based test.
Upgrade testcontainers version to work with the latest docker-for-mac.
Add metrics in the OTLP exporter, to record success/failure of export.
Use the TestContainers annotation to disable those tests when docker isn't present.

* remove a bunch of commented out stuff that shouldn't have been added

* disable the test without docker

* use specific docker image tags to keep testcontainers from downloading the world

* delete unneeded file

* fix from upstream change
2020-10-15 19:30:38 -07:00
John Watson 57097873c8
rename StatusCanonicalCode to StatusCode (#1804) 2020-10-15 17:55:05 -07:00
Christian Neumüller 62a96ae1ed
Add .gitattributes. (#1798)
* Add .gitattributes.

This fixes spotlessCheck when checking out on windows with git core.eol=crlf and core.autocrlf=true.

Note that for git itself, the eol=lf next to the text=auto changes nothing, but spotless tries
enforce the core.eol line endings anyway.

* Adjust .gitattributes towards instrumentation's
2020-10-15 16:03:55 -07:00
Xi Xia 329d7876bd
toString calls through getDescription (#1813) 2020-10-15 15:58:16 -07:00
hengyunabc 572d6abad3
Use the same version of gradle (#1806) 2020-10-15 11:01:52 -07:00
Bogdan Drutu b73a063901
Remove getCurrentContext and withSpan from Tracer (#1809)
* Remove getCurrentContext and withSpan from Tracer

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

* Remove old java7 example

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-15 10:58:41 -07:00
Anuraag Agrawal 2d0f91b538
Remove DefaultSpan from public API. (#1791)
* Cleanup

* Fix comment

* isValid not valid
2020-10-15 11:37:03 +09:00
Anuraag Agrawal 0ceff17dfa
Remove since tags until 1.0.0 (#1796)
* Remove since tags until 1.0.0

* Spotless
2020-10-14 09:29:27 -07:00
Anuraag Agrawal 7d269be811
Publish -context package (#1797) 2020-10-14 08:27:00 -07:00
Christian Neumüller e539890037
Add Context arg to SpanProcessor.OnStart. (#1792) 2020-10-14 11:34:19 +09:00