Commit Graph

894 Commits

Author SHA1 Message Date
Trask Stalnaker b062e38117
Pass OpenTelemetry instance to WebFlux lib tracer (#2730) 2021-04-06 08:52:27 +03:00
jack-berg 035b3f42f7
Fix build and documentation typos related to autoconfigure SPI. (#2719) 2021-04-05 18:22:34 -07:00
Trask Stalnaker 25dd2cf194
Verify span kind in all tests (#2715) 2021-04-05 12:57:48 -07:00
Ago Allikmaa 7027006f66
Request handlers and test images for Tomcat 10 and Jetty 11 (Servlet API 5) (#2703)
* Tomcat 10 and Jetty 11 handlers with Servlet API 5

* Jetty 11 and Tomcat 10 Windows images
2021-04-05 09:45:02 -07:00
Nikita Salnikov-Tarnovski 86ec1d7211
Concurrent server test (#2680)
* Concurrent server test

* Update testing-common/src/main/groovy/io/opentelemetry/instrumentation/test/base/HttpServerTest.groovy

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

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-04-05 14:12:07 +03:00
Anuraag Agrawal cc47da585b
New Instrumenter API (#2596)
* Instrumenter

* Spotless

* More instrumenter

* More

* Instrumenter API

* New Instrumenter API - InstrumenterBuilder (#20)

* New Instrumenter API - InstrumenterBuilder

* New Instrumenter API - InstrumenterBuilder - code review comments

* Start doccing

* Docs

* Most tests

* Last test

* Stick with current hostName lookup for now

* Update testing-common/src/main/groovy/io/opentelemetry/instrumentation/test/base/HttpClientTest.groovy

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

* New Instrumenter API - code review comments (#21)

* Doc

* Checkstyle

* Cleanups

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-04-05 15:45:07 +09:00
HaloFour bf8ea885f2
Add AsyncSpanEndStrategy implementation for RxJava 2 instrumentation (#2665) 2021-04-04 22:05:01 -07:00
Lauri Tulmin 87950d1d32
Fix using WithSpan annotation in java6 class (#2699) 2021-04-02 09:34:27 -07:00
Mateusz Rzeszutek 4d07aab66d
Fix latest dep RxJava2 tests (#2700)
And remove latestDepTest version bounds
2021-04-02 09:30:04 -07:00
Nikita Salnikov-Tarnovski 77fa356e6e
Fix latest dep for RxJava test (#2688) 2021-04-02 08:29:20 +03:00
Trask Stalnaker 92f1223aee
Remove unnecessary skipVersions (#2671)
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-04-01 19:02:20 -07:00
Lauri Tulmin 3f5980f9b8
Add support for Tapestry web framework (#2690) 2021-04-01 17:56:55 -07:00
Mateusz Rzeszutek 1406855bb7
Revert "Prevent duplicate telemetry when using both library and auto instrumentation (#2661)" (#2689) 2021-04-01 16:11:15 -07:00
Trask Stalnaker d5e526b9f3
Cache config values in instrumentations (#2681)
* Cache config values in instrumentations

* Bring back defaultEnabled()

* comment

* one problem
2021-03-31 22:54:20 -07:00
Trask Stalnaker af13e7d6e3
Remove oshi-related code from shared agent code (#2682) 2021-03-31 22:53:22 -07:00
Anuraag Agrawal 84e7306370
Don't instrument rxjava2 internal task class. (#2672)
* Don't instrument rxjava2 internal task class.

* spotless

* AtomicBoolean

* Update instrumentation/rxjava-2.0/javaagent/src/main/java/io/opentelemetry/instrumentation/rxjava2/RxJava2InstrumentationModule.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-04-01 08:01:25 +09:00
Mateusz Rzeszutek 30434696ae
Prevent duplicate telemetry when using both library and auto instrumentation (#2661)
* Prevent duplicate telemetry when using both library and auto instrumentation

* Add unit test

* Fix Oshi tests

* Fix couchbase 3.1 tests
2021-03-31 10:57:04 -07:00
Trask Stalnaker 55ccf98b4f
Consolidate classloader modules (#2670) 2021-03-31 09:25:38 -07:00
Anuraag Agrawal 87c9ad0523
Small cleanups to executor tests (#2677) 2021-03-31 21:36:51 +09:00
Trask Stalnaker 0d11dbe565
Fix webflux client filter subscribe (#2646)
* Fix webflux client filter subscribe

* Add test

* Fix test

* Fix test, take 2

* Fix another test

* Suppress test for another module

* Suppress another library instrumentation

* Another

* Add nested client suppression in Armeria

* Add comments

* Revert extra line
2021-03-31 07:54:41 +03:00
Trask Stalnaker 97d58d7ff4
Use class literals where possible (#2669) 2021-03-31 07:45:29 +03:00
Trask Stalnaker 6ed20b3f39
Fix muzzle failure (#2666) 2021-03-30 15:47:01 -07:00
Anuraag Agrawal 2b2bec7b74
Merge war resources (#2660) 2021-03-30 12:37:04 +03:00
Jakub Wach cc666f4c1b
apache camel / aws sdk propagation tests clean-up (#2656) 2021-03-30 12:00:00 +03:00
Anuraag Agrawal b4fd5646be
Cache GWT compilation and only generate one permutation. (#2659)
* Cache GWT compilation and only generate one permutation.

* Update instrumentation/gwt-2.0/javaagent/src/testapp/java/test/gwt/Greeting.gwt.xml

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-03-30 16:48:34 +09:00
Trask Stalnaker fbf7625f89
Remove test exclusion for Tomcat testErrorBody (#2657) 2021-03-30 08:54:30 +03:00
HaloFour b0d27405eb
Add asynchronous tracing to Spring Boot Autoconfigure WithSpanAspect (#2618) 2021-03-29 16:35:08 -07:00
Trask Stalnaker f02b0f8d74
Fix suppressed NPE in netty instrumentation (#2649) 2021-03-29 14:44:49 -07:00
Lauri Tulmin 3c11613aed
Add support for GWT (#2652)
* Add support for GWT

* formatting

* review fixes
2021-03-29 19:41:03 +03:00
Lauri Tulmin b999e8a2f5
Add support for vaadin web framework (#2619)
* Add support for vaadin

* rename test

* review fixes

* rename module

* review fixes

* Trigger Build

* don't load advice classes
2021-03-29 11:35:22 +03:00
Jakub Wach f8564524b3
apache camel propagation tests - cleanup #1 (#2607) 2021-03-29 09:32:29 +02:00
Trask Stalnaker 202e038c26
Support reactor netty HttpClient.from construction (#2650) 2021-03-29 09:55:37 +03:00
Anuraag Agrawal dcd316da7a
Enable strict context check and fix some context issues. (#2637)
* Enable strict context check and fix some context issues.

* Drift

* Drift and cache

* Exclude grizzly include akka

* Grizzly, scala

* ForkJoin worker

* webflux comment, grizzly typo

* Give up on akka for now

* threadpool

* Fallback on grizzly, wait for completion in executor cancellation tests

* Hystrix

* ratpack

* Cleanups
2021-03-29 08:08:11 +03:00
Nikita Salnikov-Tarnovski c918d05aa0
Add connection reuse tests for Reactor Netty libraries (#2647) 2021-03-28 21:41:09 -07:00
Anuraag Agrawal 62a929f511
Close Response in HttpServerTest (#2642)
* Close Response in HttpServerTest

* Fix grails test

* Fix tomcat test
2021-03-27 16:56:39 +09:00
Anuraag Agrawal c3c5e6b2a6
Finish Netty 4.1 spans after response has completed not when it started. (#2641)
* Finish Netty 4.1 spans after response has completed not when it started.

* copy pasta bada

* Update instrumentation/netty/netty-4.1/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/netty/v4_1/client/HttpClientResponseTracingHandler.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

* Update instrumentation/netty/netty-4.1/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/netty/v4_1/server/HttpServerResponseTracingHandler.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

* Update instrumentation/netty/netty-4.1/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/netty/v4_1/server/HttpServerResponseTracingHandler.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-03-27 13:32:01 +09:00
Nikita Salnikov-Tarnovski 5a9b0b999f
Test of single connection reuse for Netty (#2630)
* Test of single connection reuse for Netty

* Format
2021-03-26 16:21:46 +02:00
Mateusz Rzeszutek 1e50b72937
Make muzzle reference creation package(s) configurable (#2615)
* Make muzzle reference creation package(s) configurable

* Code review comments
2021-03-26 14:12:43 +02:00
Nikita Salnikov-Tarnovski bb5f2c5ece
Constaing latest support version of Apache Dubbo (#2628)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-03-25 22:39:43 -07:00
Felix Barnsteiner 1b0438439a
Fix typo in javadoc (nonheap vs non_heap) (#2627) 2021-03-25 22:39:23 -07:00
Lauri Tulmin 4ad9ed5c32
Reimplement finding open ports (#2629) 2021-03-25 10:41:20 -07:00
Anuraag Agrawal 79d7e88e53
Use Caffeine for weak maps (#2601)
* Caffeine weakmap

* Use Caffeine for weak maps

* Drift

* Drift

* Remove weak-lock-free

* Update licenses

* Fix bug

* Restore weaklockfree

* Clean

* Fixes

* Inline expunction

* Synchronized

* More comment

* Fix shading

* Executor

* computeIfAbsent and delete unused.

* Fix license report
2021-03-24 17:12:26 +09:00
Lauri Tulmin 116cd2d90d
Fix flaky rocketmq test (#2620) 2021-03-23 18:24:01 -07:00
Nikita Salnikov-Tarnovski d79f90492a
Make sure muzzle build-time check actually validates anything (#2599)
* Check if muzzle build-time check actually validates anything

* Force class files generation before muzzle

* Apply muzzle only to javaagent projects

* Apply muzzle only to javaagent projects

* More fixes

* More fixes

* PR review comments

* polish

* Exclude "broken" version

* Polish

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-03-23 14:12:01 +02:00
Ago Allikmaa 69c2644774
Servlet 5 API, reorganize servlet modules (#2609)
* Servlet 5.0 API support, refactored other servlet modules

* Include correct servlet instrumentation module for grails tests

* Reapply spotless after rebase

* Fix checkstyle

* Spotless

* Addressed PR suggestions

* Fixed files in wrong package.

* Fixed mixed up instrumentation names.

* Fixed incomplete instrumentation name.

* Addressed PR suggestions

* Addressed PR suggestions
2021-03-23 14:11:43 +02:00
Felix Barnsteiner 56c52bc315
Add runtime.jvm.gc.collection.count metric (#2616)
* Add runtime.jvm.gc.collection.count metric

* Fix format violation

* Rename gc.collection to gc.collection.time

* Another rename 😅
2021-03-23 14:11:23 +02:00
HaloFour 4168c0b4fe
Add asynchronous tracing for Java 8 CompletableFuture in WithSpanAdvice (#2530) 2021-03-21 23:36:05 -07:00
Trask Stalnaker 1e3d9dd992
Increase smoke test timeout (#2611)
* Increase smoke test timeout

* Fix muzzle build failure
2021-03-21 22:24:47 -07:00
addname 8e2c86fe3b
Fix support rocketmq client test (#2610)
* Fix test

* Fix test

* Fix test

* Fix test
2021-03-22 13:36:38 +09:00
Trask Stalnaker 1a18841fdf
Apply new muzzle feature to mongo instrumentation (#2608) 2021-03-20 12:48:34 +09:00