Commit Graph

5839 Commits

Author SHA1 Message Date
Anuraag Agrawal c3c5e6b2a6
Finish Netty 4.1 spans after response has completed not when it started. (#2641)
* Finish Netty 4.1 spans after response has completed not when it started.

* copy pasta bada

* Update instrumentation/netty/netty-4.1/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/netty/v4_1/client/HttpClientResponseTracingHandler.java

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

* Update instrumentation/netty/netty-4.1/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/netty/v4_1/server/HttpServerResponseTracingHandler.java

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

* Update instrumentation/netty/netty-4.1/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/netty/v4_1/server/HttpServerResponseTracingHandler.java

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-03-27 13:32:01 +09:00
Nikita Salnikov-Tarnovski 5a9b0b999f
Test of single connection reuse for Netty (#2630)
* Test of single connection reuse for Netty

* Format
2021-03-26 16:21:46 +02:00
Nikita Salnikov-Tarnovski 43f4ab4734
Run smoke tests on Windows as well (#2617)
* Run smoke tests on Windows as well

* Allow long paths on windows

* Allow long paths on windows

* Polish

* Add check that spans were generated by expected OS

* Fix method name

* Use proper extra tag

* Use long paths on CI build on Windows

* Don't run linux test images on Windows

* Don't run linux test images on Windows

* Typo

* More debug

* Don't use testcontainers on Windows

* Polish

* Update backend

* Support for extra resources on linux

* Trying Linux backend on Windows

* Pull backend images if not found

* We do use windows images for backend as well

* Use correct windows images

* Less logs

* Polish

* Better logs

* Polish

* Polish
2021-03-26 15:11:59 +02:00
Mateusz Rzeszutek 1e50b72937
Make muzzle reference creation package(s) configurable (#2615)
* Make muzzle reference creation package(s) configurable

* Code review comments
2021-03-26 14:12:43 +02:00
Anuraag Agrawal 81648fe560
Remove CommonTaskExecutor (#2635) 2021-03-26 13:58:11 +02:00
Nikita Salnikov-Tarnovski bb5f2c5ece
Constaing latest support version of Apache Dubbo (#2628)
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-03-25 22:39:43 -07:00
Felix Barnsteiner 1b0438439a
Fix typo in javadoc (nonheap vs non_heap) (#2627) 2021-03-25 22:39:23 -07:00
Anuraag Agrawal 28b1aa386b
Use direct caffeine executor. (#2632) 2021-03-25 19:02:58 -07:00
Lauri Tulmin 4ad9ed5c32
Reimplement finding open ports (#2629) 2021-03-25 10:41:20 -07:00
Nikita Salnikov-Tarnovski 2a2d4ae2f8
Publish windows images for smoke tests backends (#2621)
* Build and push Windows Docker images for fake-backend and collector

* Run on main branch only

* Update smoke-tests/fake-backend/build.gradle

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

* Fix comment

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-03-24 13:20:40 +02: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
Lauri Tulmin e3155ed977
Run smoketests in parallel (#2622) 2021-03-24 08:31:12 +02:00
Lauri Tulmin 116cd2d90d
Fix flaky rocketmq test (#2620) 2021-03-23 18:24:01 -07:00
Nikita Salnikov-Tarnovski d79f90492a
Make sure muzzle build-time check actually validates anything (#2599)
* Check if muzzle build-time check actually validates anything

* Force class files generation before muzzle

* Apply muzzle only to javaagent projects

* Apply muzzle only to javaagent projects

* More fixes

* More fixes

* PR review comments

* polish

* Exclude "broken" version

* Polish

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-03-23 14:12:01 +02: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
Felix Barnsteiner 56c52bc315
Add runtime.jvm.gc.collection.count metric (#2616)
* Add runtime.jvm.gc.collection.count metric

* Fix format violation

* Rename gc.collection to gc.collection.time

* Another rename 😅
2021-03-23 14:11:23 +02:00
HaloFour 4168c0b4fe
Add asynchronous tracing for Java 8 CompletableFuture in WithSpanAdvice (#2530) 2021-03-21 23:36:05 -07:00
Trask Stalnaker 1e3d9dd992
Increase smoke test timeout (#2611)
* Increase smoke test timeout

* Fix muzzle build failure
2021-03-21 22:24:47 -07:00
addname 8e2c86fe3b
Fix support rocketmq client test (#2610)
* Fix test

* Fix test

* Fix test

* Fix test
2021-03-22 13:36:38 +09:00
Trask Stalnaker 1a18841fdf
Apply new muzzle feature to mongo instrumentation (#2608) 2021-03-20 12:48:34 +09:00
Nikita Salnikov-Tarnovski fc39d87c82
Remove JCenter which is about to be sunset (#2387)
* Remove JCenter which is about to be sunset

* Fallback to JCenter for muzzle

* Fixing muzzle without jcenter

* Fixing muzzle without jcenter

* Fixing muzzle without jcenter

* Fixing muzzle without jcenter

* Fixing muzzle without jcenter

* Fixing muzzle without jcenter

* Fixing muzzle without jcenter

* Remove debug logs

* polish
2021-03-19 23:21:52 +02:00
Mateusz Rzeszutek 69dcfb77bf
Resolve a TODO in SmokeTest (#2604) 2021-03-19 14:30:11 +02:00
Mateusz Rzeszutek 33042ec842
Verify in smoke tests that runtime metrics are exported (#2603) 2021-03-19 12:31:59 +01:00
Anuraag Agrawal f3482a629d
Add protocol-core to muzzle dependencies for aws sdk v2. (#2602)
* Add protocol-core to muzzle dependencies.

* What does this condition mean?

* Syntax
2021-03-19 11:48:58 +02:00
Jakub Wach 4e7d43e5cc
Apache Camel - S3 to SQS propagation impl + tests (#2583)
* Apache Camel - S3 to SQS propagation impl + tests

* code review - added unit test

* code review - proper unit tests

* code review
2021-03-19 08:33:29 +02:00
Mateusz Rzeszutek 5e1f52659f
Add metrics collection to smoke-tests' fake-backend (#2597)
* Add metrics collection to smoke-tests' fake-backend

* Fix a bug
2021-03-19 15:03:40 +09:00
Mateusz Rzeszutek 9fff4a3b47
ComponentInstallers should run after LogManager if a custom one is detected (#2592)
* ComponentInstallers should run after LogManager if a custom one is detected

* Limit to Java 8
2021-03-18 14:10:22 +02:00
Trask Stalnaker 811259376e
Update servlet attr names to match log attr names (#2593) 2021-03-18 14:03:06 +02:00
Nikita Salnikov-Tarnovski f26901df45
Ignore flaky test (#2595) 2021-03-18 19:58:42 +09:00
Anuraag Agrawal 2fd933b578
Support Lettuce 6 (#2589)
* Add support for Lettuce 6

* Finish

* Remove unnecessary null check
2021-03-18 12:21:47 +09:00
jason plumb 6ea1e8d0ef
Let the ComponentInstaller be passed a Config instance (#2569)
* Let the ComponentInstaller be passed a Config instance, and prefer using Config over Properties

* revert span exporter factory and metric exporter factory and stick with the ol' properties for now.

* rollback
2021-03-18 00:11:42 +02:00
Jakub Wach fcc7004353
Camel instrumentation - SNS propagation impl + tests (#2562)
* Camel instrumentation - SNS propagation impl + tests

* code review
2021-03-17 15:03:47 +02:00
Trask Stalnaker 0ce9ca57d9
Move attributes to span builder for use by samplers (#2587)
* Move attributes to span builder for sampler use

* Fix test

* Remove unnecessary test
2021-03-17 15:02:56 +02:00
Nikita Salnikov-Tarnovski ca1e1f608a
Fix merge conflict (#2584)
* Fix merge conflict

* Format
2021-03-16 20:19:44 +02:00
Nikita Salnikov-Tarnovski 81f350f456
Concurrent http client tests with connection reuse (#2550)
* Concurrent http client tests with connection reuse

* Scope exception handler callback
2021-03-16 16:27:54 +02:00
Nikita Salnikov-Tarnovski 50eca9a325
Upgrade gradle-docker plugin to properly work on Windows (#2582) 2021-03-16 14:58:06 +02:00
Mateusz Rzeszutek ae23b97ec4
Move and rename NetPeerUtils (#2548)
* Move and rename NetPeerUtils

* Rename NetPeerUtils to NetPeerAttributes; inject instance instead of using a global var
* Rename SpanAttributeSetter to AttributeSetter (might be used to set on AttributesBuilder in the future, who knows)
* Deprecate default BaseTracer constructor: library instrumentations are supposed to inject all dependencies, the javaagent should explicitly pass globals

* fix compilation failure

* Remove peer.service customization from library instrumentation
2021-03-16 13:50:19 +01:00
Anuraag Agrawal c1718baf23
Add logback classloader optimization (#2581) 2021-03-16 14:36:24 +02:00
Mateusz Rzeszutek f3ba2302eb
Remove unnecessary libs from the javaagent shadowJar (#2566)
* Remove unnecessary libs from the javaagent shadowJar

And make it a bit lighter: 36 MB -> 21 MB

* Apply code review comments

* Remove unnecessary kotlin exclusion
2021-03-16 10:47:05 +01:00
Anuraag Agrawal f3bc02f2e7
Use instance field for wrapped lambda instead of static. (#2579) 2021-03-16 18:24:23 +09:00
Nikita Salnikov-Tarnovski 150b52ca19
Use azure/docker-login action (#2580) 2021-03-16 11:04:50 +02:00
YuDong Tang c03c800bad
Solve the problem that module definitions are not in dictionary order (#2576) 2021-03-15 23:27:13 -07:00
Nikita Salnikov-Tarnovski 196d1b3ee7
Fix docker login on Windows (#2573)
* Fix docker login on Windows

* Add TODO
2021-03-15 17:12:03 +02:00
addname 5bd148ca9b
Update supported libraries doc for rocketmq (#2575) 2021-03-15 13:27:11 +02:00
Nikita Salnikov-Tarnovski 0a1ea92733
Build Windows images for smoke tests (#2568) 2021-03-15 09:38:06 +02:00
Mateusz Rzeszutek f8dd8c8f56
Move RuntimeMetricsInstaller to correct package (#2567) 2021-03-12 09:49:25 -08: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
jason plumb 182574a672
give `service.name` additional visibility within the resource def. (#2563) 2021-03-12 08:47:01 +02:00
Nikita Salnikov-Tarnovski ae236a646c
Update Gradle to 6.8.3 (#2561) 2021-03-11 22:12:30 -08:00