Brian Devins-Suresh
8e111e49ad
Revert feature to calculate sample rate based on failed reporting
2020-04-15 11:09:07 -04:00
Tyler Benson
d313d710af
Merge pull request #1360 from DataDog/tyler/spring-dispatcher
...
Add instrumentation to detect the route at the beginning of the spring request
2020-04-14 16:30:49 -04:00
Tyler Benson
ce006e1405
Ensure RequestDispatcher span is part of expected trace
2020-04-14 14:56:16 -04:00
Tyler Benson
64161d93c9
Add instrumentation to detect the route at the beginning of the spring request
...
Instead of waiting till the handler is called, otherwise if a response is returned by a filter then the proper name wouldn't be set and would fall back to the URL.
2020-04-14 14:19:14 -04:00
Tyler Benson
07f99a98d8
Merge pull request #1221 from DataDog/tyler/trace-processor
...
Add TraceProcessor and move some existing functionality to rules
2020-04-14 13:33:46 -04:00
Nikolay Martynov
c961dac771
Merge pull request #1371 from DataDog/mar-kolya/add-thread-utils-to-bootstrap
...
Add thread utils to bootstrap so instumentations could use them
2020-04-14 12:24:53 -04:00
Tyler Benson
11c71e1d5d
Avoid setting the error tag
...
and test fixes.
2020-04-14 12:21:51 -04:00
Nikolay Martynov
f4c9b73b02
Add thread utils to bootstrap so instumentations could use them
2020-04-14 11:47:40 -04:00
Nikolay Martynov
11035e4c43
Merge pull request #1366 from DataDog/mar-kolya/safe-periodic-tasks
...
Make `CommonTaskExecutor` periodic tasks safe
2020-04-13 19:22:58 -04:00
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
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
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
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
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
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