Commit Graph

4556 Commits

Author SHA1 Message Date
Trask Stalnaker f50a410fb4
Define packages in exporter class loader (#409) 2020-05-18 13:42:41 -07:00
Trask Stalnaker f6e16c8f90
Bring back webflux client instrumentation (#406) 2020-05-18 13:06:18 -07:00
Sergei Malafeev 2308c69875
upgrade opentelemetry to 0.4.1 (#410)
Signed-off-by: Sergei Malafeev <sergeymalafeev@gmail.com>
2020-05-18 10:40:01 -07:00
Nikita Salnikov-Tarnovski fe8819fb8f
Support for khttp library (#401) 2020-05-17 10:41:41 -07:00
Nikita Salnikov-Tarnovski 6d0d3f54ce
Enable the following instrumentation by default: grizzly, jetty, spark-java (#407) 2020-05-17 10:19:35 -07:00
Rashmi 29a18bdf20
Used BatchSpansProcessor instead of SimpleSpansProcessor (#393)
BatchSpansProcessor won't get blocked by the exporter.

Fixes #368
2020-05-16 13:18:43 -07:00
Carlos Alberto Cortez 009cc6ad1e
Initial Propagators support. (#389) 2020-05-14 16:57:52 -07:00
Nikita Salnikov-Tarnovski 6cfe2256ef
Use java 11 for compilation (#390)
* Allow compiling of everything with java 11

* Instruct CircleCI to use java 11 be default

* Forbid running some tests on java11

* Muzzle uses ClassLoader.platformClassLoader as parent for user-space classloader
2020-05-14 15:13:30 -07:00
Tyler Benson bd3d642500
Merge pull request #398 from trask/dd-merge 2020-05-14 16:05:09 -04:00
Lev Priima fbf31d3a39 Don't listen 0.0.0.0 in tests (DataDog/dd-trace-java#1434) 2020-05-14 11:50:31 -07:00
Tyler Benson f540ae8fc1 Add null servlet context check (DataDog/dd-trace-java#1414) 2020-05-14 11:50:30 -07:00
Tyler Benson 847d59fa7a Fix publishing to artifactory (DataDog/dd-trace-java#1432) 2020-05-14 11:50:30 -07:00
Tyler Benson f8593cbbad Upgrade to latest version of publishing plugins (DataDog/dd-trace-java#1427) 2020-05-14 11:50:30 -07:00
Tyler Benson 6b359d11ec Fix cassandra instrumentation to use a daemon thread (DataDog/dd-trace-java#1422) 2020-05-14 11:50:30 -07:00
Brian Devins-Suresh 6727764123 Netty 3.8 had the wrong version in the config property (DataDog/dd-trace-java#1423) 2020-05-14 11:50:30 -07:00
Richard Startin 95cac497d2 Replace collection.size() > 0 with not collection.isEmpty() (DataDog/dd-trace-java#1420) 2020-05-14 11:50:30 -07:00
Tyler Benson b36a7aef8c Upgrade test-sets plugin to 3.0.1 (DataDog/dd-trace-java#1411) 2020-05-14 11:50:30 -07:00
Tyler Benson ca27485a5c Upgrade Byte Buddy to 1.10.10 (DataDog/dd-trace-java#1409) 2020-05-14 11:50:30 -07:00
Tyler Benson 5ecd8cb81e Add instrumentation for okhttp 2.2+ (DataDog/dd-trace-java#1402) 2020-05-14 11:50:27 -07:00
Nikolay Martynov c63b4fd9a3 Add scopes to http server response (DataDog/dd-trace-java#1408) 2020-05-14 11:49:44 -07:00
Brian Devins-Suresh 6f472a62a0 Fix projectreactor instrumentation to keep span context connected (DataDog/dd-trace-java#1308) 2020-05-14 11:49:44 -07:00
Trask Stalnaker ab0c950140
Update a few last things to otel-java 0.4.0 (#399) 2020-05-11 22:17:16 -07:00
Trask Stalnaker d3790ee546
Update .editorconfig for groovy (#397) 2020-05-11 21:34:50 -07:00
Trask Stalnaker 55211ccd73
Fix sporadic test failure (#386) 2020-05-11 20:53:49 -07:00
Simon Leigh 3a4483a0f5
Add support for jTDS driver connection urls for SQL Server (#396)
The jTDS driver is an open source JDBC driver for connecting to SQL Server databases.
Added support for parsing the url connection string so that spans can be generated for the sql statements using this driver.

Fixes #395
2020-05-09 19:07:31 -07:00
Nikita Salnikov-Tarnovski e54f316b27
Add support for new @WithSpan annotation (#379) 2020-05-06 13:05:11 -07:00
Trask Stalnaker 86748e3f8d
Shade j.u.l.Logger and slf4j in exporters (#381) 2020-05-06 11:48:41 -07:00
Nikita Salnikov-Tarnovski 67766fd13b
Add documentation about java agent structure and related classloaders (#380) 2020-05-06 10:28:35 -07:00
Trask Stalnaker f964725d96
Add troubleshooting section to README (#382) 2020-05-05 19:19:04 -07:00
Trask Stalnaker 438e284f7f
Move CODEOWNERS to .github (#376) 2020-05-05 17:54:53 -07:00
Trask Stalnaker 4f94303e5f
Redirect internal j.u.l.Logger to slf4j (#371) 2020-05-05 15:27:21 -07:00
Tyler Benson af254fe672
Merge pull request #362 from trask/dd-merge 2020-05-05 16:06:50 -04:00
Trask Stalnaker 6d1a58d151 Merge tag 'v0.50.0' into correct-history 2020-05-05 12:41:08 -07:00
Nikita Salnikov-Tarnovski c9cf7ffb61
Make auto-instr work with latest otel-java snapshot (#372)
* Make auto-instr work with latest otel-java snapshot

* Add CircleCI workflow to run nightly test job against otel-java snapshot

* Decrease snapshot versions cache time

* Add comments suggest during review

* Add comments suggest during review

* Add missed helper class

* Use released otel-java 0.4.0

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-05-04 23:18:39 -07:00
Nikita Salnikov-Tarnovski 28eaeb9fed
Allow to disable auto-instrumentation for specified methods (#369)
Add new configuration property, `trace.methods.exclude`, which marks methods which should be excluded from instrumentation. This does not affect any arbitrary auto-instrumentation. Only auto-instrumentation guided by supported annotations (see `trace.annotations` config option and its default value in TraceAnnotationsInstrumentation#DEFAULT_ANNOTATIONS) and by `trace.methods` configuration property can be disabled using this new configuration.
2020-05-04 13:17:44 -07:00
John Bley ca296b92fd
Normalize sql statements to elide literal numbers and strings. (#366)
* Normalize sql statements to elide literal numbers and strings.

* Missed one SlickTest sql normalization.

* Fix muzzle order for helper classes.

* Change name of feature flag

* Upgrade to latest spotless version in an attempt #1 to make the circleci build work.

* Attempt 2 to make circleci build happy - exclude build/generated/** from spotless.

* Attempt 3 to get circleci build working, adding *.java to the exclude line.

* Change exclude of generated files to include of just the src/ directory.
I confirmed that this properly failed the build if I remove a license header from a src/ directory.
2020-05-04 12:17:55 -07:00
Nikita Salnikov-Tarnovski bae0b7b38c
Copy .editorconfig file and relevant sections in CONTRIBUTING.md from otel-java repo (#373) 2020-05-04 10:07:19 -04:00
Trask Stalnaker 79865a8472
Update code coverage config to be more clear (#365) 2020-04-29 16:53:21 -07:00
Trask Stalnaker 212b80d877
Update supported Ratpack version in README (#364) 2020-04-29 16:35:59 -07:00
Nikita Salnikov-Tarnovski a07d763e1a
Add requirement for java 8 and 9 into CONTRIBUTING.md (#367) 2020-04-29 10:59:17 -07:00
Nikita Salnikov-Tarnovski 62426c8158
Allows `./gradlew clean build` to run successfully. (#355)
* CI job `check` will run `build` gradle task
2020-04-29 08:08:14 -07:00
Nikita Salnikov-Tarnovski 6e1c0436da
Clarifications about various test tasks (#358)
In addition this commit replaces eager tasks generation for running tests using different java versions with rule based task created on-demand.
2020-04-28 18:11:17 -07:00
Trask Stalnaker fbbccd31a6
Add DataDog trace annotation (#361) 2020-04-28 17:21:55 -07:00
Trask Stalnaker 62e43d3e54
Bring back code coverage verification (#357) 2020-04-28 15:27:44 -07:00
Trask Stalnaker e24b4309b1
Remove accidentally merged file (#356) 2020-04-28 14:47:52 -07:00
Trask Stalnaker 18c22fd8fd
Remove incorrect info from contributing doc (#353) 2020-04-28 14:25:47 -07:00
Trask Stalnaker 3c4a6b545c
Fix Ratpack instrumentation for newer versions of Guava. (#360)
Ratpack 1.4 should still work if you increase your guava version to 20+ (instead of 19).

Co-authored-by: Tyler Benson <tyler.benson@datadoghq.com>
2020-04-28 13:42:16 -07:00
Tyler Benson 03b6f57892
Merge pull request #1403 from DataDog/tyler/jax-rs-nested-async 2020-04-28 13:56:18 -04:00
Lev Priima 3808bbf2a5
tags precedence: DD_ENV, DD_VERSION, DD_TAGS, DD_GLOBAL_TAGS; DD_SERVICE priority over DD_SERVICE_NAME (#1393) 2020-04-28 08:55:13 -07:00
Tyler Benson 1f69da6158 Remove nested if. 2020-04-28 10:14:59 -04:00