Commit Graph

4841 Commits

Author SHA1 Message Date
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
Tyler Benson f2bf50684a Use Retry.Mode.SETUP_FEATURE_CLEANUP to improve Elasticsearch test flakiness (DataDog/dd-trace-java#1494) 2020-06-11 10:12:11 -07:00
Nikita Salnikov-Tarnovski 9f44348217
Embed exporters into agent jar (#491)
* Embed all exporters into agent jar

* Publish agent with exporters and without

* Polish
2020-06-11 09:41:11 +03:00
Trask Stalnaker a5128fcd53
Support non-monotonic metrics (#494)
* Support non-monotonic metrics

* Fix check build

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2020-06-11 09:40:25 +03:00
Trask Stalnaker f0c7deb1a9
Use published MetricExporterFactory (#493) 2020-06-11 08:31:58 +03:00
Nikita Salnikov-Tarnovski ae03d88c20
Enable publishing to Artifactory OSS (#489) 2020-06-10 07:34:09 +03:00
Anuraag Agrawal 2600cb2056
Add missing AWS SDK helper. (#483) 2020-06-09 20:04:22 -07:00
Munir Abdinur 5b7304e9f0
Otel-Spring-Contrib: First draft of readme with initial details (#484) 2020-06-09 14:58:20 -07:00
Nikita Salnikov-Tarnovski 31177c2fa9
Disable publishing to Artifactory OSS until it is properly configured on JFrog side (#486) 2020-06-09 20:57:34 +03:00
Nikita Salnikov-Tarnovski c248f140aa
Artifactory and bintray publish (#403)
* Artifactory and bintray publish

* Delegate version management to Nebula

* Proposal of new release process

* New CI jobs for releasing

* Fix nebula versioning

* Polish

* Fix CI

* Publish snapshot from master must depend on test_8

* Fix repo name

* Restore version file creation

* Use correct env variable for Bintray credentials

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-06-09 07:56:12 +03:00
Anuraag Agrawal f13a9c4932
Move client span creation to decorator and automatically suppress creation of neste… (#460)
* Move client span creation to decorator and suppress creation of nested client spans.

* Store subtree client span in context.

* Apply new pattern to AWS V1 SDK instrumentation too, cleanup, and javadoc
2020-06-08 12:01:43 -07:00
Nikita Salnikov-Tarnovski 8ee54389da
Try to fix flaky test by replacing list comparison with set comparison (#480) 2020-06-08 20:00:38 +03:00
Anuraag Agrawal 5792ec3ada
Allow specifying a JAR to control OTel SDK SPI. (#449)
* Allow specifying a JAR to control OTel SDK SPI.

* Update README.md

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-06-08 19:33:27 +03:00
Nikita Salnikov-Tarnovski 357fb6e989
Deduplicate servlets (#469)
* Servlet instrumentations unified

* Grizzly migrated

* Fix tests after merge

* Polish and fix tests

* Polish and fix tests

* Muzzle fixes

* Muzzle fixes

* Muzzle fixes

* Test fixes

* One more check fixed

* Stop using SpanWithScope

* Test fix

* Compilation fix

* Apply suggestions from code review

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

* Update agent-bootstrap/src/main/java/io/opentelemetry/auto/bootstrap/instrumentation/decorator/HttpServerTracer.java

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

* Polish

* Tracer does not manage scope anymore

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-06-08 10:49:58 +03:00
Rashmi 109d684152
Configured trace config to read from env vars/sys props (#479)
* Configured trace config to read from env vars/sys props

* Fixed the codenarc violation

* Addressing review comments

1. Updated span count target to num_tries in the test since SpanCounter stops counting spans as soon as it hits the targets

* Extracted the configure method outside of installExportersFromJar

* Addressing comments
2020-06-08 09:54:18 +03:00
Nikita Salnikov-Tarnovski 1c59062aae
0.5.0 (#476)
* Update to otel-java 0.5.0-SNAPSHOT (#462)

* Update to otel-java 0.5.0-SNAPSHOT

* Tests pass

* Check fix

* Switch to otel-java 0.5.0

* Add TODOs
2020-06-05 20:11:49 +03:00
Rashmi cfade733b8
Fixed Mongo client double tracing bug (#471)
* Fixes #457

* Addressing review comments
1. Added comments in test
2. Fixed latestDepTest failures in MongoAsyncClient by adding `declaresField`
3. Made TracingCommandListener inline in MongoClientAdvice

Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2020-06-04 19:48:05 +03:00
Trask Stalnaker dff7907666
Add roadmap (#468) 2020-06-03 11:20:54 -07:00
Trask Stalnaker 96fa7b8c31
Merge changes from dd-trace-java 0.53.0 (#456)
* Add time in queue (DataDog/dd-trace-java#1481)

* Minor upgrades (DataDog/dd-trace-java#1495)

* Allow user to disable kafka time in queue tag (DataDog/dd-trace-java#1487)

* Replace Set<Integer> with BitSet for HTTP statuses (DataDog/dd-trace-java#1496)

* Register WeakMapProvider earlier in AgentInstaller (DataDog/dd-trace-java#1480)

* Update codenarc (DataDog/dd-trace-java#1500)

Co-authored-by: Tyler Benson <tyler.benson@datadoghq.com>
Co-authored-by: Nikolay Martynov <mar.kolya@gmail.com>
Co-authored-by: Richard Startin <richard.startin@datadoghq.com>
2020-06-02 18:20:54 +03:00
jeffalder 15ef21f40d
Minor typo fix (#467) 2020-06-01 12:26:40 -07:00
Anuraag Agrawal 9c63890d29
Intercept calls to ClientOverrideConfiguration to apply our instrumen… (#453) 2020-05-31 09:25:39 -07:00
Trask Stalnaker 015be46ec2
Remove unnecessary version constant (#455) 2020-05-31 06:31:38 +03:00
Trask Stalnaker 35d4f61854
Remove printlns that were accidentally committed (#459) 2020-05-31 06:30:38 +03:00