Tyler Benson
aa3fc0717e
Fix some formatting changes.
2018-07-20 10:31:14 +10:00
Tyler Benson
12a2fce96d
Upgrade java formatter version.
2018-07-19 14:10:53 +10:00
Andrew Kent
23d0439b12
Remove muzzle dead code, doc cleanup, and better logging
2018-07-13 16:24:01 -07:00
Andrew Kent
2925df8de5
Clean up and document
2018-07-10 17:26:49 -04:00
Andrew Kent
8e182edc03
Replace BIPUSH with LDC to prevent overflow
2018-07-10 17:26:49 -04:00
Andrew Kent
628f4929dc
Muzzle Assertions and gradle plugin
2018-07-10 17:26:49 -04:00
Andrew Kent
541a6998a4
Hook up muzzle to Instrumenter.Default's matcher
2018-07-10 17:26:49 -04:00
Andrew Kent
d61f65f4ff
Muzzle outline in Instrumenter.Default
2018-07-10 17:26:49 -04:00
Andrew Kent
836f49205b
TraceConfigInstrumentation implements Instrumenter directly
2018-07-10 17:26:49 -04:00
Andrew Kent
02a3e6a5d3
New Instrumentation API
2018-07-06 17:17:32 -04:00
Andrew Kent
33a139cdcb
New Instrumentation outline
2018-06-28 14:54:14 -07:00
Andrew Kent
f8e3ac3097
New instrumentation api outline
2018-06-28 14:54:14 -07:00
Andrew Kent
3894f829bb
Remove most shadow relocates
...
Shadow relocates are no longer needed because of our new bootstrapping
process.
It's no longer possible for agent dependencies to interfere with the
user's classpath.
The immediate reason for this change is a bug created in the Cassandra
instrumentation.
The Cassandra instrumentation references guava transitive deps from
the datastax driver. These references are re-written by shadow,
causing the instrumentation to reference 'datadog.agent.deps.google.*'
instead of the guava class.
2018-06-27 09:35:54 -07:00
Tyler Benson
83db4e8c4d
Merge pull request #352 from DataDog/tyler/netty
...
Netty HTTP client and server instrumentation
2018-06-21 14:11:12 +10:00
Nikolay Martynov
9cc99bafbf
Simplify Jacoco configuration
2018-06-20 17:13:30 -04:00
Nikolay Martynov
e070a9be4a
Fix jacoco excluded classes concatenation
2018-06-20 17:05:16 -04:00
Tyler Benson
9b3df4ff9e
Netty HTTP client and server instrumentation first pass
...
Doesn’t target right versions. Needs lots of testing.
2018-06-18 12:52:42 +10:00
Gary Huang
fdc56c0e13
change the way classes are loaded so that classLoaderHasClasses would still work for the classes that are being instrumented and being matched at the same time.
2018-06-08 23:53:13 -04:00
Tyler Benson
206de0fb54
Add some more missing helper classes
2018-06-09 10:59:08 +10:00
Tyler Benson
d235618a6e
Add instrumentation for Java’s UrlConnection
...
For HttpUrlConnection, trace propagation headers are added to the outgoing request.
Due to the awkward design of the API, the ability to instrument in a natural way was limited, thus the main points instrumented are the get{Input,Output}Stream methods.
2018-06-06 09:12:48 +10:00
Andrew Kent
217dd411de
Disable muzzle
2018-05-21 10:58:30 -07:00
Andrew Kent
0bd7a62464
Flags, Fields, Methods, and builder logic for References
2018-05-18 10:45:05 -07:00
Andrew Kent
bf70b3031b
Cache classloaders for reference checking
2018-05-18 10:45:05 -07:00
Andrew Kent
ad7f6a5e71
Generate at compile-time and lazy-load reference matchers
2018-05-18 10:45:05 -07:00
Andrew Kent
98b44c1dfb
Remove ReplaceIsSafeVisitor
2018-05-18 10:45:05 -07:00
Andrew Kent
08df3cef35
Use bytebuddy plugin to add safety checks to instrumentation
2018-05-18 10:45:05 -07:00
Tyler Benson
46878d24d3
Name service based on servlet context
...
This only applies if a service name hasn’t been set or is empty.
This is particularly useful for environments that deploy multiple war files to the same app server.
2018-05-11 13:59:03 +10:00
Tyler Benson
d5d24c50c7
Replace @Unroll’s with a rule to always unroll.
2018-05-10 15:24:59 +10:00
Tyler Benson
9a52303376
Apply jacoco to every java project
...
Some projects have ignores/whitelists, but generally coverage is pretty high.
AFAIK, this doesn’t really capture instrumentation test coverage though.
2018-05-04 16:23:32 +10:00
Tyler Benson
f35e2e6ebe
Remove various warnings and other cleanup
...
Also upgrade some plugins.
2018-05-04 14:05:06 +10:00
Tyler Benson
2561e72824
Do we do want to ignore proxies?
...
If so, we have to change the test to be compatible.
2018-05-04 14:03:48 +10:00
Tyler Benson
84b7080860
Fix AgentInstaller ignores and @Trace naming
2018-05-03 13:03:53 +10:00
Tyler Benson
57eade612f
Upgrade Byte-buddy to 1.8.8
...
Also remove some erronously checked in files.
2018-04-26 22:53:45 +10:00
Andrew Kent
35c40846ad
Accept string for method params on classloader method matcher
2018-04-11 13:32:58 -07:00
Andrew Kent
06b80351e3
Log where all version files are visible
2018-04-10 16:54:22 -07:00
Andrew Kent
63ae144734
Merge pull request #277 from DataDog/ark/play
...
Play 2.4-2.6 Instrumentation
2018-04-09 13:39:03 -04:00
Andrew Kent
2449810ce0
Play 2.4 and 2.6 testing
2018-04-05 17:58:04 -04:00
Tyler Benson
79a9826863
Add the errorprone compiler.
2018-04-04 20:48:28 +08:00
Andrew Kent
123c5beab3
Enable instrumenting old java bytecode
2018-03-20 15:59:11 -07:00
Andrew Kent
37a24107b0
Resurrect tooling test into agent-tooling
2018-03-19 10:10:38 -07:00
Andrew Kent
84fe1fc0e3
Organize bootstrap and agent classes by known prefix.
2018-03-15 12:17:03 -07:00
Andrew Kent
878d92f5b2
Test under custom classloader
2018-03-15 12:17:03 -07:00
Andrew Kent
d7c2155054
Check parent classloaders when resource location fails.
2018-03-12 18:03:52 -07:00
Tyler Benson
286e9d2d00
Add instrumentation to catch additional classloaders.
...
Still doesn’t work with Spring Boot because the way they structure their Jars.
2018-03-09 14:32:41 +10:00
Andrew Kent
4fffb61a32
Enable bootstrap instrumentation and helper injection.
2018-03-09 14:31:48 +10:00
Andrew Kent
5ffd2142e9
Set max stack size in bytebuddy exception handler
2018-03-07 13:14:41 -05:00
Tyler Benson
a3a70e6ea3
Remove unneeded dependency on dd-trace-ot.
2018-02-21 12:08:05 +10:00
Andrew Kent
c6e883e042
Move bootstrap prefixes to classloader matcher
2018-02-15 19:17:19 -08:00
Andrew Kent
d0982ada9d
Skip unsafe classloaders.
2018-02-15 19:17:19 -08:00
Andrew Kent
4a1db505db
Enhance logging and cleanup.
2018-02-15 19:17:19 -08:00