Nikolay Martynov
6beade83ed
Disable Java7 JIT for for some code
...
Disable JIT in Java7 for 1 Bytebuddy method. Hopefully this will help
with this error:
```
Stack: [0x00007f892f079000,0x00007f892f17a000], sp=0x00007f892f174e30, free space=1007k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x73db30] PhaseIdealLoop::build_loop_late_post(Node*)+0x130
V [libjvm.so+0x73e06b] PhaseIdealLoop::build_loop_late(VectorSet&, Node_List&, Node_Stack&)+0x10b
V [libjvm.so+0x745239] PhaseIdealLoop::build_and_optimize(bool, bool)+0x899
V [libjvm.so+0x4589b0] Compile::Optimize()+0x8f0
V [libjvm.so+0x459e87] Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool)+0x10c7
V [libjvm.so+0x3c9c5c] C2Compiler::compile_method(ciEnv*, ciMethod*, int)+0xec
V [libjvm.so+0x45f5bb] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x32b
V [libjvm.so+0x460960] CompileBroker::compiler_thread_loop()+0x440
V [libjvm.so+0x9283ab] JavaThread::thread_main_inner()+0xdb
V [libjvm.so+0x928590] JavaThread::run()+0x1d0
V [libjvm.so+0x7f56e2] java_start(Thread*)+0x122
Current CompileTask:
C2: 3653 733
net.bytebuddy.description.type.TypeDescription$Generic$Visitor$Substitutor::onParameterizedType (129
bytes)
```
2019-02-05 09:40:43 -05:00
Nikolay Martynov
6a950d4745
Collect JVM crashes in circleci artifacts
...
So we could investigate them later.
2019-02-04 14:35:59 -05:00
Tyler Benson
9353f82063
Merge pull request #686 from DataDog/tyler/jboss-jmxfetch
...
Initialize JMXFetch if configured log manager is on sys classpath
2019-01-31 15:24:55 -08:00
Tyler Benson
88d190d95b
Test for customlogmanager=false
2019-01-31 14:53:58 -08:00
Will Gittoes
558cd9a3b7
Merge pull request #683 from DataDog/willgittoes-dd/hystrix-operation-name
...
Hard-code Hystrix operation (span) name, leaving the resource name dynamic
2019-02-01 09:44:29 +11:00
Will Gittoes
99e4e52600
Fix style
2019-02-01 09:29:05 +11:00
Tyler Benson
e293ed477d
Fix tests.
2019-01-31 14:25:19 -08:00
Tyler Benson
f7abb2ac04
Initialize JMXFetch if configured log manager is on sys classpath
...
Some applications set java.util.logging.manager but never actually initialize the logger.
Check to see if the configured manager is on the system classpath.
If so, it should be safe to initialize jmxfetch which will setup the log manager.
2019-01-31 13:31:48 -08:00
Tyler Benson
b58ec1b4fe
Merge pull request #684 from DataDog/tyler/jboss-jmxfetch
...
Replace jboss classpath check with ENV check for jmxfetch delay
2019-01-31 11:42:38 -08:00
Tyler Benson
c89b00f682
Elaborate on comment.
2019-01-31 11:14:06 -08:00
Tyler Benson
ea0dedcee7
Allow setting dd.app.customlogmanager=false to disable jboss check
2019-01-31 10:53:20 -08:00
Tyler Benson
ee8a26d4dc
Replace jboss classpath check with ENV check for jmxfetch delay
...
Some applications seem to have this jboss class on the classpath, but don’t actually use it. When coupled with not actually using JUL, this means that we may never actually start JMXFetch.
Checking for JBOSS_HOME instead should be safer.
2019-01-31 10:42:43 -08:00
Will Gittoes
a44b59bb14
Hard-code Hystrix operation (span) name, leaving the resource name dynamic
2019-01-31 14:30:08 +11:00
Will Gittoes
f6d3b6b70b
Ensure jenv java-version doesnt get committed
2019-01-31 13:51:39 +11:00
Will Gittoes
5941a93ad4
Merge pull request #679 from DataDog/willgittoes-dd/es-rest-6.4
...
Add support for Elasticsearch rest client 6.3 and above
2019-01-31 11:02:59 +11:00
Will Gittoes
57bae1688e
Review comments
2019-01-31 09:15:30 +11:00
Tyler Benson
dbbc804fb1
Merge pull request #681 from DataDog/tyler/customlog-logging
...
Add logging to JMXFetch initialization delay
2019-01-30 11:49:24 -08:00
Tyler Benson
bb2fbb30b8
Add logging to JMXFetch initialization delay
...
Otherwise it’s difficult to determine why JMXFetch isn’t being initialized.
2019-01-30 10:39:29 -08:00
Tyler Benson
8b9b6b1593
Merge pull request #678 from DataDog/tyler/tracer-builder
...
Use lombok builder for Tracer construction.
2019-01-30 09:40:15 -08:00
Tyler Benson
0d7bedcdf0
Remove defaultServiceName from TracerBuilder
2019-01-30 08:35:15 -08:00
Will Gittoes
56aaccb0c2
Remove commented code
2019-01-30 17:42:41 +11:00
Will Gittoes
f15a2ffd79
Add support for ES rest client 6.3 and above
2019-01-30 17:39:20 +11:00
Tyler Benson
8c9a7d24cc
Add additional tests and enforce coverage.
2019-01-29 15:56:46 -08:00
Tyler Benson
b7ec90a846
Use lombok builder for Tracer construction.
...
This will work better for long-term support without breaking compatibility for adding new fields.
2019-01-29 15:56:46 -08:00
Tyler Benson
bd6f732400
Merge pull request #675 from DataDog/tyler/fix-jmx-script
...
Ensure the copyMetricConfigs task runs after processResources
2019-01-28 14:52:09 -08:00
Tyler Benson
2971d1b0d3
Ensure the copyMetricConfigs task runs after processResources
...
Otherwise there seems to be a race condition which results in the metric config files being overwritten.
2019-01-28 13:43:07 -08:00
Nikolay Martynov
ee3788bfdc
Merge pull request #672 from DataDog/mar-kolya/more-forkjoin-instrumentations
...
More ForkJoin instrumentations
2019-01-28 14:01:03 -05:00
Nikolay Martynov
d902ae9a94
Merge pull request #676 from DataDog/mar-kolya/netty40-improvements
...
netty40 improvements
2019-01-28 11:30:59 -05:00
Nikolay Martynov
f8aed7aec7
Provide seprate instrumentation names for Akka and Scala ForkJoin instrumentations
2019-01-28 11:29:59 -05:00
Nikolay Martynov
f7844f763c
Instrument Akka and Scala ForkJoinTask and ForkJoinPool
2019-01-25 16:15:48 -05:00
Nikolay Martynov
633fddc46b
Fix race codition in AgentWriterTest
2019-01-25 15:58:59 -05:00
Nikolay Martynov
a3219639a0
netty 4.0: improve request uri parsing
2019-01-25 15:58:25 -05:00
Nikolay Martynov
d4943eb2b6
netty 4.0: do not modify headers in aws request
2019-01-25 15:58:22 -05:00
Nikolay Martynov
5029660418
netty 4.0: consolidate netty config names
2019-01-25 15:50:28 -05:00
Tyler Benson
63f6fe5433
Merge pull request #670 from DataDog/tyler/utils
...
Move awaitGC to common utility package
2019-01-25 10:44:00 -08:00
Tyler Benson
03bcdc97cc
Move awaitGC to common utility package
2019-01-25 10:32:09 -08:00
Nikolay Martynov
b3ad700b34
Merge pull request #666 from DataDog/mar-kolya/aws-sdk2
...
Initial AWS2 SDK instrumentation
2019-01-25 13:01:32 -05:00
Nikolay Martynov
a0dee2cd88
Merge pull request #674 from DataDog/mar-kolya/catch-exception-in-servlet-context-getter
...
Catch exception in servlet context getter.
2019-01-25 12:55:32 -05:00
Nikolay Martynov
4fb94b8368
AWS2 SDK: Remove class loader matcher that is no longer needed
2019-01-25 12:53:00 -05:00
Tyler Benson
58b67071e5
Merge pull request #673 from DataDog/tyler/fix-jmx-script
...
Makedir before creating file, Fail build if script errors
2019-01-25 09:51:13 -08:00
Nikolay Martynov
6563a711c2
Merge pull request #671 from DataDog/osgi-fix
...
Improve OSGi class loader instrumentation
2019-01-25 12:48:45 -05:00
Tyler Benson
b7509140d0
Merge pull request #668 from DataDog/tyler/upgrade-wlf
...
Upgrade weak-lock-free to 0.15
2019-01-25 09:29:42 -08:00
Tyler Benson
fb1b0dc5b8
Merge pull request #669 from DataDog/revert-663-tyler/test-sets-update
...
Revert "Update test-sets plugin to 2.1.1"
2019-01-25 09:29:30 -08:00
Nikolay Martynov
4ba0adfab3
Catch exception in servlet context getter.
...
Request may finish after check has been perform but before context has
been read leading to exception in some implementations.
2019-01-25 12:28:58 -05:00
Tyler Benson
020fe44ea6
Makedir before creating file, Fail build if script errors
2019-01-25 09:27:40 -08:00
Nikolay Martynov
62402a6426
AWS SDK2 instrumentation
2019-01-25 12:02:31 -05:00
Nikolay Martynov
04fbb5085f
Improve OSGi class loader instrumentation
...
It turns out that Eclipse's OSGi implementation has two problems:
* It doesn't respect system properties by default
* It has tricky classloader implementation that loads bootstrap
classes from the classloader-has-delegation-to-bootstrap check but
doesn't load bootstrap classes from 'normal' code.
This should address second problem and make Eclipse's OSGi
implementation 'safe' by default.
2019-01-25 08:52:07 -05:00
Tyler Benson
29070caa68
Revert "Update test-sets plugin to 2.1.1"
2019-01-24 17:15:50 -08:00
Nikolay Martynov
76999fc9f9
Improve AWS1.x SDK integration
...
For AWS11.x SDK make sure that http client span is actually a child of
aws span.
2019-01-24 17:28:03 -05:00
Nikolay Martynov
7b0e3ffd1c
netty 4.1: consolidate netty config names
2019-01-24 17:28:03 -05:00