Commit Graph

102 Commits

Author SHA1 Message Date
John Watson 1a7a117a16
remove the enable.docker.tests gradle property since TestContainers handles it now (#2028) 2020-11-06 13:48:40 +09:00
Anuraag Agrawal 9c4c52dfee
Switch animal sniffer signature to gummy bears. (#2015) 2020-11-06 08:56:26 +09:00
Anuraag Agrawal 98ac11ce5a
Only deploy to artifactory when version is snapshot version. (#2023) 2020-11-06 00:08:52 +09: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 338acd4816
Add some simplistic fuzz-based tests for the 2 built-in W3C propagators. (#1926)
* Add some simplistic fuzz-based tests for the 2 built-in propagators.

* remove unused gradle plugin
2020-10-29 17:57:25 -07:00
Anuraag Agrawal 3d69aa19a8
Restore source/targetCompatibility declarations for intellij to set version correctly and remo… (#1920)
* Restore source/targetCompatibility declarations for intellij and remove animalsniffer for java 8.

* Newer syntax
2020-10-29 08:11:15 -07:00
Marius Volkhart fc81232868
Update zPages readme (#1881)
* Update zPages readme

- Remove dependencies that are pulled in transitively from the Maven and Gradle snippets. They already don't include all of the transitive dependencies, so no need to only include some.
- Add a link to the blog post introducing zPages, to give more information.

* Modify updateVersionInDocs task to run on all projects

This Gradle task updates the project version number found in the README. It previously only ran on the root README, leaving subprojects like extensions out of date.

This commit applies the task to all projects, and modifies the text replacement to be more flexible to accommodate the many ways of declaring dependencies in Gradle.
2020-10-28 17:54:01 +09:00
Bogdan Drutu e7ac01c091
Set plugin versions in only one place (#1886)
Also update spotless plugin.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-27 16:36:32 +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
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
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
Anuraag Agrawal 492a8171e1
Add GitHub workflows to automate releases (#1781)
* Add GitHub workflows to automate releases

* Cleanup

* Tab

* Rename prepareRelease and manual patch release instructions.
2020-10-13 15:21:42 +09:00
Anuraag Agrawal 8228d34f3e
Mark up README (#1750) 2020-10-09 12:42:33 +09:00
Christian Neumüller 41bd0ab28a
Update wrapper declaration in build.gradle (#1769)
Follow-up for #1529.
2020-10-07 11:22:27 -07:00
Anuraag Agrawal 08c90f9ea4
Don't set packaging type explicitly since Gradle determines it automatically, set description for BOM project, and remove outdated bom publication configuration (#1758) 2020-10-06 08:40:09 +09:00
Carlos Alberto Cortez df913dd7bb
Start 0.10.0 development cycle (#1756) 2020-10-05 13:07:30 -07:00
Anuraag Agrawal 21fbb36d81
Add an OpenTelemetry context mechanism. (#1658)
* Add an OpenTelemetry context mechanism.

* Moar

* Extracted interfaces

* More context

* Cleanup / tests

* Move and cleanups

* Brackets

* Add example for brave context interop

* Brave in OTel

* Spotless

* Missing folder

* Another

* Spotless
2020-10-05 17:03:11 +09:00
Anuraag Agrawal ed169645f7
Migrate to spotless (#1748)
* Use spotless for formatting / license check

* Apply formatting

* README

* Apply to example

* google-java-format 1.8 for now

* google-java-format 1.7 for now (last supporting Java 8)
2020-10-05 16:41:21 +09:00
Anuraag Agrawal 7fe2cd55be
Use awaitility / higher timeout to reduce flakiness. (#1729) 2020-09-30 08:21:24 -07:00
John Watson 27090b8336
Switch to java 8 (#1665)
* switch to java 8

* update the READMEs and use Object.equals in a couple of cases to test that we're really compiling for java 8/android 24.

* formatting

* use the newer release options for the build, and change the int test to not be java 7 any more.

* switch back to source/target compatibility

* sure wish I could run docker locally to test this out.
2020-09-19 11:28:13 +09:00
Anuraag Agrawal 46e1445868
Apply publishing configuration to all projects, including bom and allow it to work with java-platform. (#1626) 2020-09-08 18:05:22 -07:00
John Watson 11ea60563d
Start the 0.9.0 development cycle (#1612) 2020-09-01 12:27:48 -07:00
Anuraag Agrawal e2554f40e9
Migrate most remaining tests to JUnit5. (#1514) 2020-08-06 16:23:11 +02:00
Christian Neumüller ccd2f0339e
Enable errorprone's ExpectedExceptionChecker (#1508)
Since we migrated to a newer Junit (even later Junit 4 versions would have had assertThrows) and Java 8, we can use assertThrows.
2020-08-05 09:46:48 -07:00
dengliming 3130f07beb
Remove javadoc warnings (#1494)
* Remove javadoc warnings

* fix

* Fix review
2020-08-04 12:40:51 -07:00
Anuraag Agrawal 8d0a4787ff
Migrate from Truth to AssertJ (#1493)
* Migrate from Truth to AssertJ

* Fix test

* Update andAndUpdate
2020-08-03 17:08:36 -07:00
Carlos Alberto Cortez b002d75212
Start 0.8.0 development cycle (#1497) 2020-08-03 17:07:13 -07:00
Anuraag Agrawal 6dffbb8fc4
Migrate tests to JUnit5 (#1489)
* Add JUnit 5 dependency

* Revert unintended
2020-07-31 11:10:27 -07:00
Anuraag Agrawal 881dab3c27
Update Gradle to 6.5.1 (#1488)
* Update Gradle to 6.5.1

* Add change that was in wrong branch.
2020-07-31 07:57:04 -07:00
Christian Neumüller f7a5233651
Don't add runtime-dependency on javax-annotations. (#1485) 2020-07-30 14:04:29 -07:00
Trask Stalnaker 75a425352e
Use OkHttpSender in ZipkinSpanExporter (#1475) 2020-07-29 06:52:36 -07:00
John Watson e1ddcaec24
update errorprone, grpc and autovalue (#1403)
Also, clean up new errorprone warnings
2020-07-12 07:56:44 -07:00
Carlos Alberto Cortez e976bc955a
Start 0.7.0 development cycle (#1391) 2020-07-02 01:34:33 +02:00
Nikita Salnikov-Tarnovski 46f0c5f0b7
Extension packages should not use "internal" API package (#1342)
* Extension packages should not use "internal" API package

Add InternalApiProtectionTest which uses ArchUnit to enforce architectural constraints.
This change only verifies that classes in `extensions` packages do not use classes in `internal` package of API module.

Test was added into `opentelemetry-all` module because the latter depends on all other submodules
and therefore sees all classes in the project.

* Polish

* Polish
2020-06-18 09:10:18 -07:00
Bogdan Drutu 76ef38955a
Start using real java8 in tests. (#1352)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-18 09:09:28 -07:00
Bogdan Drutu 12e7aaf3c2
Update animalsniffer and disable for tests (#1351) 2020-06-18 15:57:17 +02:00
jarebudev 22f5b1a15b
use java 8 for tests (#1237)
* use java 8 for tests, and disabled specific errorprone checks for tests

* modified existing test to use java 8 features

* updated contributing doc
2020-06-17 11:05:27 -07:00
Anuraag Agrawal 04eb87b307
Apply platforms to resolved classpaths instead of dependency containe… (#1288)
* Apply platforms to resolved classpaths instead of dependency containers and have maven publication use resolution result for all variants.

* Revert unintended
2020-06-11 08:37:14 -07:00
Bogdan Drutu 25c9c2d4ac
Start 0.6.0 development cycle (#1306)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-04 08:31:53 -07:00
Nikita Salnikov-Tarnovski 7aca0d9192
Apply bom imports only if needed (#1281) 2020-05-29 12:35:15 -07:00
Anuraag Agrawal a9c7c7237d
Update config / deps to allow building on Java 14. (#1287)
* Update config / deps to allow building on Java 14.

* Finish comment
2020-05-29 08:55:38 -07:00
Uladzislau Kiva 0f924a4f71
fix: force maven publish to include version for api conf (#1250) 2020-05-20 07:48:17 -07:00
Uladzislau Kiva 506b36b1be
Bom generation (#1192)
* build: using external boms

* feat: bom generation
2020-05-10 07:38:56 -07:00
jarebudev 18466c3de0
add end to end test for zipkin exporter (#1176)
* add zipkin-junit dependency, moved jaeger-client test dependency to trace_propagators as only required there

* added end to end test for the zipkin exporter

* removed typo

* tidied up dependency declaration

* added local method to build zipkin span to aid readability

* extracted timestamps into constants and use consistent form
2020-05-08 10:17:07 -07:00
jarebudev 9cf374220b
moved jaeger_client dependency from all to trace_propagators (#1177) 2020-05-05 15:57:40 -07:00
Bogdan Drutu d97880637d
Start 0.5.0 development cycle (#1173) 2020-05-04 14:01:26 -07:00
Uladzislau Kiva 121aa3307b
build: using external boms (#1172) 2020-05-04 11:15:30 -07:00
John Watson 0ce1a38824
First cut at a Zipkin Span Exporter (#1106)
* basic zipkin span exporter with some unit tests

* add tests for the configuration class, hook up a create method and clean up other unit tests

* add a README

* Update exporters/zipkin/README.md

Co-Authored-By: Adrian Cole <adriancole@users.noreply.github.com>

* Update exporters/zipkin/src/main/java/io/opentelemetry/exporters/zipkin/ZipkinSpanExporter.java

Co-Authored-By: Adrian Cole <adriancole@users.noreply.github.com>

* Update exporters/zipkin/README.md

Co-Authored-By: Adrian Cole <adriancole@users.noreply.github.com>

* apply PR review comments

* Update build.gradle

Co-Authored-By: Adrian Cole <adriancole@users.noreply.github.com>

* a little bit of cleanup from PR review

* implement shutdown and provide javadoc about the closing of the Sender

* don't set attributes if they're already set.

* formatting

* grpc tweaks, and an exception thrown

* Update the comment to be a little more accurate.

* formatting

* Update exporters/zipkin/src/main/java/io/opentelemetry/exporters/zipkin/ZipkinExporterConfiguration.java

Co-Authored-By: Adrian Cole <adriancole@users.noreply.github.com>

* Update exporters/zipkin/src/main/java/io/opentelemetry/exporters/zipkin/ZipkinExporterConfiguration.java

Co-Authored-By: Adrian Cole <adriancole@users.noreply.github.com>

* doc/naming cleanup

* simplify the builder, provide two simple factory methods

* strip out the endpoint logic and instead get it from the Resource

* formatting

* restore the serviceName option, but keep the Resource-based override.

* update for changes from master.

* remove factory methods on the configuration, and update the README

* update the docs to match the requirements

* fix a typo

* tiny re-arrange of javadoc

* Add zipkin to the top-level docs

Co-authored-by: Adrian Cole <adriancole@users.noreply.github.com>
2020-05-01 08:42:40 -07:00
Giovanni Liva cfba55f713
Configuration class for BatchSpanProcessor (#1080)
* Add config class for BatchSpanProcessor

* Implement Configuration for BatchSpanProcessor

* goJF after rebase
2020-04-22 07:23:37 -07:00