Commit Graph

6674 Commits

Author SHA1 Message Date
Mateusz Rzeszutek 56ba64adf8
Convert Pair class to AutoValue (#3496) 2021-07-05 10:23:26 -07:00
HaloFour 4500dd984b
Port AsyncSpanEndStrategy implementations to AsyncOperationEndStrategy (#3454)
* Port RxJava 2 async strategy to new interface

* Port RxJava 3 async strategy to new interface

* Port Guava async strategy to new interface

* Port Reactor async strategy to new interface

* Kick CI
2021-07-05 10:45:49 +02:00
Trask Stalnaker 0d27368866
Run smoke tests with Java 16 (#3457)
* Run smoke tests with Java 16

* Add Wildfly + JDK 16 test

* Bump extra tag
2021-07-05 11:39:47 +03:00
Anuraag Agrawal 8eb24f9886
Split up build logic to plugins that can eventually be published and … (#3474)
* Split up build logic to plugins that can eventually be published and this-repo-specific stuff.

* Muzzle

* compileOnly

* Typo
2021-07-05 16:18:45 +09:00
Trask Stalnaker ac54f9d446
Sync windows and linux wildfly smoke test images (#3486) 2021-07-04 09:24:55 -07:00
Mateusz Rzeszutek 02ef588f68
Remove dependency on javaagent-bootstrap from javaagent-extension-api (#3477) 2021-07-03 11:18:53 -07:00
Trask Stalnaker 614d5dc905
Revert tomcat smoke test image changes (#3483) 2021-07-03 08:49:59 -07:00
Trask Stalnaker 642f213c12
Remove hardcoded version (#3470)
* Remove hardcoded version

* Codenarc
2021-07-01 23:00:15 -07:00
Trask Stalnaker 103fba247b
Fix Tomcat windows smoke test images (#3469) 2021-07-01 19:19:59 -07:00
Alexey Zhokhov ed02aff7b5
OpenTelemetry JDBC instrumentation library (#3367)
* Added jdbc library with ported version of OpenTracing JDBC Instrumentation.

* Gradle 7.1.

* Revert "Gradle 7.1."

This reverts commit e3df35b0

* Code style fixes.

* Code style fixes.

* Moved some JDBC utilities classes to the library module.

* javax.annotation.Nullable -> org.checkerframework.checker.nullness.qual.Nullable

* Build fix.

* Spotless fixes.

* Cache prepared statements.

* Cache connection info.

* Tracing for JDBC statement and prepared statement.

* Added some API dependencies.

* Fixed ending the span.

* Removed proxy usage.

* Cleanup.

* Implemented datasource with tracing support.

* Renamed Tracing prefix with OpenTelemetry.

* Renamed Tracing prefix with OpenTelemetry.

* Moved utilities classes to io.opentelemetry.instrumentation.jdbc.internal subpackage.

* Build fix.

* Build fix.

* Cleanup.

* Moved some shared classes to instrumentation-api module.

* Code review fixes.

* Make OpenTelemetryDriver final.

* Spotless fixes.

* Moved test classes from javaagent-unit-tests module to library module.

* Removed javaagent-unit-tests module.

* Covered OpenTelemetryDriver with tests.

* Cleanup.

* Covered OpenTelemetryDataSource with tests.

* Covered OpenTelemetryConnection with tests.

* Revert TestPreparedStatement.

* Added README.

* Build fix.

* Checkstyle fixes.

* Spotless fixes.

* Rename to build.gradle

* Fix build.gradle format.

* INSTANCE package scope.

* Documented OpenTelemetryDataSource usage.

* Renamed CheckedCallable to ThrowingSupplier.

* Update instrumentation/jdbc/library/README.md

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>

* Update instrumentation/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriver.java

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>

* Update instrumentation/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriver.java

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>

* Update instrumentation/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriver.java

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>

* Update instrumentation/jdbc/library/README.md

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>

* Update instrumentation/jdbc/library/README.md

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>

* Update instrumentation/jdbc/library/README.md

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>

* Removed javaagent-api module usage.

* Removed useless checking.

* Moved javaagent test classes to testing module.

* Move common JDBC test classes to testing module.

* Spotless fixes.

* Code format.

* Moved PeerServiceAttributesExtractor back to javaagent-api module.

* Rename JavaAgentJdbcSingletons to JdbcSingletons.

* Fixed JdbcSingletons import.

* Cleanup.

* Codenarc fixes.

* Update instrumentation/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriver.java

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Update instrumentation/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriver.java

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Parse InstrumentationVersion.VERSION.

* Store major and minor version in private static fields.

* Make the datasource way a preferred way.

* Removed interceptor mode.

* Rename build.gradle -> build.gradle.kts.

* Switch to Gradle Kotlin DSL.

Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-07-01 10:35:07 -07:00
Anuraag Agrawal 44f2354d41
Allow disabling thread details and disable for most tests. (#3464) 2021-07-01 08:31:27 -07:00
Mateusz Rzeszutek f5f2de9511
Refactor/rename BootstrapPackagesProvider and PropertySource (#3435)
* Refactor/rename BootstrapPackagesConfigurer and PropertySource

* Update comment
2021-07-01 08:26:51 -07:00
Nikita Salnikov-Tarnovski 47819633e4
Read correct manifest (#3439)
* Read correct manifest

* Unused field removed
2021-07-01 08:25:01 -07:00
Trask Stalnaker e2aae6fc87
Fix Tomcat Java 16 images (#3463) 2021-07-01 17:17:38 +03:00
Anuraag Agrawal fc78cd0af3
Migrate build / settings to kotlin (#3468) 2021-07-01 16:23:27 +03:00
Anuraag Agrawal c0467567f0
Migrate smoke-tests build to kotlin (#3461) 2021-07-01 18:53:40 +09:00
Anuraag Agrawal a788b1e915
Remove benchmark-integration (#3460) 2021-07-01 18:53:23 +09:00
Anuraag Agrawal 3cfa086ffd
Migrate nullaway config to plugin (#3462) 2021-07-01 18:13:16 +09:00
Trask Stalnaker c40bcc52fd
More Java 16 smoke test images (#3458) 2021-06-30 22:40:05 -07:00
Trask Stalnaker 367335fa28
Remove unnecessary and complex logic (#3395) 2021-06-30 21:36:48 -07:00
Anuraag Agrawal 96104cc3e7
Add prepare-release-branch to release needs since output is used. (#3456) 2021-07-01 13:22:15 +09:00
Trask Stalnaker e6e0910cd4
Build Java 16 smoke test images (#3455) 2021-06-30 20:43:22 -07:00
Lauri Tulmin 5d6be8764e
Remove jetty-server exclude (#3453) 2021-07-01 09:12:26 +09:00
zmapleshine bbd33115d1
Fix dubbo trace/span cross-process propagation (#3442)
* fix(instrument): fix dubbo client trace inject adapter.

* fix(instrument): fix dubbo client trace inject adapter.
2021-06-30 18:47:46 +03:00
GuillaumeWaignier 00b1b07684
Fix kafka Stream instrumentation (#3438) 2021-06-30 18:47:14 +03:00
Mateusz Rzeszutek 15ed01d4fc
Change all instrumentation names to io.opentelemetry.{libName}-{libVersion} (#3411)
* Change all instrumentation names to io.opentelemetry.{libName}-{libVersion}

* minumum supported version
2021-06-30 15:34:36 +02:00
Anuraag Agrawal 4ce9ff3a69
Migrate projects with isolateSpec to kotlin (#3447)
* Migrate projects with isolateSpec to kotlin

* Migrate
2021-06-30 19:23:28 +09:00
Anuraag Agrawal c9f72ee60d
Migrate bom-alpha build to kotlin (#3450)
* Migrate bom-alpha build to kotlin

* Remove sorting since doesn't make much difference
2021-06-30 19:22:30 +09:00
Anuraag Agrawal e2cd4f5f37
Migrate benchmark projects to kotlin (#3449)
* Migrate benchmark projects to kotlin

* Migrate
2021-06-30 19:21:55 +09:00
Anuraag Agrawal 262c5d59d7
Migrate testing and shaded-for-instrumenting builds to kotlin (#3448)
* Migrate testing and shaded-for-instrumenting builds to kotlin

* Migrate
2021-06-30 19:21:20 +09:00
Anuraag Agrawal 93632d3f27
Rename instrumentation-api builds to kotlin (#3446)
* Rename instrumentation-api builds to kotlin

* Migrate

* Small cleanup
2021-06-30 19:20:55 +09:00
Anuraag Agrawal 92a04644d0
Migrate instrumentation/build.gradle to kotlin (#3444) 2021-06-30 19:09:13 +09:00
Anuraag Agrawal c46761b8a9
Migrate javaagent-* to kotlin dsl (#3434) 2021-06-29 23:56:01 +09:00
Mateusz Rzeszutek c1a0333cdb
Port AsyncSpanEndStrategy to Instrumenter API (#3262)
* Port AsyncSpanEndStrategy to Instrumenter API

* code review comments

* rename to AsyncOperationEndSupport

* weak-ref agent strategy storage; and passing response to Instrumenter if types match

* fix tests
2021-06-29 16:51:17 +02:00
Anuraag Agrawal c16999c27d
Exclude duplicates from -all.jar (#3430) 2021-06-29 21:34:19 +09:00
Lauri Tulmin 9d1ab64ad5
Exclude bootstrap dependencies from inst (#3432) 2021-06-29 21:33:50 +09:00
Lauri Tulmin 82ea8dbc24
Small typo in doc (#3433) 2021-06-29 14:37:12 +03:00
Lauri Tulmin b7f811dd5b
Increase metrics tests timeout (#3429) 2021-06-29 14:36:38 +03:00
Lauri Tulmin 6ac2083d19
Remove byte-buddy-agent dependency (#3428) 2021-06-29 14:36:10 +03:00
Rashmi 15a64286e9
Fixed Semantic conventions in RabbitMQ (#3425)
* Fixed Semantic conventions in RabbitMQ
1. Constructed producer span name according to spec rule. (Removed routing key as part of span name)
2. Renamed routing key attribute(part of experiment span attributes feature) according to semantic convention

* Spring integration rabbitmq test fixed

* moved MESSAGING_RABBITMQ_ROUTING_KEY attribute out of CAPTURE_EXPERIMENTAL_SPAN_ATTRIBUTES check
2021-06-29 14:35:47 +03:00
Anuraag Agrawal 153bf1457a
Simplify jflex configuration (#3431) 2021-06-29 20:15:15 +09:00
Anuraag Agrawal d53e62b4dc
Remove noShadowPublish (#3426) 2021-06-29 16:55:53 +09:00
Anuraag Agrawal 47c8a9bfa5
Migrate jetty httpclient build files to kotlin (#3421) 2021-06-28 20:25:28 +09:00
Anuraag Agrawal 52616dd87f
Skip problematic spring-rabbit muzzle (#3420) 2021-06-28 18:47:39 +09:00
Lauri Tulmin d3856ad1d7
Context propagation for ratpack Execution.fork() (#3416) 2021-06-28 17:42:38 +09:00
Anuraag Agrawal 761b9c280b
Migrate instrumentation gradle files to kotlin (#3414)
* Migrate instrumentation gradle files to kotlin

* Convert

* Muzzle
2021-06-28 17:27:12 +09:00
Steve Dodge 9e2fcbaecd
Jetty-9 httpclient instrumentation, comments please (#3079)
* feat: jetty-9 http client, commit for PR comments

* chore: compensate for build break due to new TypeTransformer

* WIP: jetty9 with wrappers working

* feat: moved structure to match 9.2

* chore: fix package names again, now 9.2, clean up Nullables and Muzzle range

* chore: added latestDepTestLibrary for 10+ but class loader issues due to underlying jetty-server from the test framework

* chore: migrate to new instrumenter api

* chore: adjust to all the gradle plugin changes

* chore: added layers of builders

* chore: update final easy code review comments

* chore: remove comments in gradle

* chore: code cleanup, package cleanup, reduce surface area, iterators

* chore: cleanup of null checks, using HttpFlavorVals enum

* chore: null check removal again

* chore: set muzzle plugin correctly for 9.2 up to 9.4.+

* chore: convert gradle plugins to not use apply syntax

* Rename to build.gradle

* chore: move TypeInstrumention into standalone class

Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-06-28 14:34:01 +09:00
Anuraag Agrawal 785dc6adf2
Rename build files to build.gradle (#3409)
* Rename build files to build.gradle

* Rename smoke-tests

* Fix already broken
2021-06-25 16:10:31 +09:00
Lauri Tulmin ce36486992
Fix armeria latest dep tests (#3407) 2021-06-25 09:50:35 +09:00
Anuraag Agrawal 220ea414e3
Migrate codegen to be a plugin (#3401) 2021-06-25 08:35:59 +09:00