Commit Graph

5671 Commits

Author SHA1 Message Date
Piotr Glazar b3504a1e6a
Rxjava 2 (#2130)
* RxJava2 autoinstrumentation

* RxJava2 autoinstrumentation

* Fixing gradle dependencies

* Fixing codenarc violations

* Fixing spotless violations

* After merging with main

* Applying spotless

* Javaagent uses library instrumentation

* Code cleanup

* Revert changes to TraceAssert

* Hard-code class name

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

* Spotless fix

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-02-22 15:25:43 +01:00
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
Mateusz Rzeszutek efa99f0bbe
Update logger MDC docs (after #2312) (#2313) 2021-02-20 19:00:43 -08:00
Anuraag Agrawal 87e1ae6724
Move reactor library instrumentation from instrumentation-core to instrumentation (#2359) 2021-02-20 16:37:21 -08:00
Trask Stalnaker 79fa9e0816
Fix debug logging (#2351)
* Fix debug logging

* Fix test

* Fix another test
2021-02-20 10:06:50 +02: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 5d8c6c3e67
Add code-of-conduct file. (#2341) 2021-02-19 16:24:41 +09: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 b86748fcda
Update links to workflows in RELEASING.md (#2340) 2021-02-19 15:39:58 +09:00
Anuraag Agrawal cf9bfa2373
Publish a BOM (#2339) 2021-02-19 15:29:07 +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
Anuraag Agrawal 8bba7ac364
Update smoke tests to 0.17.0 (#2327) 2021-02-18 15:49:09 +09:00
Lauri Tulmin c95b5048e8
Avoid NoSuchMethodError on shutdown (#2321) 2021-02-18 11:51:55 +09:00
Mateusz Rzeszutek 15a9d0f113
Update smoke tests for logging changes (#2312) (#2316) 2021-02-18 11:46:00 +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
Mateusz Rzeszutek e98da2a3a2
Fix VerifyError in examples/distro servlet instrumentation (#2319) 2021-02-17 21:55:00 +02:00
Trask Stalnaker 54e9cd5d5f
Update MDC docs to reflect log spec naming (#2303) 2021-02-17 14:52:10 +02:00
Trask Stalnaker 427bd5fbb0
Move slf4j-simple initialization from bootstrap into tooling (#2305)
* Move more init out of bootstrap

* spotLESS
2021-02-17 14:51:45 +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
John Watson 836da8dbfd
Add a metric for counting the number of suppressed spans. (#2135)
* Add debug logging when a span is suppressed.

* cleanup from PR comments

* add a `default` to the switch to make checkstyle happy

* rather than logging, use a counter to keep track of the number of suppressed spans.

* update for latest from upstream

* add a default branch for checkstyle
2021-02-17 09:29:58 +02:00
Anuraag Agrawal c6bb83e653
Don't String.format when determining if instrumentation is enabled. (#2309) 2021-02-17 12:52:40 +09:00
John Watson a0b208fd52
Turn on the logging span exporter if agent debug is enabled. (#2270) 2021-02-16 15:38:37 -08:00
Mateusz Rzeszutek ee090aee1e
Support library instrumentations with HttpServerTest & HttpClientTest (#2299) 2021-02-16 09:05:23 -08:00
Trask Stalnaker 33195bde8b
Better license grouping (#2297) 2021-02-16 09:00:08 -08:00
Trask Stalnaker 447470ffaa
Fix main branch build (#2295) 2021-02-16 08:51:21 -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 9d58ac864c
Reduce debug logging (#2296) 2021-02-16 16:08:59 +09: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 59c9b544d1
Bring back debug logging under class file transform (#2236)
* Bring back debug logging under class file transform

* spotless

* Feedback

* Rename to TransformSafeLogger
2021-02-16 12:37:17 +09:00
Trask Stalnaker dba80cecfd
Add example distro to ci (#2292) 2021-02-16 12:05:19 +09:00
Anuraag Agrawal 66f5554a2b
Mark all non-javaagent artifacts as -alpha version. (#2286) 2021-02-15 16:49:37 -08: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