Commit Graph

52 Commits

Author SHA1 Message Date
Anuraag Agrawal 0eb4fb2ad5
Exclude all, not just span, generated semconv from coverage (#2872) 2021-02-18 13:33:37 +09:00
Anuraag Agrawal a92ad2a7a0
Migrate :all to kts (#2640) 2021-02-02 09:10:13 +09: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 c99567de98
Exclude jfr-events from coverage report since it doesn't compute coverage (#2498) 2021-01-13 12:04:49 +09:00
Anuraag Agrawal fe061e90bf
Publish jfr-events module (#2461)
* Publish jfr-events module

* Fix jacoco config error

* testJava8
2021-01-08 09:22:31 -08:00
Anuraag Agrawal 80aea4d0b4
Exclude new location of semattrs from coverage (#2448) 2021-01-07 10:41:42 -08:00
Anuraag Agrawal 228e26ad9b
Restore accidentally deleted :all project (#2372)
* Restore accidentally deleted :all project

* README
2020-12-21 18:10:16 +09:00
Anuraag Agrawal 44859040ed
Exclude AutoValue generated classes from code coverage. (#2335) 2020-12-17 07:54:59 -08: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
Anuraag Agrawal 36062bf4b1
Exclude SemanticAttributes from coverage. (#2303) 2020-12-15 08:43:43 -08:00
Anuraag Agrawal 8cd1c08dba
Update coverage merging to follow Gradle example. (#2225)
* Update coverage merging to follow Gradle example.

* Use standard task naming scheme to reduce codecov detection drift.

* Restore coverage of internal package, actually it does need tests.
2020-12-08 09:54:37 -08:00
Anuraag Agrawal 883267423e
Rename opentelemetry-sdk-extension-aws-v1-support to opentelemetry-sdk-extension-aws. (#2129) 2020-11-25 11:18:33 -08:00
John Watson 4897f4c320
rename tracing to trace for the module (#2112) 2020-11-23 10:14:33 -08:00
dengliming d1d5808c24
Rename the package for WithSpan annotation (#2090)
CHANGELOG: Breaking Change - the `@WithSpan` annotation has been moved to the `io.opentelemetry.extension.annotations` package in the `opentelemetry-extension-annotations` module .
2020-11-18 08:56:44 -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
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 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 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 c723de5b05
Merge context_prop into context artifact. (#1928) 2020-10-31 08:47:07 -07:00
Anuraag Agrawal 393e4a159c
Remove integration tests from coverage report. (#1907) 2020-10-28 08:48:04 -07: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 7d269be811
Publish -context package (#1797) 2020-10-14 08:27:00 -07:00
Anuraag Agrawal 2d7f7f05d9
Exclude jaeger proto classes from coverage. (#1782) 2020-10-12 08:18:59 -07:00
dengliming 71ba8e1b87
Use the concise license header without the year (#1623)
* Use the concise license header without the year

* Use the concise license header without the year
2020-10-02 22:42:53 +09:00
Bogdan Drutu 840ae850ec
Rename CorrelationContext with Baggage (#1691)
* Rename CorrelationContext with Baggage

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

* Fix review comments

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

* Rename contextBuildet to baggageBuilder

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-09-26 08:42:01 -07:00
Sergei Malafeev f8725333b8
Add w3c context propagation tests (#1653)
* Add w3c context propagation tests

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

* add sleep for printing test results

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

* add Environmental requirements

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

* use far jar to run

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

* run integration tests in circleci

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

* change image

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

* reformat

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

* pip3 to pip

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

* upgrade pip

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

* missing colon

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

* install pip3

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

* do not install pip3

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

* install python 3 and pip3

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

* install python 3 and pip3

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

* install python 3 and pip3

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

* install python 3 and pip3

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

* install python 3 and pip3

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

* install python 3 and pip3

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

* add /usr/local/bin to PATH

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

* call /usr/local/bin/pip3 to PATH

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

* get rid of automation

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

* refactor extractor to pass more tests

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
2020-09-23 08:26:38 -07:00
Anuraag Agrawal c3a893a88c
Remove auto-config (#1620) 2020-09-03 18:01:05 -07:00
Ken Finnigan 26597266df
Separate the SDK into separate publishable artifacts (#1525)
* Split single "sdk" module into separate pieces for common, correlationcontext, metrics, tracing, and the combination of them all

* Modify comment to not reference implementation class

* Moved JMH code to /sdk/all

* Move new files to adjusted location

* Move new files from rebase
2020-08-18 13:43:17 -07:00
Anuraag Agrawal 6dffbb8fc4
Migrate tests to JUnit5 (#1489)
* Add JUnit 5 dependency

* Revert unintended
2020-07-31 11:10:27 -07: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
Nikita Salnikov-Tarnovski c558a9651b
Rename contrib to extensions (#1335) 2020-06-17 16:51:14 +02:00
jarebudev 6f68d90a7a
added testcontainers integration test to verify jaeger example app works in Java 7 (#1292)
* added testcontainers test that runs jaeger example app in jre7 docker image and verifies trace is received in jaeger

* added comments, updated readme

* changed to add file to base image rather than building intermediate image and container now managed as a test rule

* changed startup order of containers to use dependsOn rather than rule, and correct bom import scope

* added integration_tests module, reverted prev changes to examples and moved to new modules

* correct formatting

* fix dependencies removed compile scope
2020-06-15 20:08:41 -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
Nikita Salnikov-Tarnovski fff15ffe2f
First version of WithSpan annotation. (#1148)
* First version of WithSpan annotation.

This should be followed by the corresponding PR in auto-instrumentation to actually create spans around annotated methods.

* Add license

* Code style fix

* Rename module, add documentation.

* License added.

* Update contrib/auto_annotations/src/main/java/io/opentelemetry/contrib/auto/annotations/WithSpan.java

Co-Authored-By: John Watson <jkwatson@gmail.com>

* Apply suggestions from code review

Co-Authored-By: John Watson <jkwatson@gmail.com>

* Code style fix

Co-authored-by: John Watson <jkwatson@gmail.com>
2020-04-27 11:14:34 -07:00
Pavol Loffay 610c92fa1c
Add Jaeger remote sampler (#1089)
* Add Jaeger remote sampler

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

* Add tests

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

* Add remote sampler to all BOM

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

* Make docker test optional

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

* Use scheduled thread pool

* Use daemon thread factory

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

* Cosmetic changes

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

* Add readme

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2020-04-23 12:25:26 -04:00
Carlos Alberto Cortez 68bac8f431
Move B3/Jaeger propagators to their own contrib artifact (#1098) 2020-04-10 18:03:09 +02:00
Bogdan Drutu 8e61e8d217
Add Prometheus exporter (#1052)
* Add Prometheus exporter

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

* Split toSample

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-03-31 19:43:54 -07:00
Bogdan Drutu 40e4091d41
Rename otprotocol module to otlp (#982)
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-03-09 16:51:05 -07:00
Bogdan Drutu 4c7072a1e4
Add javadoc link to all readmes (#981)
Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-03-09 14:32:22 -07:00
Bogdan Drutu 5a09b818d9
More gradle cleanups (#910)
* More gradle cleanups, separate jmh and jmhreport config

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

* Remove the need to includ jmhreport

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

* Only projects with the plugin maven-publish will be published

Signed-off-by: Bogdan Cristian Drutu <bogdandrutu@gmail.com>
2020-02-24 09:58:04 -08:00
Bogdan Drutu a148263597
Switch to use pluginManagement, Use gradle plugin for jmh. (#903)
* Switch to use pluginManagement, Use gradle plugin for jmh.

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

* Fix jmh report

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

* Use ' for the moment for plugin ids in main gradle
2020-02-21 10:19:51 -08:00
John Watson b0d6258bfe
Add a module for auto-instrumentation agent configuration bridge code. (#862)
* Add a module for auto-instrumentation agent configuration bridge code.

* add the new module as a sub-module of all
2020-02-15 09:18:55 -08:00
Jonathan Giles ecad8609aa Introduce automatic module names into all libraries being built. (#781)
* Introduce automatic module names into all libraries being built.

* Centralise manifest config of automatic module name into root build.gradle file.

* Adding empty new lines
2020-01-22 18:22:00 -08:00
Bogdan Drutu bd4f3737d4
Add a new artifact context propagation (#754)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-01-21 08:49:34 -08:00
Javier Salinas a9448a71dc Upgrade to Gradle 6 enabling parallel build (#731)
* Upgrade to Gradle 6 enabling parallel build

* Remove ignoring gradle.properties

* Limit resources in gradle.properties
2020-01-06 19:59:00 -05:00
Bogdan Drutu c24e4a9636
Some minor cleanups (#627)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2019-10-23 19:48:40 -07:00
Carlos Alberto Cortez 2f50f54cd2
Move the InMemory artifact to exporters. (#600) 2019-10-11 05:56:30 +02:00
Yang Song ef66cd3306 Add missing sub-projects to all/build.gradle (#542) 2019-09-18 19:05:12 -07:00