Trask Stalnaker
9e4da754c2
Use consistent logger field name ( #3515 )
2021-07-07 10:47:46 -07:00
Trask Stalnaker
b304cc2912
Deprecate CallDepth.reset() and get() ( #3511 )
...
* Deprecate CallDepth.reset() and get()
* Don't pass CallDepth around
2021-07-07 09:24:50 -07:00
Mateusz Rzeszutek
b9fcb6b498
Reduce CallDepth classes' API surface ( #3497 )
2021-07-06 09:24:19 +02:00
Mateusz Rzeszutek
56ba64adf8
Convert Pair class to AutoValue ( #3496 )
2021-07-05 10:23:26 -07:00
Mateusz Rzeszutek
02ef588f68
Remove dependency on javaagent-bootstrap from javaagent-extension-api ( #3477 )
2021-07-03 11:18:53 -07:00
Anuraag Agrawal
c46761b8a9
Migrate javaagent-* to kotlin dsl ( #3434 )
2021-06-29 23:56:01 +09:00
Anuraag Agrawal
785dc6adf2
Rename build files to build.gradle ( #3409 )
...
* Rename build files to build.gradle
* Rename smoke-tests
* Fix already broken
2021-06-25 16:10:31 +09:00
Anuraag Agrawal
deb0e255cf
Use plugins block everywhere for applying plugins ( #3386 )
...
* Use plugins block everywhere for applying plugins
* Actually it's library instrumentation
2021-06-24 11:13:35 +09:00
Mateusz Rzeszutek
02098b9353
Ignore task classes using IgnoredTypesConfigurer ( #3380 )
2021-06-23 10:15:02 -07:00
Mateusz Rzeszutek
256f2c992e
Fix PeerServiceAttributesExtractor#createUsingReflection() ( #3378 )
...
* Fix PeerServiceAttributesExtractor#createUsingReflection()
* move armeria & grpc NetAttributesExtractors to internal package
2021-06-23 18:25:35 +09:00
Anuraag Agrawal
91a2c18f30
Migrate jacoco.gradle to plugin ( #3330 )
2021-06-16 10:09:05 -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
Anuraag Agrawal
2e8fcd19cb
Migrate CallDepthThreadLocalMapTest to Java. ( #3331 )
2021-06-16 18:35:07 +09: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
Trask Stalnaker
c79b5c5f1d
Fix some raw types warnings ( #3300 )
...
* Fix some raw types warnings
* oops
2021-06-15 08:42:07 +03: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
Trask Stalnaker
24aa31ebc3
Fix context leak in akka-http instrumentation (DataDog/dd-trace-java#2320) ( #3264 )
...
Co-authored-by: Björn Antonsson <bjorn.antonsson@datadoghq.com>
2021-06-11 18:48:12 -04: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
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
165bc1e492
Akka propagation fix and concurrency tests ( #3099 )
2021-05-27 09:43:09 -07:00
Mateusz Rzeszutek
d755654c29
[WIP] Add peer.service to Instrumenter API ( #3050 )
...
* [WIP] Add peer.service to Instrumenter API
* Move PeerServiceAttributesExtractor to javaagent-api and use reflection to add it
* Finish PeerServiceAttributesExtractor
* Fix tests
* Add peer.service to apache-httpclient-5.0, jedis-1.4, lettuce-4.0
2021-05-25 15:31:41 +02: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
Lauri Tulmin
9637d2920e
Fix context leak on jetty ( #2920 )
2021-05-06 12:35:52 -07:00
Ago Allikmaa
a568daaf0a
Fix Ratpack server context propagation and enable its concurrency test ( #2910 )
2021-05-05 18:27:50 -07:00
Mateusz Rzeszutek
77f8be8add
Fix netty 4.1 instrumentation not removing future listeners ( #2851 )
...
* Fix netty 4.1 instrumentation not removing future listeners
* Code review follow-up
* Use InstrumentationContext
2021-04-27 11:22:52 +03:00
Trask Stalnaker
8380b41429
Move eclipse-osgi instrumentation to internal ( #2832 )
2021-04-21 09:14:21 -07:00
Lauri Tulmin
a3c0b44b31
JAX-RS ApplicationPath annotation ( #2824 )
2021-04-21 09:07:54 -07:00
Mateusz Rzeszutek
ce3a88ca8c
Move ContextPropagationDebug to internal package ( #2804 )
...
And use it in the Instrumenter API
2021-04-14 10:12:36 -07:00
Lauri Tulmin
d0d4168d62
Exclude our Runnables ( #2736 )
2021-04-06 14:20:31 -07:00
Mateusz Rzeszutek
5760cd7313
Fix JMS context propagation problems ( #2702 )
2021-04-06 08:45:17 -07:00
Trask Stalnaker
b39348d640
Add -Werror flag to the build ( #2712 )
...
* Add -Werror to the build
* Add to javadoc also
* Run javadoc
* Change from "check javadoc" to "build"
* Fix javadoc warnings
2021-04-06 10:01:10 +03:00
Anuraag Agrawal
84e7306370
Don't instrument rxjava2 internal task class. ( #2672 )
...
* Don't instrument rxjava2 internal task class.
* spotless
* AtomicBoolean
* Update instrumentation/rxjava-2.0/javaagent/src/main/java/io/opentelemetry/instrumentation/rxjava2/RxJava2InstrumentationModule.java
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-04-01 08:01:25 +09:00
Anuraag Agrawal
dcd316da7a
Enable strict context check and fix some context issues. ( #2637 )
...
* Enable strict context check and fix some context issues.
* Drift
* Drift and cache
* Exclude grizzly include akka
* Grizzly, scala
* ForkJoin worker
* webflux comment, grizzly typo
* Give up on akka for now
* threadpool
* Fallback on grizzly, wait for completion in executor cancellation tests
* Hystrix
* ratpack
* Cleanups
2021-03-29 08:08:11 +03:00
Anuraag Agrawal
79d7e88e53
Use Caffeine for weak maps ( #2601 )
...
* Caffeine weakmap
* Use Caffeine for weak maps
* Drift
* Drift
* Remove weak-lock-free
* Update licenses
* Fix bug
* Restore weaklockfree
* Clean
* Fixes
* Inline expunction
* Synchronized
* More comment
* Fix shading
* Executor
* computeIfAbsent and delete unused.
* Fix license report
2021-03-24 17:12:26 +09:00
Ago Allikmaa
69c2644774
Servlet 5 API, reorganize servlet modules ( #2609 )
...
* Servlet 5.0 API support, refactored other servlet modules
* Include correct servlet instrumentation module for grails tests
* Reapply spotless after rebase
* Fix checkstyle
* Spotless
* Addressed PR suggestions
* Fixed files in wrong package.
* Fixed mixed up instrumentation names.
* Fixed incomplete instrumentation name.
* Addressed PR suggestions
* Addressed PR suggestions
2021-03-23 14:11:43 +02:00
Mateusz Rzeszutek
670a9cde3f
Minor InstrumentationClassPredicate refactor (don't treat javaagent-t… ( #2536 )
...
* Minor InstrumentationClassPredicate refactor (don't treat javaagent-tooling as helper classes)
* Update javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/muzzle/InstrumentationClassPredicate.java
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
* fix tests
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-03-12 16:36:34 +01:00
Lauri Tulmin
ff3542eff8
Fix prematurely ending server span on undertow ( #2560 )
...
* Fix permaturely ending server span on undertow
* Trigger Build
* Add undertow to supported frameworks
* Review fixes
* Update instrumentation/undertow/javaagent/src/test/groovy/UndertowServerTest.groovy
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
* Update instrumentation/undertow/javaagent/src/test/groovy/UndertowServerTest.groovy
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
* Review fixes
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-03-12 16:52:33 +02:00
Trask Stalnaker
f94fabe07f
Fix app failure under Eclipse OSGi ( #2521 )
...
* Fix app failure under Eclipse OSGi
* Feedback
* Alphabetical
2021-03-10 08:19:32 +02:00
Piotr Glazar
92d61b5844
Auto value ( #2494 )
...
* SqlStatementInfo as AutoValue
* RequestMeta as AutoValue
* DbInfo as AutoValue
* After merge compilation fix
* CouchbaseQuerySanitizer compilation fix
* JdbcConnectionUrlParserTest compilation fix
* Revert "RequestMeta as AutoValue"
This reverts commit 609b57ee48
.
2021-03-09 15:07:03 +02:00
Mateusz Rzeszutek
3dff44874f
Fix RestTemplateInterceptor so that it calls endExceptionally() on exception ( #2516 )
2021-03-08 09:36:47 -08:00
Anuraag Agrawal
94872b1ced
Move DB helpers to instrumentation-api ( #2511 )
...
* Move DB helpers to instrumentation-api
* Fix gradle config
* Remove legacy
2021-03-08 12:32:36 +09:00
Anuraag Agrawal
d7f8967ff6
Add a caching API based on caffeine for use from instrumentation, not just javaagent ( #2477 )
...
* Add caching API
* Finish
* javadoc
* Extract dep
* git add
* Drift
* Spotbugs
* checkstyle
* Fix package
* Test Caffeine patch
2021-03-05 17:57:23 +09:00
Trask Stalnaker
0abc492bc3
Rename more properties ( #2486 )
...
* Rename more props to experimental
* Rename more properties
* Rename .internal to .testing
* Revert changes to examples distro
* Move chunk.new-trace to experimental
* Fix unrelated build issue
2021-03-04 11:20:47 -08:00
Mateusz Rzeszutek
fbe55e04aa
Use low cardinality span names in Cassandra instrumentation ( #2423 )
2021-03-03 17:54:44 +01:00
Anuraag Agrawal
9f3dfdbc51
Use atomic updaters instead of atomic fields to reduce allocations fo… ( #2462 )
...
* Use atomic updaters instead of atomic fields to reduce allocations for commonly created objects.
* Typo
2021-03-03 14:56:37 +09:00
Mateusz Rzeszutek
8f3ea83504
Move some classes out of instrumentation-api ( #2466 )
...
* MethodsConfigurationParser is moved to javaagent-tooling - it's only used in some instrumentation modules
* BootstrapPackagePrefixesHolder is moved to javaagent-api - it just needs to be in the bootstrap CL for the classloader instrumentation, so it does not necessarily need to be instrumentation-api
2021-03-02 10:31:53 -08:00
Trask Stalnaker
c838498a73
Rename two props to otel.instrumentation.common.* ( #2457 )
2021-03-02 10:25:36 -08:00