Commit Graph

746 Commits

Author SHA1 Message Date
Jakub Wach 17aae4dfaa
AWS SDK instrumentation - DynamoDB attributes (#2262)
* AWS SDK instrumentation - DynamoDB attributes

* aws sdk attributes mapping - dynamoDb

* some clean-up, swithced to AWS SDK marshalling for SdkPojos

* more tests, slight refactoring of different request type fields handling

* code review changes

* code review changes

* code review changes
2021-02-22 11:38:35 +02:00
Nikita Salnikov-Tarnovski 2497a03523
Fix nightly build (#2368) 2021-02-22 17:52:28 +09:00
Anuraag Agrawal 2244377dd4
Remove trivial uses of Guava from agent. (#2360)
* Remove trivial uses of Guava from agent.

* Extract

* Clean
2021-02-22 12:31:02 +09:00
Anuraag Agrawal 87e1ae6724
Move reactor library instrumentation from instrumentation-core to instrumentation (#2359) 2021-02-20 16:37:21 -08:00
Anuraag Agrawal 0c764e8db0
Fix post-merge conflict (#2358) 2021-02-20 13:42:41 +09:00
Anuraag Agrawal 0290761acb
Migrate Armeria to HttpServer/ClientTest (#2345)
* Add HttpServerTest for Armeria

* semicolon
2021-02-20 10:35:54 +09:00
neinoi 1f884e4d97
Fix Operation name logging for Netty based applications (#2317) 2021-02-19 09:59:50 -08:00
Lauri Tulmin 1ca7276593
Remove HttpServerTest.testExceptionBody and redirectHasBody (#2346) 2021-02-19 15:57:11 +02:00
Anuraag Agrawal 000df967ce
Update to SDK 0.17.0 (#2338)
* Update to SDK 0.17.0

* Finish

* ottrace
2021-02-19 15:51:55 +09:00
Anuraag Agrawal cc033a14ae
Inject OpenTelemetrySdk into lambda library instrumentation instead o… (#2328)
* Inject OpenTelemetrySdk into lambda library instrumentation instead of using global.

* Update javadoc

* Drift
2021-02-19 12:27:51 +09:00
Lauri Tulmin bc77ab0c82
jetty 9.4 behave differently from earlier versions (#2335) 2021-02-18 15:38:45 -08:00
Ago Allikmaa 72b84c5111
Allow gradle build without JDK/bin in PATH (#2322) 2021-02-18 11:33:48 -08:00
Anuraag Agrawal 13acd390f1
Enable runtime metrics on agent startup. (#2311) 2021-02-18 11:12:40 -08:00
Nikita Salnikov-Tarnovski c810db3dd0
Fix nightly build failure (#2331) 2021-02-18 21:00:47 +09:00
Lauri Tulmin 80f389c778
Instrument all jetty handlers (#2320) 2021-02-18 11:51:48 +02:00
Mateusz Rzeszutek f127a972dc
Add 'trace_flags' to logging MDC (#2312)
* Add 'trace_flags' to logging MDC

* Remove 'sampled' flag
* Rename MDC keys to the current logging spec convention: trace_id instead of traceId

* Fix smoke tests
2021-02-18 16:47:26 +09:00
Jamal Fanaian bdcb2d09e8
Implement spanName for MongoClientTracer (#2307)
* Implement spanName for MongoClientTracer

Adds a basic implementation for spanName in MongoClientTracer that uses the recommended  name from the specification.

* Fix mongo4 tests

* Fix typo in test

* Handle missing dbName

* Update test with a command that has no collection as value

* Fix style issues

* Fix formatting

* remove uneeded line
2021-02-18 11:44:21 +09:00
Lauri Tulmin 50cc8ddc8f
Add support for apache httpclient5 (#2254)
* Add support for apache httpclient5

* review fixes

* copy commnet from httpclient-4 instrumentation

* rebase
2021-02-17 22:03:29 +02:00
jason plumb 3fc1765446
Include status code for HttpUrlConnection exceptions (#2272)
* work in progress

* set span state to error and cleanup

* build test

* gotta get spotless

* cleanup

* move getResponseCode advice to its own advice class.

* remove dynamic type from annotation

* Update instrumentation/http-url-connection/javaagent/src/test/groovy/HttpUrlConnectionTest.groovy

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

* Update instrumentation/http-url-connection/javaagent/src/test/groovy/HttpUrlConnectionTest.groovy

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-02-17 22:02:02 +02:00
Trask Stalnaker 54e9cd5d5f
Update MDC docs to reflect log spec naming (#2303) 2021-02-17 14:52:10 +02:00
Mateusz Rzeszutek aa5fef2bfe
Improve library tests' stability (#2300)
* Improve library tests' stability

* Code review follow-up
2021-02-17 13:22:14 +01:00
Piotr Glazar 64c8a51f7d
Rxjava2 library instrumentation (#2191)
* RxJava 2 library instrumentation

* Spotless fix

* Ignoring problematic test - for now

* Spock test fix

* Gradle testing module

* After upstream main merge

* Spotless fix

* onSubscribe plugin

* Major refactoring

* After main branch merge

* Spotless fix

* Code review fixes

* More code review fixes

* Removing obsolete Connectable* classes

* Apply suggestions from code review

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>

* Code review fixes

* Adding a Javadoc comment that describes test methodology

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-02-17 13:12:50 +01:00
Mateusz Rzeszutek ee090aee1e
Support library instrumentations with HttpServerTest & HttpClientTest (#2299) 2021-02-16 09:05:23 -08:00
Mateusz Rzeszutek 82e3166e68
Fix nightly build (hibernate 4.3 latestDepTest) (#2298) 2021-02-16 12:00:03 +01:00
Lauri Tulmin e76d3b19d1
Fix ServletContextPath.prepend for app server spans (#2089)
* ServletContextPath.prepend doesn't work when server span is created from app server integration

* move ServletContextPath context creation to servlet-common, make servlet2&3 depend on servlet-common so that it would be used in tests that depend on servlet3

* fix failing test

* add servlet-common dependency to modules that depend on servlet3

* add servlet-common dependency to mojarra and myfaces

* run context path instrumentation after servlet instrumentation

* add servlet-common dependency to wicket

* move servlet context path handling

* enable jetty instrumentation for all handlers

* run springmvc tests with tomcat integration, fix peer port and peer ip reporting on tomcat

* jetty integration is now enabled for all handlers

* update expected span name

* Revert "jetty integration is now enabled for all handlers"

This reverts commit 82cbb663f5.

* Revert "update expected span name"

This reverts commit c034496fc5.

* Revert "enable jetty instrumentation for all handlers"

This reverts commit 8a3d077600.

* Trigger Build
2021-02-15 23:34:15 -08:00
Trask Stalnaker 1311bd1ed8
Propagate context to apache httpclient async callback (#2276) 2021-02-15 23:33:34 -08:00
Trask Stalnaker fbd55068c8
Remove unnecessary dynamic typing (#2277) 2021-02-16 07:52:07 +02:00
Anuraag Agrawal 69e8e8ebcb
Rethrow exception if thrown in gRPC client onMessage. (#2294) 2021-02-16 14:34:56 +09:00
Trask Stalnaker f866bf2f93
Remove unused gradle config (#2268) 2021-02-15 16:48:23 -08:00
Mateusz Rzeszutek 48a12b7e9f
Remove Hibernate from javaagent jar (#2288) 2021-02-15 16:25:08 -08:00
Mateusz Rzeszutek 0adeb85f43
Refactor InMemoryExporter and move some of its methods … (#2264)
* Refactor InMemoryExporter and move some of its methods to spock base class & junit extension

* codenarc

* spotless

* Apply suggestions from code review

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

* fix armeria library tests

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-02-15 17:36:14 +01:00
Trask Stalnaker 45a81d24b1
Remove afterburner from aws-lambda tests (#2271) 2021-02-13 11:16:01 -08:00
Mateusz Rzeszutek 211e0b7ab2
Use ClassRule in armeria tests (#2265) 2021-02-13 11:54:39 +09:00
Lauri Tulmin eaa973c208
Test jax-rs on wildfly (#2242) 2021-02-12 16:19:10 -08:00
Mateusz Rzeszutek a74f60b3f8
Add JUnit 5 extensions for instrumentation testing (#2241)
* Add JUnit 5 extensions for instrumentation testing

* Fix kafka tests

* RepeatedTest
2021-02-12 12:57:08 +01:00
Mateusz Rzeszutek 0fbdcad1dd
Make BaseTracer#startSpan() return Context (#2232)
* Make BaseTracer#startSpan() return Context

* Update instrumentation/apache-camel-2.20/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/apachecamel/CamelEventNotifier.java

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

* spotless

* Add Javadocs to BaseTracer

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-02-12 12:12:40 +01:00
Trask Stalnaker 66fe53b028
Remove deps from javaagent (#2251)
* Remove deps from javaagent

* Also

Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-02-12 17:19:47 +09:00
Jakub Wach 29780d97be
fixing possible NPE in Apache Camel instrumentation (#2250) 2021-02-11 12:38:10 +02:00
Trask Stalnaker 9592229e36
Skip recent problematic elasticsearch version (#2253) 2021-02-11 11:28:15 +02:00
Jakub Wach 8592d79362
aws lambda instrumentation - http headers propagation fix (#2222)
* aws lambda instrumentation - http headers propagation fix

* documented lambda propagation behaviour

* spotless apply
2021-02-10 12:45:38 +01:00
Mateusz Rzeszutek ecf64c25f3
Remove BaseTracer#startScope() method (#2224)
* Remove BaseTracer#startScope() method

* fix compilation failure
2021-02-10 11:39:38 +01:00
Trask Stalnaker 7d373c7141
Remove kotlin core libs from javaagent distro (#2238) 2021-02-10 18:42:08 +09:00
Trask Stalnaker c91bff41cb
Add comment about extension shading (#2235) 2021-02-10 09:39:33 +02:00
Anuraag Agrawal fc410706d0
Update to Sdk 0.16.0 (#2221)
* Update to 0.16.0-SNAPSHOT

* Finish

* Finish

* Update to 0.16.0

* Finish
2021-02-09 18:00:54 +09:00
YuDong Tang a6527c2fa0
add support 4 Apache Dubbo (#2108) 2021-02-06 21:56:24 -08:00
Trask Stalnaker 201691b8a1
Fix merge conflict (#2213) 2021-02-06 21:12:17 -08:00
Lauri Tulmin 7538a66d4c
JAX-RS with Apache CXF (#2192) 2021-02-06 12:15:05 -08:00
Mateusz Rzeszutek a230258e91
Refactor AWS lambda tracers so that they use Context (#2194)
... and do not use BaseTracer#startScope(). This PR eliminates all overrides of startScope(), in the next one I'll remove it.
2021-02-06 12:14:02 -08:00
Lauri Tulmin 22109b2719
Fix flaky spring jms test (#2202) 2021-02-05 16:06:09 -08:00
Mateusz Rzeszutek facaf8e46f
Remove all remaining direct AgentTestRunner usages (#2196)
* Remove all remaining direct AgentTestRunner usages

* Fix jaxws compilation failure
2021-02-05 16:14:26 +01:00