Commit Graph

6674 Commits

Author SHA1 Message Date
Trask Stalnaker 31f22eb4f7
Use valid Java identifiers for message keys (#3863) 2021-08-19 16:55:29 -07:00
Trask Stalnaker 36bdce2f5c
Support versioned instrumentation helper resources (#3864)
* Support versioned instrumentation helper resources

* Remove duplicated class

* Groovy

* Spotless

* Renames

* HelperResources -> HelperResourceBuilder
2021-08-19 12:17:09 -07:00
jason plumb 46d06f51f5
whoops, missed a colon. #justyamlstuff (#3879) 2021-08-19 11:43:40 -07:00
jason plumb b7577bb31e
Benchmark overhead: Accumulate and persist results (#3832)
* persist summary and csv back into the results directory

* run nightly and don't trigger CI

* leverage autocloseable

* sort once.

* use stringbuilder

* factor out writeheader method

* add comments for clarity
2021-08-19 09:47:36 -07:00
Mateusz Rzeszutek 6a3037df73
Support extraResources in WindowsTestContainerManager (#3868)
* Support extraResources in WindowsTestContainerManager

* Fix span name for liberty servlet test

* Use different server.xml path for linux and windows
2021-08-19 18:38:17 +02:00
Mateusz Rzeszutek 4bbd6b3427
Deprecate MetricExporterFactory (#3862) 2021-08-19 08:53:01 -07:00
Lauri Tulmin fbbd76ef95
Remove http client test workarounds that are not needed with 1.5 sdk (#3875)
* Remove workarounds from http client test that are not needed with 1.5 sdk

* Remove more workarounds
2021-08-19 08:50:25 -07:00
Lauri Tulmin 59c1e6d101
Fix elasticsearch latest dep test (#3876) 2021-08-19 15:34:54 +03:00
Lauri Tulmin 514553eac2
Context propagation to elasticsearch-transport callbacks (#3861) 2021-08-19 12:59:47 +03:00
Lauri Tulmin f05c3788e1
Context propagation to elasticsearch-rest callbacks (#3858)
* Context propagation to elasticsearch-rest callbacks

* remove unused import
2021-08-19 12:59:36 +03:00
Lauri Tulmin f89579a3ab
Convert okhttp-2.2 to instrumenter api (#3852)
* Convert okhttp-2.2 to instrumenter api

* Rephrase comment
2021-08-19 12:59:20 +03:00
Lauri Tulmin 7a705d861e
Move SpringRestTemplateTest (#3870) 2021-08-19 12:58:24 +03:00
Anuraag Agrawal 3f6727d6b7
Don't clobber user decorators in Armeria client instrumentation (#3873)
* Don't clobber user decorators in Armeria client instrumentation

* Spot
2021-08-19 18:55:58 +09:00
jason plumb 73b1560283
fix action after dir was renamed (#3871) 2021-08-19 09:23:37 +09:00
YuDong Tang 60424e0d38
record exception in dubbo inst (#3851)
* record exception in dubbo inst

* record exception in dubbo inst

* remove unused imports

* remove unused imports
2021-08-18 16:31:00 +02:00
Lauri Tulmin 667b87bac7
Support looking up a ContextStore from outside of Advice (#3827)
* Support looking up a ContextStore from outside of Advice

* Add exception message

* Move setting ContextStoreSupplier

* Improve comment
2021-08-18 10:36:04 +03:00
John Watson 6dbb64ec7a
Implement a Call.Factory for okhttp 3.x+ library instrumentation (#3812)
* Add a README for the okhttp library instrumentation.

* Create new instrumentation for okhttp3 4.x+

This exposes a `Call.Factory` which will properly handle internal context propagation when used with async callbacks.

* update the "4.x" instrumentation to support 3.x

* Get rid of the 4.x instrumentation, and just update the 3.x instrumentation to work

* updates from PR review

* replace old reflection with method handle usage

* Apply suggestions from code review

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-08-18 12:16:24 +09:00
Anuraag Agrawal d8eae4997d
Update to SDK 1.5.0 (#3847) 2021-08-17 08:43:11 -07:00
Lauri Tulmin 706bfa2376
Instrument ForkJoinTask.fork (#3849)
* Instrument ForkJoinTask.fork

* spotless
2021-08-17 10:02:57 +03:00
Lauri Tulmin 8c175d4fce
Propagate context to lettuce callbacks (#3839) 2021-08-17 10:02:23 +03:00
Lauri Tulmin c54d192a1a
Vertx: avoid doulbe wrapping exception handler (#3848) 2021-08-17 10:00:45 +03:00
Lauri Tulmin 430f1cb561
Add junit test timeotut (#3850) 2021-08-16 10:11:09 -07:00
Lauri Tulmin 722fbc1d57
Convert jax-ws to instrumenter api (#3842) 2021-08-16 10:06:36 -07:00
Lauri Tulmin 912ce91b60
Convert jsf to instrumenter api (#3838)
* Convert jsf to instrumenter api

* Review comments

* Use span name not null
2021-08-16 10:06:04 -07:00
Lauri Tulmin 1a9896543a
Convert tapestry-5.4 to instrumenter api (#3837)
* Convert tapestry-5.4 to instrumenter api

* Review comments
2021-08-16 10:05:54 -07:00
Lauri Tulmin 299a051ea8
Convert struts-2.3 to instrumenter api (#3835)
* Convert struts-2.3 to instrumenter api

* Apply suggestions from code review

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-08-16 10:05:43 -07:00
Liudmila Molkova 080c85df85
Client span keys: suppressing same instrumentation (#3691) 2021-08-14 13:44:46 -07:00
Lauri Tulmin c74853274d
Remove Nullable from methods that return non-null value (#3843) 2021-08-14 09:29:23 -07:00
Mateusz Rzeszutek 88be2940eb
Extract common consumer-related kafka-clients parts to a new module (#3817) 2021-08-13 20:28:25 -07:00
Steve Dodge 6c8d2e1fc3
chore: apply the same wrapper fix as in open-telemetry#3831, but this time for request listners (#3833) 2021-08-13 16:45:18 -07:00
Lauri Tulmin 6ad277c659
Check scope for null before closing it (#3836) 2021-08-13 16:39:28 -07:00
Lauri Tulmin 8dc02c6c2b
Remove jaxws todo (#3840) 2021-08-13 16:38:45 -07:00
Trask Stalnaker 84e9d188af
Update webflux to Instrumenter API (and improvements/simplifications) (#3798)
* Update Webflux to Instrumenter API

* Change webflux handler to match other handlers

* Further simplification

* Fix Mono failure tests

* Use extractors!

* Renames

* Fix comment

* Update instrumentation/spring/spring-webflux-5.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/webflux/server/AdviceUtils.java

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-08-13 09:03:50 -07:00
jason plumb 44b71b77e1
Overhead benchmarks: Perform a warmup phase. (#3815)
* perform a warmup phase.

* simplify approach to starting JFR recording.

* remove JMX

* use liberica jvm
2021-08-13 14:23:33 +03:00
Lauri Tulmin 392fc5a6c1
Improve wrapping jetty response listener (#3831) 2021-08-13 11:31:23 +09:00
Nikita Salnikov-Tarnovski 539f104869
Smoke tests were accidentally enabled if testJavaVersion was provided (#3830) 2021-08-12 19:32:14 +03:00
Lauri Tulmin 8c89420753
Skip bad spring-rabbit version (#3829) 2021-08-12 08:57:28 -07:00
Trask Stalnaker da55d98a87
Simplify webflux mono handling (#3816) 2021-08-12 08:54:26 -07:00
Nikita Salnikov-Tarnovski d73710b4dc
Run tests on j9 JVM during CI (#3764)
* During PR runs tests on j9 JVM as well

* Run test matrix on J9 as well
2021-08-12 11:13:42 +03:00
Nikita Salnikov-Tarnovski 33f54cbc88
Introduce stable property for external extensions (#3823)
* Introduce stable property for external extensions

* Examples should still use old property

* Spotless
2021-08-12 08:47:34 +03:00
Mateusz Rzeszutek d13d1cf226
Bump muzzle plugins version (#3824) 2021-08-11 23:27:17 +03:00
Mateusz Rzeszutek 3ea22bb3ed
Cache couchbase operation attribute values per method (#3819)
* Cache couchbase operation attribute values per method

* avoid using reflection

* spotless
2021-08-11 07:54:11 -07:00
Lauri Tulmin d9080a745b
Test latest version of kafka client and streams (#3803) 2021-08-11 17:12:44 +03:00
Mateusz Rzeszutek 421fec4cfe
Bump gradle-plugins to 0.4 (and fix one more thing in ReferencesPrinter) (#3818)
* Bump gradle-plugins to 0.4 (and fix one more thing in ReferencesPrinter)

* Use context class loader

* func -> action
2021-08-11 16:06:54 +02:00
Lauri Tulmin f4e6baf22d
Make spring webflux tests pass with strict context check (#3811)
* Make spring webflux tests pass with strict context check

* Add comment
2021-08-11 06:51:31 -07:00
Mateusz Rzeszutek 4619d86c68
Remove reflection usage (getting Method) from geode (#3821) 2021-08-11 06:47:52 -07:00
Lauri Tulmin 08d3766069
Fix building jmh benchmarks (#3820) 2021-08-11 06:46:26 -07:00
Mateusz Rzeszutek 92a69c3309
Simplify shouldStart() check for SERVER & CONSUMER spans (#3771) 2021-08-10 21:00:34 -07:00
Trask Stalnaker 1889c1adfb
Limit netty exception capture to netty spans (#3809)
* Limit Netty exception capture to Netty span

* Rename constant

* Fix var name

* Apply to netty-4.0 also
2021-08-10 20:58:37 -07:00
Mateusz Rzeszutek b2609d0f40
Refactor couchbase and hystrix to Instrumenter API (#3802) 2021-08-10 12:16:41 -07:00