Commit Graph

2041 Commits

Author SHA1 Message Date
Nikolay Martynov 9674e9f61a Start implementation of the new tracer API
This mainly implements Span, Trace and Continuation logic.
2018-12-21 10:15:15 -05:00
Andrew Kent f6818fae84
Merge pull request #630 from DataDog/ark/mdc-auto-injection
mdc auto injection integration
2018-12-20 01:42:22 +00:00
Andrew Kent e9f1436522 Additional continuable-scope tests 2018-12-19 17:12:58 -08:00
Andrew Kent 2861d87071 slf4j MDC autoinjection integration 2018-12-19 17:09:00 -08:00
Andrew Kent 4dc3528097 Add post-match hook to default instrumenter api 2018-12-19 17:07:43 -08:00
Andrew Kent 1ed64da10e Add internal scope listener api 2018-12-19 13:21:07 -08:00
Andrew Kent 571d9cf077
Merge pull request #632 from DataDog/ark/remove-errorprone
remove errorprone
2018-12-19 20:58:26 +00:00
Andrew Kent 13fdb08a51 Remove errorprone 2018-12-19 12:39:36 -08:00
Andrew Kent 34e866ef2b make error-prone opt-in 2018-12-19 12:37:47 -08:00
Andrew Kent d0f3cfa3d6 Use asm bundled by bytebuddy in field-backed provider
JVM's ASM is not bundled with the agent and may not be present at runtime.
2018-12-19 12:37:47 -08:00
Gary Huang e1fd7387ad
Merge pull request #624 from DataDog/gary/play-perf-test
Play Performance Test
2018-12-14 13:11:04 -05:00
Gary Huang 513cccd698
Change shell script to work with play
- Added an argument to the script to take [play-zip|jar] to distinguish between the frameworks to test
- Updated README
- Cleanup
2018-12-14 11:19:17 -05:00
Gary Huang d3b7910950
Add work logic to play server 2018-12-14 11:19:15 -05:00
Gary Huang 34658aabcb
Play Server Performance Testing
Set up gradle sub project
2018-12-14 11:18:58 -05:00
Andrew Kent 7a2de68156 Begin 0.21.0 2018-12-13 10:22:07 -08:00
Andrew Kent 2ccda352c7 Version 0.20.0 2018-12-13 09:37:05 -08:00
Andrew Kent 5c2fa1586a
Merge pull request #628 from DataDog/ark/remove-sample-rate-from-ratebyservicesampler
Do not set the sampler rate for RateByServiceSampler
2018-12-13 16:43:21 +00:00
Andrew Kent 2dfc3ed465 Do not set the sampler rate for RateByServiceSampler 2018-12-13 08:24:09 -08:00
Andrew Kent bd57b05537
Merge pull request #625 from DataDog/ark/jmxfetch-wildfly-crasher-fix
jmxfetch wildfly crasher fix
2018-12-13 16:00:01 +00:00
Andrew Kent f2e4b7d4b1 Use javaagent to determine if logger class is initialized in test 2018-12-12 20:42:56 -08:00
Andrew Kent 0b92413d4a Move JvmBootstrapTest into a fork inside a groovy test 2018-12-12 20:17:48 -08:00
Andrew Kent d0120b9419 Assert logger constructor exists before applying instrumentation
This adds muzzle functionality to the logger
instrumentation. Assertions are manually set up because auto-creation
of references is not possible for non-default instrumenters.
2018-12-12 20:01:52 -08:00
Andrew Kent 0e4c42c411 Integration test to ensure custom log managers can be set 2018-12-12 20:01:52 -08:00
Andrew Kent 99c6837cca
Merge pull request #627 from DataDog/ark/enable-priority-sampling-by-default
Enable priority sampling by default
2018-12-13 03:03:34 +00:00
Andrew Kent 52eaacc929 Enable priority sampling by default 2018-12-12 18:29:08 -08:00
Andrew Kent c7867b5533
Merge pull request #626 from DataDog/ark/jmx-service-tagging
Revert "Revert "Add service name to default jmx tags""
2018-12-12 18:29:03 +00:00
Andrew Kent 2afc24cd50 Revert "Revert "Add service name to default jmx tags""
This reverts commit 069880105d.
2018-12-12 08:22:05 -08:00
Andrew Kent 0240ad5154 Move default instrumentation declarations to Instrumenter.Default 2018-12-11 18:01:40 -08:00
Andrew Kent 1004ee4ef7 Patch java.util.logging.Logger for safe use with jmxfetch 2018-12-11 17:26:02 -08:00
Andrew Kent d60ecf0a62 Upgrade jmxfetch to latest version
Manually tested against wildfly. No startup bugs. New jvm metrics are
autoreported.
2018-12-10 10:58:35 -08:00
Andrew Kent a949e63dda
Merge pull request #620 from DataDog/ark/datadog-api-outline
datadog api outline
2018-12-10 18:04:34 +00:00
Gary Huang 70b60939f4
Merge pull request #622 from DataDog/gary/fix-ratpack-test
Fix Flaky Ratpack Fork Test
2018-12-09 15:27:44 -05:00
Gary Huang a04b30107f
Change scope handling 2018-12-07 12:40:18 -05:00
Nikolay Martynov cb419997af
Merge pull request #623 from DataDog/mar-kolya/jms-test-improvements
Small improvement for jms tests to hopefully make them more stable
2018-12-07 11:58:29 -05:00
Nikolay Martynov 2d28b5129e
Merge pull request #621 from DataDog/mar-kolya/fix-wildfly-startup
Fix wildfly startup by injecting context classes into bootstrap package
2018-12-07 10:44:42 -05:00
Nikolay Martynov 3225c8fd03 Fix wildfly startup by injecting context classes into bootstrap package 2018-12-07 09:56:04 -05:00
Nikolay Martynov c1e21e328b Small improvement for jms tests to hopefully make them more stable 2018-12-07 09:40:29 -05:00
Gary Huang 61b403a69a
Merge pull request #611 from DataDog/gary/restore-amqp-latestdeptest
Restore RabbitMQ latestDepTest to use latest version
2018-12-07 00:52:00 -05:00
Gary Huang 26c354dad2
Fix Flaky Ratpack Fork Test
Ratpack tests occasionally fail with the handler span and manually started span out of order. This will ensure that if a span is manually started inside of the handler then it will be finished after the handler span is finished, which is when the request has been responded to.
2018-12-07 00:49:37 -05:00
Gary Huang 2c85b5cbb8
Restore RabbitMQ latestDepTest to use latest version
Since spring-rabbit no longer uses a dependency with a snapshot build.
2018-12-07 00:16:03 -05:00
Andrew Kent f498a3ac5a Changes from sync 2018-12-06 17:10:17 -08:00
Andrew Kent 9cc2e58a26 Require all span and trace creation through Tracer 2018-12-06 09:45:29 -08:00
Andrew Kent 3ad6a4b382 First draft of datadog-api 2018-12-06 08:51:25 -08:00
Nikolay Martynov 44aadf36ce
Merge pull request #619 from DataDog/mar-kolya/fix-memory-leak-in-weak-map
Mar kolya/fix memory leak in weak map
2018-12-05 17:32:42 -05:00
Nikolay Martynov 600674b03a Put back muzzle check for 'dd-' threads 2018-12-05 17:20:50 -05:00
Nikolay Martynov 7728f9918e Remove shutdown hook when DDTracer is shutdown
This is similar to the problem with weak map supplier and may lead to
a memory leak if we created/estroy many DDTracer objects.
2018-12-05 15:02:44 -05:00
Nikolay Martynov 0f4e0f40e4 Remove muzzle plugin check for dd clean up threads
This was needed to make sure that we are not leaving threads behind.
Threads were GCed before - but root cause was GC of executor
itself (see previous commit).

Now threads may stay between muzzle tasks if GC doesn't need to run
yes so this check actually creates false positives.
2018-12-05 15:02:44 -05:00
Nikolay Martynov 4deb68bfd7 Fix memory leak in WeakMapSuppliers.WeakConcurrent
The problem there is that it references JVM shutdown hook that keeps
reference to cleanup executor which potentially can keep references to
all sort of things - and this doesn't get cleaned up untill JVM
shutdown.

Solution is to remove shutdown hook when supplier is being GCed.
2018-12-05 15:02:40 -05:00
Nikolay Martynov 30712cdc87
Merge pull request #617 from DataDog/mar-kolya/java-concurrent-test-cleanup
Remove unused variable from AsyncChild classes
2018-12-05 12:35:19 -05:00
Nikolay Martynov 2e9b20ceb5 Remove unused variable from AsyncChild classes 2018-12-05 11:53:19 -05:00