Commit Graph

6394 Commits

Author SHA1 Message Date
Anuraag Agrawal 47be4a16b4
Convert HttpClientTest to JUnit (#3652)
* Migrate HttpClientTest to junit to allow both Java or spock tests.

* More

* Update

* Finish

* Cleanup

* Better stack

* Java 15

* Merge

* Fix name

* Cleanup

* ? extends

* Moar
2021-07-27 21:55:40 +09:00
Trask Stalnaker 262feb1730
Update .editorconfig for properties files (#3677) 2021-07-26 14:16:36 -07:00
Trask Stalnaker 59e46477dd
Add basic jmh overhead test (#3672)
* Add basic jmh overhead test

* Move javaagent arg to gradle file

* Rename module to benchmark-overhead-jmh

* Add imports

* Add comment

* Add benchmark for noop api
2021-07-26 12:55:18 -07:00
Nikita Salnikov-Tarnovski 0f43c160e1
Very crude fix for publishing problem with agent-for-testing (#3675) 2021-07-26 21:05:26 +03:00
Lauri Tulmin b483d7d249
Fix concurrency with callback test on okhttp3 latest (#3676) 2021-07-26 18:49:21 +03:00
Nikita Salnikov-Tarnovski 6a2ee3255a
Extract muzzle check plugin (#3657)
* Extract muzzle check plugin
2021-07-26 12:37:14 +03:00
Fabrizio Ferri-Benedetti c24da7bdd7
Improve extension sample documentation and add it to the README file (#3656)
* First commit

* Update examples/extension/README.md

Co-authored-by: John Watson <jkwatson@gmail.com>

* Update README.md

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>

* Update docs/agent-config.md

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>

* Update examples/extension/README.md

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>

* Update examples/extension/README.md

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>

* Update examples/extension/README.md

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>

* Edits

* Readme update

Co-authored-by: John Watson <jkwatson@gmail.com>
Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2021-07-26 12:34:53 +03:00
Lauri Tulmin 3555c251c9
Hibernate: set span name only on method entry (#3603) 2021-07-26 10:29:40 +03:00
Lauri Tulmin 26dc106399
Okhttp3: fix concurrency test with callback (#3669) 2021-07-26 13:12:29 +09:00
Lauri Tulmin 437e568fee
Enable disable apache async http client tests (#3667) 2021-07-26 13:11:25 +09:00
Lauri Tulmin 266dc46b39
Causality test is enabled by default (#3670)
* Causality test is enabled by default

* Causality test is enabled by default
2021-07-26 12:06:36 +09:00
Lauri Tulmin c3d26f99fa
Include rxjava2 instrumentation for vertx reactive tests (#3668) 2021-07-26 11:42:00 +09:00
Lauri Tulmin 4db7bd5ff3
Move common code from netty 4.0 and 4.1 http client to common superclass (#3660) 2021-07-26 11:15:13 +09:00
Lauri Tulmin 3d36fecd81
Don't wait in busy loop (#3663)
* Don't wait in busy loop

* use awaitility
2021-07-25 10:40:27 -07:00
Lauri Tulmin 1b5df6d78a
Netty connection failure handling (#3569)
* Netty connection failure handling

* Update instrumentation/netty/netty-4-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/netty/common/client/AbstractNettyHttpClientTracer.java

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

* Remove unused import

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-07-23 11:21:15 +03:00
Lauri Tulmin 4f088c7e05
Test latest version of vert.x http server (#3621)
* Test latest version of vert.x http server

* add missing files

* spotless
2021-07-23 11:00:48 +03:00
Trask Stalnaker 83b5121f75
Handle port and IPv6 in forwarded headers (#3651)
* Handle port and IPv6 in forwarded headers

* More IPv6...

* Test proper quoted host:port for Forwarded case
2021-07-23 10:59:55 +03:00
Lauri Tulmin d7dcc70119
Rename jws-1.1 to jaxws-jws-api-1.1 (#3653) 2021-07-22 10:25:43 -07:00
Nikita Salnikov-Tarnovski 672cfb9a6c
Upgrade extensions to latest release (#3655) 2021-07-22 16:27:12 +03:00
jason plumb edea07a0ad
Add gh action to publish base image for overhead testing (#3640)
* Add gh action to publish base image for overhead testing

* rebuild/publish when the dockerfile changes.
2021-07-22 16:07:56 +03:00
Nikita Salnikov-Tarnovski c6f9bef90e
Use published muzzle generation plugin (#3639)
* Use published muzzle generation plugin
2021-07-22 11:46:49 +03:00
Lauri Tulmin 85b7c0569e
Replace usage of basicSpan (#3650) 2021-07-22 12:25:49 +09:00
Nikita Salnikov-Tarnovski beb9346705
Update Changelog to 1.4.0 (#3649) 2021-07-21 12:51:34 -07:00
Lauri Tulmin 1197480f6e
Netty4: handle read timeout (#3613)
* Netty4: handle read timeout

* spotless
2021-07-21 21:20:21 +03:00
Nikita Salnikov-Tarnovski a55e048451
Convert ReferenceCollectorTest to JUnit (#3644)
* Convert ReferenceCollectorTest to JUnit

* User AssertJ

* Polish
2021-07-21 19:36:46 +03:00
Lauri Tulmin 79d12e1f97
Remove build/** from spotless kotlin exludes (#3647) 2021-07-21 19:22:11 +03:00
Lauri Tulmin 6269eb57b4
Fix aws-sdk latest dep tests (#3646) 2021-07-21 18:51:39 +03:00
Lauri Tulmin fc9609d814
couchbase 3.2.0 (#3645) 2021-07-21 16:46:31 +03:00
Nikita Salnikov-Tarnovski 00d42e175d
Allow for more caching in buildSrc project (#3636) 2021-07-20 11:39:39 +03:00
Nikita Salnikov-Tarnovski e937d85188
Use the correct version (#3634) 2021-07-20 09:38:07 +03:00
Nikita Salnikov-Tarnovski d3ba86fd3d
Exclude broken version from tests (#3632) 2021-07-20 15:23:51 +09:00
Anuraag Agrawal 574a3f7750
Use ArgumentsProvider for agent test JVM args to allow sharing of remote build cache. (#3631) 2021-07-20 15:23:43 +09:00
Nikita Salnikov-Tarnovski d71c63dbce
Use published muzzle code gen plugin (#3620) 2021-07-19 22:16:06 -07:00
jason plumb ec30d420e9
Skeleton for overhead testing subproject. (#3554)
* Skeleton for overhead testing subproject.

* clone into base image instead of submodule

* remove submodules file (even though it was empty)

* use multi-stage dockerfile to simplify image

* strip ssh and add CMD

* use the JRE base for the final stage
2021-07-20 09:42:26 +09:00
Trask Stalnaker e2d23cd8c1
Fix bounds check (#3612)
* Fix bounds check

* Update instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/aspects/WithSpanAspectAttributeBinder.java

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2021-07-20 09:29:45 +09:00
Trask Stalnaker d5185acaff
Update change log (#3608)
* Update change log

* Updates

* Review
2021-07-20 09:10:54 +09:00
Nikita Salnikov-Tarnovski 73ed96ab82
Document the possibility to embed extension into agent jar (#3624) 2021-07-19 12:11:21 -07:00
Mateusz Rzeszutek af1aa540a2
Refactor agent-for-testing build (#3600) 2021-07-19 10:12:00 -07:00
Trask Stalnaker 734a1e2e6e
Update opentelemetry-api-metrics instrumentation name (#3611) 2021-07-19 10:10:09 -07:00
Anuraag Agrawal e0cb216610
Remove remaining usages of basic span asserts (#3616) 2021-07-19 10:09:44 -07:00
Anuraag Agrawal b6fb8753bd
Replace save-gradle-dependencies: false with read-only: true (#3618) 2021-07-19 19:57:32 +03:00
Anuraag Agrawal 18621501a5
Disable publishing of SDK shaded artifacts. (#3614) 2021-07-19 23:17:40 +09:00
Anuraag Agrawal f5ce4c03f8
Inline basic usages of basicSpan (#3583)
* Inline basic usages of basicSpan

* spock
2021-07-18 21:15:51 +03:00
Lauri Tulmin 050e675abc
Split vertx instrumentation into client and server instrumentation (#3567) 2021-07-18 21:15:02 +03:00
Mateusz Rzeszutek fbdc6d1cd6
Remove two classes that were moved to another module (#3602) 2021-07-16 20:37:54 +03:00
Anuraag Agrawal ac8c1e1543
Configure duration metrics export as histograms to dogfood in preparation of SDK 1.5.0 (#3597) 2021-07-16 22:54:15 +09:00
Anuraag Agrawal 04c070ccc1
Add HTTPClientMetrics (#3598)
* Add HTTPClientMetrics

* Update instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/http/HttpClientMetrics.java

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-07-16 18:22:35 +09:00
HaloFour 256e8f2a64
Move async strategies to annotation support (#3574)
* Move async strategies to annotation support

* Fix dependencies and refactor copypasta

* Move AsyncSpanEndStrategy to annotation support project

* spotless
2021-07-16 10:55:23 +02:00
Anuraag Agrawal 47bdc0d6d2
Specialize dependencies cache key for testLatestDeps (#3584)
* Specialize dependencies cache key for smoke-tests

* B

* C

* D

* Fix merge

* Don't need mkdir -p
2021-07-16 11:46:21 +03:00
Trask Stalnaker 344e205720
Help out Intellij (#3595) 2021-07-16 15:55:30 +09:00