Commit Graph

4863 Commits

Author SHA1 Message Date
Richard Startin 4e836f1c72 Replace remaining named disjunctions with namedOneOf or namedNoneOf (DataDog/dd-trace-java#1584) 2020-06-23 14:08:45 -07:00
Richard Startin 2af04f792f BaseDecorator shouldn't rely on $ in class names (DataDog/dd-trace-java#1585) 2020-06-23 14:08:45 -07:00
Richard Startin 0fad251165 Introduce matcher for membership of a set of names (DataDog/dd-trace-java#1583) 2020-06-23 14:08:45 -07:00
Richard Startin bc7a3626ed Iterate type interfaces without materialising a list during super type matching (DataDog/dd-trace-java#1578) 2020-06-23 14:08:45 -07:00
Richard Startin c072bcd1fa Avoid creating new strings prior to jar lookup (DataDog/dd-trace-java#1580) 2020-06-23 14:08:45 -07:00
Laplie Anderson f628f02de6 Do not attempt to instrument websocket upgrade handlers (DataDog/dd-trace-java#1567) 2020-06-23 14:08:45 -07:00
Richard Startin d668b07ae6 Create context store map at most once (DataDog/dd-trace-java#1570) 2020-06-23 14:08:45 -07:00
Laplie Anderson cbf04b0b15 Circleci config cleanup (DataDog/dd-trace-java#1564) 2020-06-23 14:08:45 -07:00
Lev Priima 3dbbbda4a8 Disable agent if we may append wrong jar to bootclasspath (DataDog/dd-trace-java#1561) 2020-06-23 14:08:45 -07:00
Richard Startin a252985562 Cache span names derived from class and method names (DataDog/dd-trace-java#1562) 2020-06-23 14:08:44 -07:00
Nikolay Martynov cbbf870c2e Fix future cancelation (DataDog/dd-trace-java#1555) 2020-06-23 14:08:44 -07:00
Brian Devins-Suresh 07c64f15e1 Update play-2.6 instrumentation to support Play version 2.8.x (DataDog/dd-trace-java#1521) 2020-06-23 14:08:44 -07:00
Laplie Anderson 74cd2fdd3d Split muzzle across multiple executors (DataDog/dd-trace-java#1549) 2020-06-23 14:08:44 -07:00
Jaroslav Bachorik 459c291bca Allow the mock http server get assigned a transient port (DataDog/dd-trace-java#1540)
This change should eradicate the spurious test failures due to port conflicts - at least for the profiling smoke tests.
2020-06-23 14:08:44 -07:00
Lev Priima da15d0de64 ApacheHttpClientRedirectInstrumentation copy headers from original request to redirect if original redirect headers were empty (DataDog/dd-trace-java#1539) 2020-06-23 14:08:44 -07:00
Tyler Benson 88c14dcab2 Add some tests for Java CompletableFuture (DataDog/dd-trace-java#1546) 2020-06-23 14:08:44 -07:00
Nikita Salnikov-Tarnovski d08a1a9c5c
When loading exporter factories via SPI from an external jar, look only inside that jar, and not any parent classloader. (#569) 2020-06-23 12:35:12 -07:00
Anuraag Agrawal 918d3913e3
Populate user-agent in HTTP clients. (#540) 2020-06-22 21:13:12 -07:00
Trask Stalnaker 126c972864
Optimization for expensive type matcher (#558) 2020-06-22 19:17:34 -07:00
Trask Stalnaker 8b0813c3b9
Fix FieldBackedProvider not getting applied (#550)
* Fix FieldBackedProvider not getting applied

* Remove unhelpful comment

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2020-06-22 18:48:08 +03:00
Trask Stalnaker 82a1b35828
Update otel api instrumentation module name (#551)
* Update otel api instrumentation module name

* Remove vbeta subpackage

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2020-06-22 16:42:55 +03:00
Trask Stalnaker 9dcb079aa6
Fix duplicate log capture, part 2 (#554) 2020-06-22 11:13:36 +03:00
Trask Stalnaker 7b06e2fb7a
Remove unnecessary exclusion (#539) 2020-06-20 17:53:32 -07:00
Trask Stalnaker f61b316b67
Make Cassandra instrumentation Java 7 compatible (#543) 2020-06-20 16:52:02 -07:00
Trask Stalnaker 9cf0cb6b1e
Fix duplicate log capture (#544) 2020-06-19 08:45:34 +03:00
Anuraag Agrawal 9a2a0b5de9
Add lettuce 5.2 instrumentation that uses lettuce's native tracing functionality. (#535)
* Copy Lettuce 5.0 to start 5.1 instrumentation

* Begin tracing adapter implementation

Co-authored-by: Dustin Neray <dustin.neray@gmail.com>

* Set floor to 5.2 instead

* Move around

* Finish

* Cleanups

* Instrument 5.1+ instead

* Cleanup

* 5.1

* Remove latestDepTest from lettuce-5.0 since we have a newer lettuce-5.1.

* Remove

* Remove package check

* Spotless

Co-authored-by: Dustin Neray <dustin.neray@gmail.com>
2020-06-18 18:22:45 +03:00
Nikita Salnikov-Tarnovski c1c02ac949
Next attempt to extract common logic from instrumentations. (#523)
* Next attempt to extract common logic from instrumentations.

I tried to reduce code repetition in DB client instrumentations, jdbc and mongo ones. This time I experimented with another approach, different from HttpServerTracer. Namely, I have extracted that common `startSpan` method into `DatabaseClientDecorator` itself. The idea is still the same as before, but I wanted to see if we can migrate by smaller steps, reusing much of the existing code and just incrementally reducing public API.

* Extracted separate Tracer after all

* More explicit call depth handling

* Fix format

* More reusable method overloads
2020-06-17 12:08:52 -07:00
Trask Stalnaker 4635f6ff46
Add iNikem as a maintainer (#537) 2020-06-17 10:05:17 -07:00
Trask Stalnaker 64e39f064d
Simplify getting started (#533) 2020-06-16 11:44:07 -07:00
John Watson a59bb19192
rename the root project to match the current project name (#524)
* rename the root project to match the current project name

* rename the root gradle file to be more standard.
2020-06-15 20:36:23 -07:00
Munir Abdinur 98775816ad
First section of the tutorial 1/3 (#505) 2020-06-15 18:58:32 -07:00
Nikita Salnikov-Tarnovski 58a2a3b0b4
Update documentation to point to new snapshot and release repositories (#516) 2020-06-15 17:45:37 -07:00
Nikita Salnikov-Tarnovski dbb639a56d
Don't deploy releases to Artifactory (#527) 2020-06-15 22:20:01 +03:00
John Watson 1c9b54f558
remove the restriction on instrumenting classes in com.newrelic (#525) 2020-06-15 20:31:20 +03:00
Nikita Salnikov-Tarnovski 5e9e2539e7
The fattest jar now has `-all` classifier (#515)
* The fattest jar now has `-all` classifier

* Test fix
2020-06-15 10:12:33 +03:00
Trask Stalnaker 1c2f74d8db
Possible fix for a sporadically failing test (#522)
Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2020-06-15 07:55:51 +03:00
Trask Stalnaker e2338ab4fc
Add discussion locations to top of README (#521)
Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2020-06-15 07:47:44 +03:00
Trask Stalnaker 6bb31f5c54
Update save actions (#520)
Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2020-06-15 07:46:12 +03:00
Nikita Salnikov-Tarnovski e61ff5bac2
Rename auto-exporters' artifacts names (#514) 2020-06-14 10:53:51 -07:00
Nikita Salnikov-Tarnovski c11835963f
Vert.x instrumentation improvements (#503)
* Support for Vert.x rx-java async tasks

* Use Vert.x route for server span name

* Move reactive Vert.x instrumentation into separate module

* Test fixes

* Format fixes

* Polish

* Fix license header

* Add Vert.x to README
2020-06-13 23:18:30 +03:00
Trask Stalnaker 4a26bd3ce7
Simplify setting of user.principal attribute (#509) 2020-06-13 12:11:03 +03:00
Trask Stalnaker 4b665dcbe2
Changed instrumentation tracer" TRACER.startSpan() to never return `null` (#499) 2020-06-12 16:15:38 -07:00
Munir Abdinur 3cd9ffa370
Empty gradle project (#497) 2020-06-11 18:41:18 -07:00
Tyler Benson 5ce2f39124
Merge pull request #481 from trask/dd-merge 2020-06-11 14:20:25 -04:00
Richard Startin 57c0aed1fa Use ClassValue to store ThreadLocal call depth (DataDog/dd-trace-java#1528) 2020-06-11 10:14:07 -07:00
Richard Startin badfbb8b18 Change error bound so test should almost never fail (DataDog/dd-trace-java#1525) 2020-06-11 10:14:07 -07:00
Brian Devins-Suresh f200b4cbed Ignore proxool proxy classes (DataDog/dd-trace-java#1524) 2020-06-11 10:14:07 -07:00
Richard Startin 13264b3560 Add record.queue_time_ms to rabbitmq consumer span tags (DataDog/dd-trace-java#1522) 2020-06-11 10:14:07 -07:00
Richard Startin c61034c945 Fix elasticsearch test flakiness (DataDog/dd-trace-java#1513) 2020-06-11 10:14:07 -07:00
Tyler Benson 1b29184e7c Make rootDir usage consistent (DataDog/dd-trace-java#1518) 2020-06-11 10:14:02 -07:00