Commit Graph

5671 Commits

Author SHA1 Message Date
Lauri Tulmin 121a9bffb2
Run tests with hibernate 5 and 6 (#2182) 2021-02-04 14:25:29 -08:00
Mateusz Rzeszutek 27d5786d65
Allow getting current call depth (#2184)
* Allow getting current call depth

* Add comment
2021-02-04 12:41:33 +01:00
Vladimir Šor 3764f63935
Update Readme for JaxWS (#2190)
* Update Readme for JaxWS, add a test case for proxy invocation.

* Added copyright notice, removed test-main.

* Added copyright notice, removed test-main.

* codenarc
2021-02-04 12:59:47 +02:00
Anuraag Agrawal e2d0dd7d4c
Filter out library jar from tests since it's shadowed into the agent … (#2179)
* Filter out library jar from tests since it's shadowed into the agent / agent-testing jar.

* More precision
2021-02-04 15:23:35 +09:00
Vladimir Šor a0d66784d1
Auto-instrumentation for JaxWS (#2176)
* Initial JaxWS support with only manual tests and no async support.

* Add support for soap provider and tests.

* Initial JaxWS support with only manual tests and no async support.

* Add support for soap provider and tests.

* Rename jws 1.0 to 1.1 everywhere.

* Rename jws 1.0 to 1.1 everywhere.
2021-02-04 14:49:58 +09:00
Lauri Tulmin 77522355a2
Elasticsearch: fix unexpected spans for java.net.ConnectException: Connection refused (#2181) 2021-02-04 14:45:03 +09:00
Lauri Tulmin c65fb3ede4
Add tomee to supported servers (#2180)
* Add tomee to supported servers

* move tomee after tomcat

* correct tomee image tag
2021-02-04 14:44:21 +09:00
Mateusz Rzeszutek c5456d559d
Fix JSP 2.3 muzzle (#2185)
* Fix JSP 2.3 muzzle

Tomcat 10.0.2 was released just today; version 10.0.x is supposed to use JSP 3.0 (and servlet 5.0) so this broke the muzzle task.

* skipVersions
2021-02-04 14:42:16 +09:00
Lauri Tulmin 02ca471577
Wicket instrumentation (#2139)
* Wicket instrumentation

* Change supported version to 8.0, turns out earlier versions didn't work
2021-02-03 17:20:49 +02:00
Frank Spitulski 71ceb7486c
cassandra table name should split out keyspace (#2177) 2021-02-03 17:20:19 +02:00
Jakub Wach 1f22fcaab0
Apache camel enable sqs propagation (#2102)
* adding AWS SQS tests to Apache Camel instrumentation

* code review changes

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

* SQS context propagation for Apache Camel instrumentation

* code review - removed not needed dep

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-02-03 10:34:05 +02:00
Gábor Lipták 5bf9f34caa
Bring org.testcontainers to 1.15.1 (#2178)
Signed-off-by: Gábor Lipták <gliptak@gmail.com>
2021-02-03 08:01:04 +02:00
Lauri Tulmin 8f8b7f75ca
Add docker images for tomee (#2175) 2021-02-02 20:13:07 +02:00
Lauri Tulmin 4d59fc0c81
Improve stability of jms-1.1 tests (#2169) 2021-02-02 15:48:02 +02:00
Lauri Tulmin 89fd887c74
Imporve stability of elasticsearch tests (#2170) 2021-02-02 15:46:49 +02:00
Lauri Tulmin 575a71f316
Correct hibernate dtd address (#2171) 2021-02-02 15:41:12 +02:00
Jakub Wach f766151c22
fixing nightly fail - elasticmq version fix (#2174) 2021-02-02 15:20:12 +02:00
Lauri Tulmin 32c34de593
Disable retry on connection failure for okhttp tests (#2154) 2021-02-02 19:34:49 +09:00
Frank Spitulski 9ded7188b8
feat(cassandra4): more attributes (#1314)
* feat(cassandra4): more attributes

fixes #1298

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

* Update instrumentation/cassandra/cassandra-4.0/javaagent/src/test/groovy/CassandraClientTest.groovy

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

* add error handling

* default idempotence

* embed session into onResponse to prevent need to overwrite default tags

* change javadoc according to spotless

* use shared table name extractor

* fix tests to account for SqlStatementSanitizer

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-02-02 18:12:55 +09:00
Mateusz Rzeszutek 7a3f345c18
Clean up BaseTracer, part 1 (#2159)
* Move context leak debugging to ContextPropagationDebug
* Remove getCurrentSpan()
* Add end(Context, ...) & endExceptionally(Context, ...) methods - they're supposed to replace the ones that accept Spans in the future
2021-02-02 10:12:46 +02:00
Anuraag Agrawal b7ad3d2307
Update README for 0.15.0 release. (#2166)
* Update README for 0.15.0 release.

* Fix

* Update README.md

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-02-02 15:46:05 +09:00
Mateusz Rzeszutek 61f86a78b8
Improve muzzle docs: assertInverse, extraDependency (#2158) 2021-02-02 11:53:10 +09:00
jason plumb 66dc6c934f
Document the static imports (style guidelines) (#2161)
* document the static imports that we like

* spotless

* Update docs/contributing/style-guideline.md

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-02-02 11:04:56 +09:00
Brian Ashby 48a0772f3a
add websphere liberty profile, fix weblogic JVM (#2140) 2021-02-01 17:03:40 -08:00
汤煜冬 c523fa2eae
add abstract method getRpcSystem() (#2149) 2021-02-01 13:47:27 +02:00
Mateusz Rzeszutek 93b3a3b289
testing-common refactoring: replace direct AgentTestRunner usage with… (#2134)
* testing-common refactoring: replace direct AgentTestRunner usage with spock spec

* Updated instrumentation docs

* Fix reactor-core library tests

ReactorCoreTest was getting a tracer from GlobalOpenTelemetry before LibraryTestTrait had a change to initialize the SDK
2021-02-01 11:32:25 +01:00
Anuraag Agrawal 94fd21e2ae
Disable agent-for-testing default JAR which we don't publish. (#2151) 2021-02-01 16:52:41 +09:00
Anuraag Agrawal 49194ff444
Don't hardcode agent-for-testing archive filename so it can be publis… (#2146)
* Don't hardcode agent-for-testing archive filename so it can be published.

* Fix accidental

* afterEvaluate
2021-02-01 14:33:27 +09:00
Trask Stalnaker 23945d97e9
Publish lettuce and mongo common (#2148) 2021-02-01 13:26:08 +09:00
Anuraag Agrawal 1ebb58a596
Update to SDK 0.15.0 (#2137)
* Update to SDK 0.15.0

* Fix lightstep test
2021-01-29 21:30:22 +09:00
Jakub Wach 77922d4834
SQS propagation for AWS SDK 1.1 (#2114) 2021-01-29 10:21:12 +02:00
Anuraag Agrawal 0a74799419
Update smoke tests to SDK 0.15.0 (#2136) 2021-01-29 16:59:13 +09:00
Mateusz Rzeszutek 328c6832a2
Publish agent-for-testing and testing-common (#2133) 2021-01-29 08:39:30 +01:00
Mateusz Rzeszutek c61f3f2949
Use a single configuration property for db.statement sanitization (#2125)
* Use a single configuration property for db.statement sanitization

* spotless
2021-01-29 16:02:15 +09:00
Mateusz Rzeszutek b13ef2d809
Instrument spring-batch: tests for parallel steps (#2121) 2021-01-28 16:09:42 +09:00
Anuraag Agrawal 6b13bcca63
Use X-Ray propagator for aws sdk 1.1 instrumentation (#2117)
* Use X-Ray propagator for aws sdk 1.1 instrumentation

* Cleaner

* Fix

* Copy over doc
2021-01-28 16:01:07 +09:00
jason plumb 782a646d89
Cache sql sanitized extraction (#2094) 2021-01-27 10:04:58 -08:00
Lauri Tulmin 9aaa5898af
Add mojarra and myfaces to supported frameworks (#2119)
Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-01-27 12:51:13 +02:00
Lauri Tulmin 87ddfb8d0e
Add instrumentation for spring-ws (#2111)
* Add instrumentation for spring-ws

* add spring-ws to supported frameworks

* Add class loader optimization

* Remov unnecessary latestDepTestLibrary

* review fixes

Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-01-27 17:24:59 +09:00
Mateusz Rzeszutek 20dadc1b6d
Replace two JavaCC lexers with a single JFlex one (#2113) 2021-01-26 14:03:11 -08:00
Lauri Tulmin 8d6ee17c05
Fix netty 4.1 tests (#2122) 2021-01-26 10:11:06 -08:00
Anuraag Agrawal cd1ad985d5
Update workflows to main (#2118) 2021-01-26 20:26:00 +09:00
Nikita Salnikov-Tarnovski 2d683d4289
No more gradle warnings (#2103) 2021-01-26 08:24:18 +02:00
John Watson df801dc2c3
Clean up some spring-boot auto-configuration to get rid of deprecations (#2115) 2021-01-25 22:00:54 -08:00
Mateusz Rzeszutek b78a38f859
Instrument spring-batch: item-level spans (#2047) 2021-01-25 21:38:13 -08:00
John Watson af5719b48c
Consolidate span suppression logic into the BaseTracer (#2106)
* Hide the context keys in the BaseTracer.
Provide the appropriate methods to get access.

* key needs to be static

* put all the span suppression logic in the BaseTracer

* the formatter is our friend

* rename method and add tests

* tests that work!
2021-01-26 09:21:29 +09:00
Nikita Salnikov-Tarnovski 6c76ebf99d
Add documentation for available instrumentation customisation options (#2112)
* Add documentation for available instrumentation customisation options

* Add link to existing example
2021-01-25 22:01:56 +02:00
Lauri Tulmin 59c1034d34
Fix warning on agent startup (#2109) 2021-01-25 17:03:41 +02:00
Sergei Malafeev bbcbeb51e3
MongoDB 4 driver instrumentation (#2046)
* MongoDB 4 driver instrumentation

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* fix getting constructor

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* fix formatting

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* Update instrumentation/mongo/mongo-4/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/mongo/v4/MongoClientInstrumentationModule.java

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

* Update settings.gradle

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

* Update instrumentation/mongo/mongo-4/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/mongo/v4/MongoClientInstrumentationModule.java

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

* use mongo-4.0

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* use public api

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* use testImplementation

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* use declaresField(named("commandListeners")) in typeMatcher

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* migrate to mongo-4.0-testing

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-01-25 15:55:03 +02:00
John Watson 588f8847ed
Hide the context keys in the BaseTracer. (#2105)
* Hide the context keys in the BaseTracer.
Provide the appropriate methods to get access.

* key needs to be static

* fix formatting

* more formatting, sigh

* remove an errant semicolon
2021-01-25 09:49:16 +02:00