Commit Graph

4841 Commits

Author SHA1 Message Date
Nikolay Martynov bef848ec2d Disable coverage and add TODO 2020-04-13 18:44:18 -04:00
Lev Priima bd637732da
No logging when using default Value when parsing (#1364) 2020-04-13 15:15:24 -07:00
Tyler Benson 3aa803489b Fix tests. 2020-04-13 18:03:53 -04:00
Nikolay Martynov b1589c3819 Fix unit test 2020-04-13 17:51:20 -04:00
Nikolay Martynov 96fcb278b6 Add comment 2020-04-13 17:41:25 -04:00
Nikolay Martynov eee11f5ce0 Remove Cleaner class 2020-04-13 17:34:31 -04:00
Nikolay Martynov 683477bd60 Simplify WeakMapSuppliers
Also move CleanerTest to PeriodicSchedulingTest
2020-04-13 17:30:31 -04:00
Tyler Benson d1dc756b12 Fix issues from code reviews. 2020-04-13 17:06:12 -04:00
Tyler Benson 60226086c3 Catch NumberFormatException 2020-04-13 17:06:12 -04:00
Nikolay Martynov d86093c474 Minor CR fixes and some comments 2020-04-13 17:05:30 -04:00
Nikolay Martynov 1fb844ab5f Make `CommonTaskExecutor` periodic tasks safe
* Verify that we can schedule task and catch exceptions.
This should help to avoid additional exceptions on app crash during
  startup.

* Avoid holding strong references from within executor to make sure
  that things can get GCed.
2020-04-13 16:04:31 -04:00
Tyler Benson df97f90fec Remove OperationDecorator 2020-04-13 15:55:37 -04:00
Tyler Benson 8170f7bc7b Various fixes 2020-04-13 15:55:37 -04:00
Tyler Benson 7614fa42e0 Move DBStatementAsResourceName to DBStatementRule 2020-04-13 15:54:52 -04:00
Tyler Benson 7650efe5ed Move AnalyticsSampleRateDecorator to AnalyticsSampleRateRule 2020-04-13 15:54:51 -04:00
Tyler Benson c288f69e64 Move ResourceNameDecorator to ResourceNameRule 2020-04-13 13:59:11 -04:00
Tyler Benson f0eb73ef12 Use tags instead of meta
which includes baggage.
2020-04-13 13:59:11 -04:00
Tyler Benson 329e79b801 Move SpanTypeDecorator to SpanTypeRule 2020-04-13 13:59:11 -04:00
Tyler Benson 2028b10009 Move ErrorFlag to TraceProcessor 2020-04-13 13:59:11 -04:00
Tyler Benson 97efa307d3 Stop setting error tag and update tests. 2020-04-13 13:59:11 -04:00
Tyler Benson 73fb7aa2b6 Add TraceProcessor and move some existing functionality to rules
Specifically, the Status5XXRule, URLAsResourceNameRule, and Status404Rule.
2020-04-13 13:59:11 -04:00
Tyler Benson 3ca04b9894
Merge pull request #313 from trask/dd-merge
Merge changes from dd-trace-java 0.48.0
2020-04-13 12:41:06 -04:00
Trask Stalnaker d24159c8d2 Merge tag 'v0.48.0' into dd-merge 2020-04-12 15:20:10 -07:00
Tyler Benson af188c2901
Merge pull request #1361 from DataDog/revert-1336-lpriima/_dd.measured
Revert "add ..."metrics":{"_dd.measured":1}... to every span"
2020-04-10 14:28:51 -04:00
Tyler Benson b85e023fbe Revert "add ..."metrics":{"_dd.measured":1}... to every span (#1336)"
This reverts commit cda39adf50.
2020-04-10 13:56:03 -04:00
Lev Priima 7f146d74dc
DD_SERVICE; DD_ENV; DD_VERSION env vars support (#1341)
DD_SERVICE; DD_ENV; DD_VERSION env vars support

* Config.valueOf("", null, "") with throw NPE

* mark unused public fields @Deprecated in Config.java

* keep unused public fields untouched

* retrun 2arg Config ctor
2020-04-10 10:50:11 -07:00
Tyler Benson 02555e5fcc
Merge pull request #1356 from DataDog/tyler/split-fix
Fix Extractor edge case with value of a single comma.
2020-04-09 14:46:33 -04:00
Kyle Verhoog e7df954c94
Merge pull request #1357 from Kyle-Verhoog/kylev/fix-reliability-re
Fix reliability branch filter regex
2020-04-09 12:44:11 -04:00
Kyle Verhoog a8c14cdcb2
Fix reliability branch filter regex 2020-04-07 20:58:38 -04:00
Tyler Benson 8ba53dc5ca
Merge pull request #283 from trask/dd-merge
Merge changes from dd-trace-java 0.47.0
2020-04-07 12:55:52 -04:00
Tyler Benson e7f0d2db12 Alternate fix for #1319
Turns out the issue wasn't with an empty string returning an empty array, but a string with just `,`.
```
jshell> ",".split(",")
$1 ==> String[0] {  }
```
A non-intuitive edge case in my opinion.
2020-04-07 12:35:20 -04:00
Trask Stalnaker c545ffa3c2 Merge tag 'v0.47.0' into dd-merge 2020-04-06 13:26:15 -07:00
Nikolay Martynov 71f1611f10
Merge pull request #1355 from DataDog/mar-kolya/new-api-key-option
Introduce to API key config option
2020-04-06 14:52:33 -04:00
Trask Stalnaker 3b81dc4b8e
Update version to 0.2.3-SNAPSHOT (#308) 2020-04-06 09:57:16 -07:00
Nikolay Martynov 309f9e2ddb Introduce to API key config option
To stream line configuration in the future intropduce
`DD_API_KEY`/`DD_API_KEY_FILE` to provide agent with API
key. Currently this is only used for profiling but later may be used
for other parts of the agent too.
2020-04-06 12:02:51 -04:00
Jean-Philippe Bempel 176b9c0121
Merge pull request #1350 from jpbempel/jpbempel/improveJFRMessage
Add fix suggestion when JFR API not found
2020-04-06 16:35:38 +02:00
Nikolay Martynov feb11a7a8e
Merge pull request #1353 from DataDog/mar-kolya/update-gradle
Update gradle to 6.3
2020-04-06 10:23:50 -04:00
Nikolay Martynov 2870819fa6 Update gradle to 6.3 2020-04-06 08:08:03 -04:00
jean-philippe bempel 658544fb38 Fix formatting 2020-04-06 13:26:55 +02:00
jean-philippe bempel ce26d0532e Add test for improved messages 2020-04-06 12:19:20 +02:00
Trask Stalnaker 105b63ab8e
Update version to 0.2.2 (#307) 2020-04-04 10:09:02 -07:00
Trask Stalnaker e0589e18fe
Do not instrument exporter class loader (#306) 2020-04-04 09:29:36 -07:00
jean-philippe bempel 343a77d619 Add fix suggestion when JFR API not found
suggests to use zulu 1.8u212 at least which include JFR or OpenJDK11+
2020-04-03 20:00:52 +02:00
Nikolay Martynov c758a81bc9
Merge pull request #1348 from DataDog/mar-kolya/add-profiling-site-config
Add option to configure Datadog site used to send profiling information
2020-04-03 12:14:40 -04:00
Nikolay Martynov cda34a6157 Merge branch 'master' into mar-kolya/add-profiling-site-config 2020-04-03 08:03:44 -04:00
Nikolay Martynov b429cf4c52 Add some deprecation notes 2020-04-03 07:52:26 -04:00
Nikolay Martynov 98da6eb156
Merge pull request #1349 from DataDog/jpbempel/PROF-1296
Remove sensitive information from debug log
2020-04-03 07:35:27 -04:00
Nikolay Martynov e812d327fb Rename DD_PROFILING_SITE to DD_SITE 2020-04-03 07:10:42 -04:00
Trask Stalnaker 7bc48ead58
Update version to 0.2.2-SNAPSHOT (#301) 2020-04-02 14:08:48 -07:00
Nikolay Martynov e1f2052e25 Minor clean up and add one more test 2020-04-02 16:07:13 -04:00