Commit Graph

1198 Commits

Author SHA1 Message Date
Anuraag Agrawal 92a04644d0
Migrate instrumentation/build.gradle to kotlin (#3444) 2021-06-30 19:09:13 +09:00
Mateusz Rzeszutek c1a0333cdb
Port AsyncSpanEndStrategy to Instrumenter API (#3262)
* Port AsyncSpanEndStrategy to Instrumenter API

* code review comments

* rename to AsyncOperationEndSupport

* weak-ref agent strategy storage; and passing response to Instrumenter if types match

* fix tests
2021-06-29 16:51:17 +02:00
Lauri Tulmin 9d1ab64ad5
Exclude bootstrap dependencies from inst (#3432) 2021-06-29 21:33:50 +09:00
Lauri Tulmin b7f811dd5b
Increase metrics tests timeout (#3429) 2021-06-29 14:36:38 +03:00
Rashmi 15a64286e9
Fixed Semantic conventions in RabbitMQ (#3425)
* Fixed Semantic conventions in RabbitMQ
1. Constructed producer span name according to spec rule. (Removed routing key as part of span name)
2. Renamed routing key attribute(part of experiment span attributes feature) according to semantic convention

* Spring integration rabbitmq test fixed

* moved MESSAGING_RABBITMQ_ROUTING_KEY attribute out of CAPTURE_EXPERIMENTAL_SPAN_ATTRIBUTES check
2021-06-29 14:35:47 +03:00
Anuraag Agrawal 47c8a9bfa5
Migrate jetty httpclient build files to kotlin (#3421) 2021-06-28 20:25:28 +09:00
Anuraag Agrawal 52616dd87f
Skip problematic spring-rabbit muzzle (#3420) 2021-06-28 18:47:39 +09:00
Lauri Tulmin d3856ad1d7
Context propagation for ratpack Execution.fork() (#3416) 2021-06-28 17:42:38 +09:00
Anuraag Agrawal 761b9c280b
Migrate instrumentation gradle files to kotlin (#3414)
* Migrate instrumentation gradle files to kotlin

* Convert

* Muzzle
2021-06-28 17:27:12 +09:00
Steve Dodge 9e2fcbaecd
Jetty-9 httpclient instrumentation, comments please (#3079)
* feat: jetty-9 http client, commit for PR comments

* chore: compensate for build break due to new TypeTransformer

* WIP: jetty9 with wrappers working

* feat: moved structure to match 9.2

* chore: fix package names again, now 9.2, clean up Nullables and Muzzle range

* chore: added latestDepTestLibrary for 10+ but class loader issues due to underlying jetty-server from the test framework

* chore: migrate to new instrumenter api

* chore: adjust to all the gradle plugin changes

* chore: added layers of builders

* chore: update final easy code review comments

* chore: remove comments in gradle

* chore: code cleanup, package cleanup, reduce surface area, iterators

* chore: cleanup of null checks, using HttpFlavorVals enum

* chore: null check removal again

* chore: set muzzle plugin correctly for 9.2 up to 9.4.+

* chore: convert gradle plugins to not use apply syntax

* Rename to build.gradle

* chore: move TypeInstrumention into standalone class

Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-06-28 14:34: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
Lauri Tulmin ce36486992
Fix armeria latest dep tests (#3407) 2021-06-25 09:50:35 +09:00
Trask Stalnaker bcb282a220
Conform to google style guide checkstyle (#3399) 2021-06-24 10:53:23 +03: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
Anuraag Agrawal eb897a80d9
Migrate muzzle plugin to kotlin script. (#3388)
* Migrate muzzle plugin to kotlin script.

* Update listInstrumentations

* bootstrap not tooling
2021-06-24 11:12:56 +09:00
Mateusz Rzeszutek 02098b9353
Ignore task classes using IgnoredTypesConfigurer (#3380) 2021-06-23 10:15:02 -07:00
Lauri Tulmin b44dd5eb07
Remove printStackTrace from a test class (#3391) 2021-06-23 10:14:19 -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
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 39508bc07e
Test jax-ws on tomee and wildfly (#3382)
* Test jax-ws on tomee and wildfly

* Search only org.gradle artifacts from gradle repo
2021-06-23 08:34:05 +09:00
Mateusz Rzeszutek 2c2c19d293
Fix UnsupportedOperationException happening when reactor-rabbitmq is used (#3381) 2021-06-23 08:27:06 +09:00
Trask Stalnaker e8dc79d2c0
Fix sporadic ratpack test failure (#3361) 2021-06-22 10:34:48 -07:00
Lauri Tulmin 9a8df0b199
Set port in RatpackOtherTest (#3373) 2021-06-21 13:14:18 -07:00
Lauri Tulmin 2002d2df43
Remove latestDepTestLibrary upper bound from jaxrs-2.0-resteasy-3.1 (#3370) 2021-06-21 13:13:35 -07:00
Lauri Tulmin 3967c42cda
Propagate context to cassandra4 callbacks (#3371) 2021-06-21 13:12:57 -07:00
Lauri Tulmin d31a2c7f17
Remove unused arquillian configuration (#3372) 2021-06-21 13:12:36 -07:00
Lauri Tulmin 415352cfb1
Fix gradle repo url (#3368) 2021-06-21 12:45:07 +03:00
Mateusz Rzeszutek ab70872746
Add peer.service to grpc javaagent instrumentation (#3357) 2021-06-18 20:35:42 -07:00
Anuraag Agrawal 9e763d69a7
Extract build plugin for instrumentation testing projects that aren't muzzled / published. (#3354) 2021-06-19 11:04:33 +09:00
Anuraag Agrawal 57fef6a2e7
Fix merge conflict. (#3352) 2021-06-18 11:37:02 +09:00
Mateusz Rzeszutek 108b1298cf
Make @RabbitListener propagate context properly (#3339) 2021-06-17 10:38:53 -07:00
Anuraag Agrawal 97254f04d1
Update to Gradle 7.1 (#3344) 2021-06-17 10:37:57 -07:00
Anuraag Agrawal 80f43b7a6a
Migrate javaagent-instrumentation to plugin (#3328)
* Migrate instrumentation.gradle to plugin

* Migrate usages

* Remove old

* Fix

* Revert example

* afterEvaluate

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-06-17 23:13:14 +09:00
Mateusz Rzeszutek 2f528e4166
Rename *Instrumenters to *Singletons (#3335) 2021-06-16 10:12:37 -07:00
Lauri Tulmin f77e8457fc
Fix flaky spring jms test (#3336) 2021-06-16 15:37:09 +03: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
Lauri Tulmin 8544fbad50
Fix kafka latest dep tests (#3334) 2021-06-16 14:07:47 +03:00
Lauri Tulmin b3ab474d65
Fix mongo latest dep tests (#3333) 2021-06-16 14:06:52 +03:00
Anuraag Agrawal c1d4cf01e8
Move min/max java properties to an extension class (#3307) 2021-06-15 11:55:24 -07:00
Anuraag Agrawal b7bfbf0cc6
Migrate instrumentation-library / common to plugins (#3320) 2021-06-15 11:54:48 -07:00
Trask Stalnaker 0871af8d01
Support Tomee JAX-WS (OpenEJB/CXF) (#3303) 2021-06-15 09:52:26 -07:00
Lauri Tulmin 99b82c5144
Fix rocketmq latest dep tests (#3317) 2021-06-15 18:41:17 +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 7ad9e7a50b
Move shaded testing dependencies to internal package. (#3305) 2021-06-15 13:10:19 +03:00
Anuraag Agrawal aca8deff9c
Migrate scala to convention plugin. (#3313) 2021-06-15 18:54:45 +09:00
Trask Stalnaker 0a21abe15a
Remove glassfish-testing module (#3301) 2021-06-15 09:03:57 +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 9f31a057b6
Refactor span names class (#3281)
* spanNameForMethod

* spanNameForClass

* Cache simple name using ClassValue
2021-06-14 11:56:40 -07:00
Trask Stalnaker 62f1f49bcd
Intellij cleanup (Java and Groovy) (#3285)
* Intellij cleanup

* Update instrumentation-api/src/test/java/io/opentelemetry/instrumentation/api/instrumenter/code/CodeAttributesExtractorTest.java

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Update instrumentation-api/src/test/java/io/opentelemetry/instrumentation/api/instrumenter/db/DbAttributesExtractorTest.java

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Update instrumentation-api/src/test/java/io/opentelemetry/instrumentation/api/instrumenter/db/SqlAttributesExtractorTest.java

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Update instrumentation-api/src/test/java/io/opentelemetry/instrumentation/api/instrumenter/messaging/MessagingAttributesExtractorTest.java

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Update instrumentation/spring/spring-web-3.1/library/src/test/java/io/opentelemetry/instrumentation/spring/httpclients/RestTemplateInterceptorTest.java

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Use glassfish version that supports lambdas

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-06-14 10:23:01 -07:00