Commit Graph

4479 Commits

Author SHA1 Message Date
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
Tyler Benson 90987a8d23 Merge branch 'master' into tyler/jax-rs-nested-async 2020-04-28 10:12:12 -04:00
Tyler Benson 601bd0cde7
Merge pull request #1405 from trask/fix-early-close-of-rediscala-span 2020-04-28 10:05:54 -04:00
Tyler Benson c3d133a721
Merge pull request #1404 from DataDog/tyler/ratpack-upgrade 2020-04-28 10:05:05 -04:00
Trask Stalnaker 17a7c6d57b Fix early close of rediscala span 2020-04-27 21:07:06 -07:00
Tyler Benson e130ab8cf8 Fix Ratpack instrumentation for newer versions of Guava.
Ratpack 1.4 should still work if you increase your guava version to 20+ (instead of 19).
2020-04-27 17:40:12 -04:00
Pontus Rydin 9568ba079b
Use Builder::setAttribute whenever possible (#348) 2020-04-27 13:51:34 -07:00
Tyler Benson 2e8f69517c Check jax-rs AsyncResponse for span before starting new one
This will prevent the request from being broken due to replacing the unfinished span.
2020-04-27 15:46:56 -04:00
Nikita Salnikov-Tarnovski 25740536a1
FieldBackedProviderFieldInjectionDisabledTest was never run due to broken config (#347) 2020-04-27 12:43:48 -07:00
Trask Stalnaker f9e74ac9c6
Fix some sporadic test failures (#354)
* Fix some sporadic test failures

* Improve Jetty test advice

* Fix smore sporadic test failures

* Improve test consistency
2020-04-27 11:40:27 -07:00
Richard Startin f4acf8b518
Merge pull request #1398 from DataDog/richardstartin/lettuce-4.0
Provide instrumentation support for lettuce-4.0-4.5.0 sync/async APIs
2020-04-27 16:05:05 +01:00
Richard Startin 158ba09520 remove misleading comments 2020-04-27 15:47:24 +01:00
Richard Startin a8e79c4385 rename module to lettuce-4 2020-04-27 15:45:34 +01:00
Richard Startin d158590ab7 code cleanup 2020-04-27 14:59:11 +01:00
Richard Startin 5271952930 remove upper bound on Java version 2020-04-27 14:59:11 +01:00
Richard Startin 6273880d5e address versions comments 2020-04-27 14:59:11 +01:00
Richard Startin d1feb819ed use enumsets for keyword checking 2020-04-27 14:59:11 +01:00
Richard Startin 8ef57915be minimise impact on instrumentation point bytecode size 2020-04-27 14:59:11 +01:00
Richard Startin 3f8bc96e8d get lettuce 4.0 sync and async working 2020-04-27 14:59:11 +01:00
Trask Stalnaker ccff07abb8
Prevent instrumentation from applying too broadly (#337) 2020-04-24 15:09:30 -07:00
Trask Stalnaker 1e29610897
Remove github workflows (#346) 2020-04-24 13:33:11 -07:00
Trask Stalnaker 2d2f4a953e
Fix some sporadic failures (#349) 2020-04-24 13:06:56 -07:00
Tyler Benson 63ea57e7ca
Merge pull request #1397 from aarya123/patch-1 2020-04-24 11:11:54 -04:00
Jean-Philippe Bempel 796a2d3abe
Merge pull request #1395 from jpbempel/jpbempel/JDK7ProfilingMsg
Improve message when running with < JDK8
2020-04-24 16:59:05 +02:00
Nikita Salnikov-Tarnovski f958c2df2d
Add support for SignalFx and AppOptics tracing annotations (#345) 2020-04-23 21:21:25 -07:00
Laplie Anderson 477aca66ce
Merge pull request #1400 from DataDog/landerson/remove-s3-upload
Remove s3 upload from build
2020-04-23 14:08:45 -04:00
Laplie Anderson cf8810cd29 Remove s3 upload from buold 2020-04-23 12:46:57 -04:00
Anubhaw Arya 68908c7a52
Http Trace and Span ID should be StringCachingBigInteger 2020-04-22 20:07:16 -07:00