Mateusz Rzeszutek
f451aef43c
Improve ignored but instrumented types assertion in javaagent tests ( #3356 )
...
* Improve ignored but instrumented types assertion in javaagent tests
* add one missing ignore
* Add ignored types to spring-rabbit and fix tests
* spotless
2021-06-22 22:37:29 -07:00
Lauri Tulmin
5281e50780
Exclude bytebuddy generatede helper class from redefinition ( #3369 )
2021-06-21 13:13:19 -07:00
Trask Stalnaker
7d5c7e0a4a
Fix spring jms listener instrumentation ( #3359 )
...
* Fix Spring JMS listener instrumentation
* Comment
* More allows
2021-06-21 11:46:34 +02:00
Mateusz Rzeszutek
0a8907d927
Hide Config#create() method and use builder everywhere ( #3338 )
...
* Hide Config#create() method and use builder everywhere
* Deprecate Config#asJavaProperties()
2021-06-17 10:39:39 -07:00
Mateusz Rzeszutek
ee1bbea810
Use IgnoredTypesConfigurer to ignore classloaders ( #3323 )
2021-06-16 10:12:03 -07:00
Mateusz Rzeszutek
3e28b01e42
Spring Integration javaagent instrumentation ( #3295 )
...
* Spring Integration javaagent instrumentation
* codenarc
* inline gradle property
* Conditionally create CONSUMER spans instead of always INTERNAL
* merge fix
* Add attributes assertions to rabbitMq test
* minor fix
* fix javadocs
* Code review follow-up
2021-06-16 14:12:39 +03:00
Mateusz Rzeszutek
f4194023f4
Remove unused Utils method ( #3324 )
2021-06-16 09:55:50 +09:00
Lauri Tulmin
c7ac235614
Preload AtomicReferenceArray ( #3315 )
2021-06-15 09:55:57 -07:00
Mateusz Rzeszutek
314ba8c1e8
Rewrite global ignores matcher to IgnoredTypesConfigurer ( #3298 )
2021-06-15 18:03:28 +02:00
Anuraag Agrawal
a818f14957
Migrate publish.gradle to convention plugin ( #3312 )
...
* Migrate publish.gradle to convention plugin
* Migrate usages of publish.gradle
* Remove publish.gradle
* Newline
2021-06-15 22:12:48 +09:00
Anuraag Agrawal
4c90d6ae35
Remove logic related to jacoco coverage check. ( #3314 )
2021-06-15 14:57:10 +03:00
Nikita Salnikov-Tarnovski
b9eac531ea
Embedded extension ( #3237 )
...
* Support for multiple extension jars by scanning the given folder
* Support to embed extension jar right inside agent jar
* Support for multiple embedded extensions
* Create temp folder for embedded extensions only if they found
* ExtensionClassLoader skips agent jar when scanning folder
* Apply suggestions from code review
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Update examples/extension/build.gradle
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-06-14 16:24:25 -07:00
Anuraag Agrawal
224dc51e93
Migrate java.gradle to conventions plugin ( #3289 )
...
* Migrate java.gradle to convention plugin.
* Switch to java-conventions
* Remove old file
* Fix
* Fix merge
* Missing paragraph
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-06-15 08:10:39 +09:00
Anuraag Agrawal
9a19c6fa67
Make guava compileonly ( #3290 )
...
* Make guava compileonly
* testImplementation
2021-06-14 23:05:53 +09:00
Trask Stalnaker
8be100637a
Fix ForkJoinPool sometimes not instrumented ( #3293 )
2021-06-14 13:01:33 +03:00
Anuraag Agrawal
b8cddc0dd8
Only include exporters in -all jar. ( #3286 )
...
* Only include exporters in -all jar.
* override exporter
* Newline
2021-06-14 13:49:22 +09:00
Trask Stalnaker
dc316609ee
Remove unnecessary final on params and local vars ( #3283 )
...
* Remove unnecessary final on params and local vars
* Fix gwt
* Keep final for non-initialized var
* Keep final for non-initialized var
* Keep final for non-initialized var
2021-06-14 07:13:11 +03:00
Trask Stalnaker
ab174f4f9c
Remove javaagent-tooling test forking ( #3272 )
...
* Remove javaagent-tooling test forking
* Remove one more forking
2021-06-13 10:57:45 -07:00
Anuraag Agrawal
5f49dc0e4a
Extract agent shadow configuration to conventions script. ( #3256 )
...
* Extract agent shadow configuration to conventions script.
* Remove redundant plugin version declaration
* Resource loader doesn't load from buildSrc
* Comments about byte buddy version
* Fix ReferenceCollectorTest
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-06-12 16:45:26 -07:00
Trask Stalnaker
bec9966e30
Fix failing test ( #3269 )
2021-06-12 11:37:04 +03:00
Anuraag Agrawal
e118c469be
Replace Guava cache with Caffeine in agent type pool. ( #3255 )
...
* Replace Guava cache with Caffeine in agent type pool.
* Not that many classloaders
* Remove unused
2021-06-12 15:56:45 +09:00
Mateusz Rzeszutek
3b09d46950
Introduce IgnoredTypesConfigurer SPI to enable defining per-module ignores ( #3219 )
2021-06-11 12:41:57 -07:00
Nikita Salnikov-Tarnovski
aa4f07db6e
Support for multiple extension jars by scanning the given folder ( #3226 )
2021-06-11 11:32:52 -07:00
Nikita Salnikov-Tarnovski
31d3f2f8de
Update ByteBuddy ( #3254 )
...
* Update ByteBuddy
* spotless
2021-06-11 21:12:38 +09:00
Mateusz Rzeszutek
50b7a20b39
Fix spring-webflux latestDepTest ( #3251 )
2021-06-11 11:06:47 +03:00
Mateusz Rzeszutek
99be242e22
Rename ComponentInstaller to AgentListener and add #order() method ( #3182 )
...
* Rename ComponentInstaller to AgentListener and add #order() method
* Code review comments
* Update javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/SafeServiceLoader.java
Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2021-06-07 19:50:19 +02:00
Anuraag Agrawal
2436499a09
Update to Errorprone 2.7 ( #3181 )
...
* Update to errorprone 2.7
* ToString
* Finish
2021-06-04 10:40:55 +09:00
Mateusz Rzeszutek
b8aec6a671
Remove no longer needed NameMatchers class ( #3179 )
2021-06-03 14:36:36 -07:00
Mateusz Rzeszutek
f8a2ebd32b
Use slf4j placeholders instead of manually joining log messages ( #3180 )
2021-06-03 14:36:21 -07:00
Trask Stalnaker
be6816489a
Small cleanup ( #3163 )
...
* Small cleanup
* Ooops
2021-06-02 08:56:49 +03:00
Anuraag Agrawal
c3dedbb64e
Enable all errorprone checks ( #3155 )
...
* Enable all errorprone checks
* Fixes
* Finish
* Finish
* Add flag to disable error prone
2021-06-01 17:41:08 +09:00
Anuraag Agrawal
ed88cca533
Migrate from spotbugs to errorprone ( #3122 )
...
* Migrate from spotbugs to errorprone
* Fix hashtable
* try-with-resources
* Fix from merge
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-05-28 14:23:40 -07:00
Anuraag Agrawal
c358a35414
Use dependency management pattern for dependency versions ( #3113 )
...
* Use dependency management pattern for dependency versions.
* Add groovy bom too
* Update dependencyManagement/dependencyManagement.gradle.kts
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-05-28 11:32:08 +09:00
Ago Allikmaa
fd132d463d
Change Async Servlet span end logic to fix race condition on Undertow ( #2992 )
...
* Attach servlet async listener with asyncStart instrumentation
* Exclude Spring packages containing servlet request classes from global ignores
* Exclude Tapestry HSR proxy with global ignore
* Improve comments.
* Fix for Liberty - request response when adding async listener
* Removed unused methods
* Explicit response to async listeners on all servlet engines
* Attach response to request on Jetty
* Fix broken build due to rebase, improved a comment
* Address PR comments
* Added a comment.
* Addressed PR comments
2021-05-25 20:46:37 -07:00
Nikita Salnikov-Tarnovski
3cfd58c268
Extensions example ( #3071 )
...
* Simplify extensions example project
* Add external dependency and fat jar support
* spotless
* Apply suggestions from code review
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Apply suggestions from code review
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-05-25 14:57:43 +03:00
Mateusz Rzeszutek
6fb3ec0501
Do not use arrays in InstrumentationModule ( #3057 )
...
* Do not use arrays in InstrumentationModule
* add missing cast
2021-05-24 13:51:07 +02:00
Lauri Tulmin
ccda31ab50
Fix spring webmvc and webflux latest dep failure ( #3060 )
2021-05-21 11:15:55 -07:00
Mateusz Rzeszutek
272419a6f3
Refactor muzzle Reference class ( #3040 )
...
* split out inner classes into separate files
* and since they're public API I made them a little bit better: added javadocs, renamed classes/methods
Getting the `...extension.muzzle` package stable is the first step to extracting the muzzle compile time plugin - the plugin may have a bit different release lifecycle than the main project and getting those classes stable will help a lot with eliminating breaking changes.
2021-05-20 14:33:43 -07:00
Trask Stalnaker
6efae9ad28
Remove duplicate method ( #3032 )
2021-05-19 11:56:34 -07:00
Nikita Salnikov-Tarnovski
e3cf8ecf18
First POC for external extension loading ( #2881 )
...
* First POC for external extension loading
* Fix NPE
* Urlhandler
* Fix
* Polish
* Polish
* Urlhandler
* Trying Urlhandler
* Alternative way to load extensions
* Polish
* Add example extensions and smoke test for their usage
* Support for system property
* Polish
* Avoid doing remapping twice
* Polish after merge
* Update to latest changes in extentions api
* Polish
* No need for tooling
* Simplify
* Cleanup
* Better error handling
* Update to the latest API
2021-05-18 22:59:39 +03:00
Mateusz Rzeszutek
bb8f515083
Refactor TypeInstrumentation#transformers() method ( #3019 )
...
* Refactor TypeInstrumentation#transformers() method part 1
Add TypeInstrumentation and its implementations
* Refactor TypeInstrumentation#transformers() method part 2
Use the new method in all existing TypeInstrumentation implementations
* Drift
* Spotless
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-05-18 09:50:26 +02:00
Trask Stalnaker
d6141dddc7
Update agent logger prefix ( #3007 )
2021-05-17 12:06:39 +09:00
Mateusz Rzeszutek
9c1083b541
Muzzle code generation cleanup ( #2985 )
...
* Muzzle code generation cleanup
- remove hardcoded class names from MuzzleCodeGenerator (easier renaming in the future)
- store field/method descriptors in references instead of types/lists of types
- remove unnecessary primitive type comparison in ReferenceMatcher (comparing descriptors is enough)
- improve printMuzzleReferences output
2021-05-15 14:48:18 -07:00
Anuraag Agrawal
fe41885ee6
Switch to colon notation for dependencies. ( #2994 )
...
* Switch to colon notation for dependencies.
* Even more cleanup
* Revert mistake
2021-05-15 15:31:06 +09:00
Mateusz Rzeszutek
a72a7838f0
Load InstrumentationModules using InstrumentationLoader ( #2971 )
...
* Load InstrumentationModules using InstrumentationLoader
* writing-instrumentation-module doc improvement
* spotless
2021-05-13 14:12:53 +02:00
Trask Stalnaker
d67f161e6d
Muzzle optimization ( #2903 )
2021-05-11 21:01:35 -07:00
Lauri Tulmin
0b854a5eb6
Agent class loader multi release jar ( #2912 )
...
* Agent class loader multi release jar
* improve handling of signed agent jar
2021-05-11 14:54:56 -07:00
Trask Stalnaker
8379404ae8
Uncomment and fix JAX-RS default method tests ( #2930 )
2021-05-11 11:22:11 -07:00
Mateusz Rzeszutek
871f9a0d24
InstrumentationModule cleanup ( #2925 )
2021-05-11 09:24:31 -07:00
Trask Stalnaker
edec1bfdc6
Cache default enabled config ( #2938 )
...
* Cache default enabled config
* Fix unit tests
* Spotless
* Inline methods and remove corresponding tests
* Update javaagent-extension-api/src/main/java/io/opentelemetry/javaagent/extension/instrumentation/InstrumentationModule.java
Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
* Spotless
Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2021-05-10 12:18:22 +03:00