Commit Graph

2392 Commits

Author SHA1 Message Date
Nikolay Martynov 683477bd60 Simplify WeakMapSuppliers
Also move CleanerTest to PeriodicSchedulingTest
2020-04-13 17:30:31 -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 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
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
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 d1f1f8d6e9 Add option to configure Datadog site used to send profiling information 2020-04-02 15:56:05 -04:00
Brian Devins-Suresh fbb43840d3 Fix new client tests 2020-03-26 14:29:35 -04:00
Brian Devins-Suresh 026072b866 Wrong endpoint 2020-03-26 10:10:32 -04:00
Brian Devins-Suresh acba3626dc Missed a static import 2020-03-26 10:10:32 -04:00
Brian Devins-Suresh d3def8ce2d :( 2020-03-26 10:10:32 -04:00
Brian Devins-Suresh 8dd5993a8f Fix codenarc 2020-03-26 10:10:32 -04:00
Brian Devins-Suresh 661a8f5a3e Fix the latestdeptests 2020-03-26 10:10:32 -04:00
Brian Devins-Suresh 6fa94ed9ac Update to new module name 2020-03-26 10:10:32 -04:00
Brian Devins-Suresh 879d84a162 Try to fix client test, not quite 2020-03-26 10:10:32 -04:00
Brian Devins-Suresh 7f7b7d41cd Depend on netty 3.9 instrumentation 2020-03-26 10:10:32 -04:00
Brian Devins-Suresh 485d9cb6c2 Work so far 2020-03-26 10:10:32 -04:00
Brian Devins-Suresh 89a0761ab4 Add typesafe repo and skip bad builds 2020-03-26 10:10:31 -04:00
Brian Devins-Suresh d1093a79b8 rename package 2020-03-26 10:10:31 -04:00
Brian Devins-Suresh 5cfaf8b2e5 Test servers now both work 2020-03-26 10:10:31 -04:00
Brian Devins-Suresh 73122ea72c Starting to get tests building 2020-03-26 10:10:31 -04:00
Brian Devins-Suresh 4ac364d92a Fix tests 2020-03-25 16:29:01 -04:00
Brian Devins-Suresh de4b6d7733
Merge pull request #1320 from DataDog/tyler/http-client-testing
Add tests for http clients
2020-03-25 16:08:26 -04:00
Nikolay Martynov e5caa48364 Add netty server logging in tests 2020-03-24 15:16:09 -04:00
Nikolay Martynov fee6d942e8 Add okhttp request logging in tests 2020-03-24 14:52:07 -04:00
Brian Devins-Suresh e1566889a4 Switch startup and shutdown impl 2020-03-24 14:12:47 -04:00
Nikolay Martynov cf079a73ba Make sure that netty exception message is not null
Otherwise netty gets really upset in an odd way
2020-03-24 11:37:19 -04:00
Laplie Anderson cef6da61dc
Revert "Add config to capture stacktrace when a span duration exceeds threshold" 2020-03-23 19:13:29 -04:00
Brian Devins-Suresh 2b5037e2f7
Merge pull request #1327 netty-3.8
Netty 3.8-3.10 instrumentation
2020-03-23 15:12:20 -04:00
Brian Devins-Suresh 5aa1800bec Get rid of half baked map methods. Close parentScope in a finally block (+forward port) 2020-03-23 14:44:11 -04:00
Brian Devins-Suresh d4a4c5619c Less class loads 2020-03-23 14:03:00 -04:00
Nikolay Martynov d2b73c7fd5 Update spring data version for tests
We seem to be declaring support for 1.8 only - and 1,7 doesn't seem to
play nice with java14
2020-03-23 13:15:26 -04:00
Brian Devins-Suresh 5ac54ce10d Update to support 3.10 also and make muzzle check less brittle 2020-03-23 10:30:37 -04:00
Brian Devins-Suresh 17f73b6896 Fix small things from review 2020-03-23 10:01:58 -04:00
Nikolay Martynov 6574c6f8b6 Run profiling tests on zulu8 2020-03-23 08:04:15 -04:00
Brian Devins-Suresh b4be2b18e4 Clarify muzzle specific checks 2020-03-20 14:57:08 -04:00
Brian Devins-Suresh 59dffa3d5d Minimal change to make muzzle pass 2020-03-20 14:27:47 -04:00
Brian Devins-Suresh c8fc300df0 Not used by aws sdk 2020-03-20 14:14:41 -04:00
Brian Devins-Suresh 4ae71c8087 Works with 3.8 also, still need to fix muzzle again 2020-03-20 14:12:39 -04:00
Brian Devins-Suresh 9297ff39f4 Less ambiguous name, also doesn't collide with netty class 2020-03-20 08:00:34 -04:00
Brian Devins-Suresh eb99b410c5 gross hack for muzzle 2020-03-20 06:25:26 -04:00
Brian Devins-Suresh 8e4f9c4dc6 refine gradle config 2020-03-20 05:52:16 -04:00
Brian Devins-Suresh 2d84dd7eec Add a comment for a special case to this netty version 2020-03-20 05:45:09 -04:00
Brian Devins-Suresh baf02ff526 Remove unneccesary checks 2020-03-20 05:41:35 -04:00
Brian Devins-Suresh 44905cb2d6 Implement netty 3.9 instrumentation 2020-03-20 05:32:10 -04:00
Lev Priima a5a5743f7c
WeakCache instead of WeakMap (#1256)
WeakCache abstraction in addition to WeakMap
2020-03-20 00:23:07 -07:00