Commit Graph

2030 Commits

Author SHA1 Message Date
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
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
Nikolay Martynov 5ab82fb85f
Merge pull request #615 from DataDog/mar-kolya/emable-ibm-jvm
Mar kolya/emable ibm jvm
2018-12-04 17:30:57 -05:00
Tyler Benson 94a3f7bb2b
Merge pull request #616 from DataDog/tyler/grpc
Enable gRPC instrumentation by default.
2018-12-04 14:28:58 -08:00
Nikolay Martynov c46763e0cb Enable IBM JVM tests 2018-12-04 17:12:44 -05:00
Nikolay Martynov 7cd3438d6b
Merge pull request #613 from DataDog/mar-kolya/improve-httpurl-connection
Improve HttpUrlConnection instrumentation
2018-12-04 17:12:01 -05:00
Tyler Benson 43e8c70098 Enable gRPC instrumentation by default. 2018-12-04 14:11:57 -08:00
Nikolay Martynov 0a3ecc1b90 Improve HttpUrlConnection instrumentation
Make sure we get one span per request
2018-12-04 16:54:48 -05:00
Tyler Benson 6cb9e0360d
Merge pull request #612 from DataDog/tyler/jms
Remove duplicate JMS spans from nested calls.
2018-12-04 11:25:56 -08:00
Tyler Benson 013e57c677 Add tests for Spring JMS Template 2018-12-04 10:54:53 -08:00
Nikolay Martynov 66570a2135 Add some synchronization into ES tests to make them more stable 2018-12-04 12:15:44 -05:00
Tyler Benson 3be4bbb7f0
Merge pull request #608 from DataDog/tyler/upgrades
Update misc versions.
2018-12-03 15:07:36 -08:00
Andrew Kent 0e6a416b57 Initial gradle projects 2018-12-03 11:45:29 -08:00