Commit Graph

1160 Commits

Author SHA1 Message Date
Anuraag Agrawal c1d4cf01e8
Move min/max java properties to an extension class (#3307) 2021-06-15 11:55:24 -07:00
Anuraag Agrawal b7bfbf0cc6
Migrate instrumentation-library / common to plugins (#3320) 2021-06-15 11:54:48 -07:00
Trask Stalnaker 0871af8d01
Support Tomee JAX-WS (OpenEJB/CXF) (#3303) 2021-06-15 09:52:26 -07:00
Lauri Tulmin 99b82c5144
Fix rocketmq latest dep tests (#3317) 2021-06-15 18:41:17 +02:00
Anuraag Agrawal a818f14957
Migrate publish.gradle to convention plugin (#3312)
* Migrate publish.gradle to convention plugin

* Migrate usages of publish.gradle

* Remove publish.gradle

* Newline
2021-06-15 22:12:48 +09:00
Anuraag Agrawal 7ad9e7a50b
Move shaded testing dependencies to internal package. (#3305) 2021-06-15 13:10:19 +03:00
Anuraag Agrawal aca8deff9c
Migrate scala to convention plugin. (#3313) 2021-06-15 18:54:45 +09:00
Trask Stalnaker 0a21abe15a
Remove glassfish-testing module (#3301) 2021-06-15 09:03:57 +03:00
Trask Stalnaker c79b5c5f1d
Fix some raw types warnings (#3300)
* Fix some raw types warnings

* oops
2021-06-15 08:42:07 +03:00
Anuraag Agrawal 224dc51e93
Migrate java.gradle to conventions plugin (#3289)
* Migrate java.gradle to convention plugin.

* Switch to java-conventions

* Remove old file

* Fix

* Fix merge

* Missing paragraph

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-06-15 08:10:39 +09:00
Trask Stalnaker 9f31a057b6
Refactor span names class (#3281)
* spanNameForMethod

* spanNameForClass

* Cache simple name using ClassValue
2021-06-14 11:56:40 -07:00
Trask Stalnaker 62f1f49bcd
Intellij cleanup (Java and Groovy) (#3285)
* Intellij cleanup

* Update instrumentation-api/src/test/java/io/opentelemetry/instrumentation/api/instrumenter/code/CodeAttributesExtractorTest.java

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

* Update instrumentation-api/src/test/java/io/opentelemetry/instrumentation/api/instrumenter/db/DbAttributesExtractorTest.java

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

* Update instrumentation-api/src/test/java/io/opentelemetry/instrumentation/api/instrumenter/db/SqlAttributesExtractorTest.java

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

* Update instrumentation-api/src/test/java/io/opentelemetry/instrumentation/api/instrumenter/messaging/MessagingAttributesExtractorTest.java

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

* Update instrumentation/spring/spring-web-3.1/library/src/test/java/io/opentelemetry/instrumentation/spring/httpclients/RestTemplateInterceptorTest.java

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

* Use glassfish version that supports lambdas

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-06-14 10:23:01 -07:00
Trask Stalnaker f1beb2397f
Intellij cleanup of markdown and yaml (#3284)
* Intellij cleanup of markdown and yaml

* Revert required yaml param
2021-06-14 13:13:01 +03:00
Anuraag Agrawal 7b0be0d603
Make kotlin stdlib dependency compileOnly (#3291) 2021-06-14 16:56:02 +09:00
Trask Stalnaker c483966a37
Move last advice class that can be nested (#3279) 2021-06-13 22:11:06 -07:00
Trask Stalnaker b25ac0f1ad
Clean up old operation name terminology (#3282) 2021-06-13 22:10:36 -07:00
Trask Stalnaker dc316609ee
Remove unnecessary final on params and local vars (#3283)
* Remove unnecessary final on params and local vars

* Fix gwt

* Keep final for non-initialized var

* Keep final for non-initialized var

* Keep final for non-initialized var
2021-06-14 07:13:11 +03:00
Trask Stalnaker 4c80c62ce7
Add unused to remaining advice classes (#3280)
* Add unused to remaining advice classes

* Add newlines for visual separation
2021-06-14 11:12:02 +09:00
Trask Stalnaker e418ddd734
Remove jboss maven repo (#3271)
* Remove jboss maven repo

* Make tests run faster
2021-06-12 18:36:00 -07:00
Anuraag Agrawal 5f49dc0e4a
Extract agent shadow configuration to conventions script. (#3256)
* Extract agent shadow configuration to conventions script.

* Remove redundant plugin version declaration

* Resource loader doesn't load from buildSrc

* Comments about byte buddy version

* Fix ReferenceCollectorTest

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-06-12 16:45:26 -07:00
Anuraag Agrawal c92fbcf624
Update to OTel SDK 1.3.0 (#3253) 2021-06-12 09:56:23 -07:00
Trask Stalnaker 80a7403763
Remove insecure trust manager from test (#3268) 2021-06-12 12:03:46 +03:00
Trask Stalnaker 16be695c6c
Fix test latest deps (#3266) 2021-06-11 18:45:12 -07:00
Lauri Tulmin 06033ed3f2
Akka http: propagate context to callbacks (#3263)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-06-11 17:17:11 -07:00
Lauri Tulmin de7eaa0fe6
Enable https tests (#3258) 2021-06-11 17:16:34 -07:00
Trask Stalnaker 24aa31ebc3
Fix context leak in akka-http instrumentation (DataDog/dd-trace-java#2320) (#3264)
Co-authored-by: Björn Antonsson <bjorn.antonsson@datadoghq.com>
2021-06-11 18:48:12 -04:00
Lauri Tulmin 8a6ec1126f
Ratpack tests pass with strick context check (#3259) 2021-06-11 13:42:48 -07:00
Trask Stalnaker f7a24b0e4b
Update asynchttpclient-2.0 to Instrumenter API (#3211)
* Update asynchttpclient-2.0 to Instrumenter API

* Fix play-2.4 tests
2021-06-11 12:41:25 -07:00
Mateusz Rzeszutek cc43cf326d
Internal instrumentations should always be enabled by default (#3257) 2021-06-11 12:16:14 -07:00
Anuraag Agrawal 84cc044ddf
Migrate remaining test client calls to Armeria and remove testing-com… (#3250) 2021-06-11 11:51:23 -07:00
Mateusz Rzeszutek 4c6cfb52ab
Test spring-integration instrumentation with spring-cloud-stream example (#3241) 2021-06-11 11:49:16 -07:00
Anuraag Agrawal 60aaff8972
Migrate HttpServerTest to Armeria (#3240)
* Migrate HttpServerTest to Armeria

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

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-06-11 08:56:02 +09:00
Lauri Tulmin 52b23d116e
Add connection timeout for forked ratpack http client (#3239) 2021-06-10 08:44:36 -07:00
Lauri Tulmin e93ff4d419
Remove references to dropped request test (#3238) 2021-06-10 16:21:11 +03:00
Mateusz Rzeszutek 1cc893b009
Spring Integration library instrumentation (#3120)
* Spring Integration library instrumentation

* testLatestDeps

* attributesExtractor

* errorprone

* Code review comments

* rename package messaging -> integration

* move package in groovy files too

* thread local map

* Revert "thread local map"

This reverts commit 7c8d614f4c.

* Always extract parent SpanContext from the incoming message

* checkstyle

* codenarc
2021-06-10 14:51:32 +02:00
Lauri Tulmin 55c7631aba
Fix typo in rocketmq test package name (#3232) 2021-06-10 11:01:46 +03:00
Anuraag Agrawal f91e35616f
Migrate remaining usages of TestHttpServer to Armeria. (#3231)
* Migrate remaining usages of TestHttpServer to Armeria.

* Remove unused.

* Shade netty tcnative to allow TLS on Java 8
2021-06-10 09:28:44 +09:00
Lauri Tulmin f51bace1eb
Netty connection failure span only when first operation fails (#3228) 2021-06-09 17:24:02 +09:00
Anuraag Agrawal 7ae23fc694
Migrate HttpClientTest test server to Armeria (#3225)
* Use Armeria for test HTTP server.

* Continue

* Migrate test http server to Armeria.

* Finish

* Use junit extension

* Remove unused.

* Use localhost for net peer name.

* Block for full response in recator-netty tests.

* Handle split responses in netty41 and akka

* Typo
2021-06-09 15:05:58 +09:00
Trask Stalnaker 70c8a0c5e2
Fix testLatestDeps (#3223) 2021-06-08 14:55:39 +03:00
Anuraag Agrawal d94a92c4ab
Use Ratpack core API for test server. (#3215)
* Use Ratpack core API for test server.

* Fix async path param test

* Spotless
2021-06-08 11:39:20 +09:00
Anuraag Agrawal 1b63e3265f
Always include server span in HTTP client tests. (#3214)
* Always include server span in HTTP client tests.

* Scrub
2021-06-08 11:39:06 +09:00
Trask Stalnaker 097ce893d3
Pre- update apache-httpasyncclient-4.1 to Instrumenter API (#3209) 2021-06-07 15:30:01 -07:00
Trask Stalnaker 59abf0380f
Remove last muzzleCheck methods (#3208) 2021-06-07 15:29:39 -07:00
Trask Stalnaker e9c3df6dac
Static factory method ordering (#3206) 2021-06-07 15:29:30 -07:00
Ago Allikmaa b277fd96c5
JAX-RS RestEasy single connection test, comment on others where not applicable (#3187) 2021-06-07 12:31:28 -07:00
Lauri Tulmin d4e64990fc
Add http client concurrency test with callback (#3192)
* Add http client concurreny test with callback

* Unwrap subscriber for needs executor tests
2021-06-07 12:29:08 -07:00
Jakub Wach b9e856b4bf
small fix - proper log4j MDC test pattern (#3218) 2021-06-07 12:28:36 -07:00
Lauri Tulmin 6d24c765b6
Fix reactor netty latest dep test (#3205) 2021-06-07 12:01:45 -07:00
Lauri Tulmin 858eb69abe
Add toString for AgentContextWrapper (#3193) 2021-06-07 11:47:03 -07:00