Commit Graph

6674 Commits

Author SHA1 Message Date
Lauri Tulmin 080b8cd25b
Use Firefox instead of Chrome for selenium tests (#3732)
* Debug gwt failure

* show debug log

* show debug log

* replace chrome with firefox

* remove debugging

* remove unneccessary change
2021-07-30 10:07:02 -07:00
Mateusz Rzeszutek cbd8bb29fd
Spring web instrumenter 2 (#3731)
* Refactor spring-web library instrumentation to Instrumenter API

* errorprone

* fix typo
2021-07-30 09:28:27 -07:00
Lauri Tulmin 78a41261d9
Propagate context into jdk http client callback (#3719)
* Propage context into jdk http client callback

* address review comment

* remove null check
2021-07-30 09:02:38 -07:00
Lauri Tulmin a04a7a6b72
Add option to create span on new netty connection (#3707)
* Create span on new netty connection

* add test for connection failure

* add comment

* remove commented out line

* rebase

* test fix

* review comments

* keep connection failure span as client span
2021-07-30 11:32:53 +03:00
Anuraag Agrawal ef16e32f95
Disable vaadin test unless requested. (#3728) 2021-07-30 11:04:53 +03:00
Nikita Salnikov-Tarnovski b14e28513f
Muzzle classloading hell (#3708)
* Running muzzle check from the correct classloader

* Apply suggestions from code review

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-07-30 10:06:15 +03:00
Anuraag Agrawal 6b272fe088
Disable GwtTest unless rqeuested. (#3725) 2021-07-30 14:36:28 +09:00
Nikita Salnikov-Tarnovski cd1af44ce6
Limit recently added apache camel cassandra tests to the supported 2.x branch (#3723) 2021-07-29 15:03:42 -07:00
Lauri Tulmin 9c7df20c09
Remove redundant dependency (#3722) 2021-07-29 19:39:18 +03:00
Anna Nosek 117891afa1
Sanitize cql in Apache Camel instrumentation (#3717)
* sanitize cassandra

* use SemanticAttributes
2021-07-29 08:44:10 -07:00
Mateusz Rzeszutek e5ddbfec0d
Refactor javaagent buildscript (#3682) 2021-07-29 08:35:37 -07:00
Trask Stalnaker 8ecf709037
Fix Apache HttpClient host + absolute uri (#3694) 2021-07-29 08:35:14 -07:00
Nikita Salnikov-Tarnovski e20c3779e1
Extract helper injection verification logic from plugin util into standalone class (#3688) 2021-07-29 10:23:49 +03:00
Anna Nosek 15a40a0059
Sanitize SQL in Apache Camel instrumentation (#3683)
* sanitize and test sql and jdbc, remove mongo branch

* checkstyle fix

* move and simplify unit tests

* add @Unroll to parametrized tests
2021-07-28 18:30:52 -07:00
Lauri Tulmin d73e030000
Fix NullPointerException on tomcat (#3705)
* Fix NullPointerException on tomcat

* remove commented out line

* instrument CoyoteAdapter
2021-07-28 12:10:14 -07:00
Trask Stalnaker d305f3140b
Fix NPE in Apache HttpAsyncClient instrumentation (#3692)
* Fix NPE in Apache HttpAsyncClient instrumentation

* Fix Apache HttpClient host + absolute uri

* Add similar test for Apache HttpClient 5

* Better tests

* Sync with 4.0 and 4.3

* Fix

* sync

* Elasticsearch twist

* Remove so-called optimization path
2021-07-28 10:21:43 -07:00
Lauri Tulmin 0689f86ed3
Fix running tests from intellij (#3702) 2021-07-28 10:21:19 -07:00
Nikita Salnikov-Tarnovski 1785db5331
Extension snapshot (#3625)
* Try to build examples against locally published snapshot

* Always build examples against latest snapshot

* Add Gradle init script to remove sonatype repo

* Build examples against locally published version only during nightly builds

* Update distro demo to the latest snapshot as well
2021-07-28 15:50:27 +03:00
Lauri Tulmin 441609a0d4
Vertx http client 4 instrumentation (#3665)
* Vertx http client 4 instrumentation

* remove debugging

* rebase
2021-07-28 15:10:28 +03:00
Anuraag Agrawal e4fcbb8f51
Explicitly check for key for attribute assertions using hasEntrySatis… (#3703)
* Explicitly check for key for attribute assertions using hasEntrySatisfying

* Check test user agent set first
2021-07-28 13:05:00 +03:00
Nikita Salnikov-Tarnovski 4617a0475a
Extract some muzzle checking logic from plugin util into standalone class (#3685)
* Extract some muzzle checking logic from plugin util into standalone class
2021-07-28 10:40:30 +03:00
Trask Stalnaker f2f4e5e900
Fix build error (#3698) 2021-07-27 22:00:48 -07:00
Anuraag Agrawal 695cf0ad5f
Add library instrumentation for Apache HTTPClient 4.3 (#3623)
* Add apache httpclient 4.3 library instrumentation.

* Fixup

* Mostly done

* Finish

* Finish

* Update instrumentation/apache-httpclient/apache-httpclient-4.3/library/src/main/java/io/opentelemetry/instrumentation/apachehttpclient/v4_3/ApacheHttpClientRequest.java

Co-authored-by: Lauri Tulmin <tulmin@gmail.com>

* Cleanup

Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
2021-07-28 12:18:45 +09:00
Trask Stalnaker 91b302a7d2
Reduce overhead of unsampled requests (#3681)
* Optimize sampled out requests

* Comment
2021-07-27 17:00:00 -07:00
Trask Stalnaker 07250d3adc
Add JFR profile analyzer (#3678)
* Add JFR profile analyzer

* Spotless

* Nullable
2021-07-27 15:42:02 -07:00
Lauri Tulmin ff5472a822
Limit number of concurrently running docker tests (#3664)
* Limit number of concurrently running docker tests

* rename heavy to testcontainers

* use shorter expression
2021-07-27 15:41:39 -07:00
Trask Stalnaker d46d73d4b3
Improve benchmark-overhead-jmh consistency (#3680)
* Improve benchmark-overhead-jmh consistency

* HttpURLConnection
2021-07-27 14:01:10 -07:00
Mateusz Rzeszutek ed9e1a0cb3
Move instrumentation specific classes out of javaagent-instrumentation-api (#3604) 2021-07-27 12:56:59 -07:00
jason plumb e7a940ae7e
Overhead testing foundations (#3627)
* Skeleton for overhead testing subproject.

* clone into base image instead of submodule

* remove submodules file (even though it was empty)

* set up a junit-based test running project that leverages testcontianers.

* remove builder

* remove builder

* cleanup

* repackage

* update base image url

* leverage an agent object

* add optional jvmargs to the Agent

* cleanup and handle file urls

* allow overwrite

* cleanup

* simplify writing

* simplify writing

* remove dead comment

* pass url
2021-07-27 12:55:37 -07:00
Trask Stalnaker 8c6adb481a
Expose some JMH configuration (#3679) 2021-07-27 09:40:53 -07:00
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