Commit Graph

7756 Commits

Author SHA1 Message Date
Anuraag Agrawal ecfa983658
Migrate quarkus smoke build to kotlin (#5814) 2022-04-13 14:41:34 +09:00
Anuraag Agrawal 5f55c30708
Migrate play smoke test to kotlin build (#5813) 2022-04-13 14:41:22 +09:00
Anuraag Agrawal 9752988127
Migrate grpc smoke test build scripts to kotlin and update dependencies. (#5812) 2022-04-13 13:51:21 +09:00
Anuraag Agrawal bdb375a621
Migrate fake backend build scripts to kotlin (#5811) 2022-04-13 12:42:22 +09:00
Trask Stalnaker 59df222c0d
sync (#5810) 2022-04-12 19:41:29 -07:00
Lauri Tulmin b587473331
Fix flaky SpringRestTemplateTest (#5808) 2022-04-12 20:55:52 +03:00
Lauri Tulmin 92f3658aa3
Fix jaxws metro tests on jdk8 (#5809) 2022-04-12 10:26:23 -07:00
Trask Stalnaker 8d25e97116
Sync version.gradle.kts (#5805) 2022-04-12 11:00:46 +03:00
Jérôme Prinet 8cda90b8c1
Set Runtime Classpath normalizer for agent input of :smoke-tests:test task (#5801)
* Set relative path sensitivity for :smoke-tests:test task

* Set runtime classpath normalization for java agent input of :smoke-tests:test task

* Fix format violations

* Update smoke-tests/build.gradle.kts

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

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-04-12 14:47:54 +09:00
Trask Stalnaker 7b6b31ff88
Extract instrumentation out of jaxrs-common module (#5788)
* Extract instrumentation out of jaxrs-common module

* dropwizard

* Move jaxrs annotation test too

Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2022-04-11 16:59:15 -07:00
Trask Stalnaker bfd456addc
Workflow updates and fixes (#5785)
* Port https://github.com/open-telemetry/opentelemetry-java/pull/4353

* Port https://github.com/open-telemetry/opentelemetry-java/pull/4359

* Port https://github.com/open-telemetry/opentelemetry-java/pull/4361

* Port https://github.com/open-telemetry/opentelemetry-java/pull/4362

* More syncing

* And sync markdown link check

Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2022-04-11 14:55:29 -07:00
Anuraag Agrawal 980746ae44
Update errorprone (#5776)
* Update errorprone

* Fix errorprone on java 17

* Fix oshi test

* Spot

* Fix merge
2022-04-11 12:48:16 -07:00
Lauri Tulmin 3940529dd2
Agent tooling already has access to bootstrap proxy (#5802) 2022-04-11 12:41:30 -07:00
Trask Stalnaker fe84d24b74
Fix missing class errors (#5795)
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2022-04-11 15:27:38 +03:00
Lauri Tulmin 91066a8073
Add library instrumentation for ktor 2 (#5797) 2022-04-11 13:05:00 +03:00
Anuraag Agrawal 6edab71aa7
Update fake backend (#5800) 2022-04-11 13:04:44 +03:00
Trask Stalnaker cc05e57e67
Fix testLatestDeps (#5792)
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2022-04-11 11:36:07 +03:00
Mateusz Rzeszutek 2ce1162eac
Instrumenter instrumentation version and schema url (#5752)
* Instrumenter instrumentation version and schema url

* nullable instrumentation version

* Apply suggestions from code review

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>

* reformat

* code review comments

* instrumentation properties files

* Apply suggestions from code review

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>

* code review comments

* Apply suggestions from code review

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

Co-authored-by: Fabrizio Ferri-Benedetti <fferribenedetti@splunk.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-04-11 10:29:58 +02:00
Trask Stalnaker ad2243fcf4
Fix misspell check (#5786) 2022-04-11 10:19:42 +03:00
Lauri Tulmin 4ad44909ca
Faster type matching (#5724)
* Faster type matching

* make findLoadedClass accessible on java17

* enable jaxrs instrumentation for quarkus test

* fix websphere

* fix muzzle

* javadoc formating

* ignore classes that are know to fail to load for virtual field transforms

* add back jaxrs and jaxws annotation instrumentations

* Apply suggestions from code review

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

* fix compile error

* comments

* replace deprecated method usage

* add comment

* add an spi to get access to bootstrap proxy from muzzle module

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-04-08 10:38:50 -07:00
Anuraag Agrawal 496c6cfb0a
Fix WithSpan initialization ordering requirement for SpanAttribute and Flux (#5764)
* Add shared tests for async end strategy WithSpan

* WIP

* WIP

* Finally

* dump

* Oops

* namedOneOf
2022-04-08 20:01:39 +09:00
Anuraag Agrawal 7e428168ff
Update dependencies (#5777)
* Update dependencies

* Update licenses

* Exclude licenses from link check

* Exclude licenses from link check?
2022-04-08 20:00:53 +09:00
Anuraag Agrawal 333e7bbd50
Migrate apache-httpclient-4.3 tests to Java. (#5774)
* Migrate apache-httpclient-4.3 tests to Java.

* Spot
2022-04-08 15:04:23 +09:00
Anuraag Agrawal a48ecd0365
Upgrade Gradle and build dependencies (#5775) 2022-04-08 14:31:38 +09:00
Lauri Tulmin 91e9539ac1
Set smoke tests xmx to 512m and backend to 128m (#5772) 2022-04-07 15:09:26 -07:00
Lauri Tulmin 31f5734be6
Fix debugging assertion in redisson async test (#5770) 2022-04-07 19:47:10 +03:00
Anurag Agarwal 13a851ba24
Apache httpasyncclient 5.x (#5697)
* Copies code for httpasyncclient-4.1 and creates instrumentation for 5.0

* Makes import changes for http client 5

* Decorate request channel and changes type in tests

* Corrects test cases

* Corrects most of the test cases

* Forces http1 protocol to pass the test cases

* Merge supported libraries for async client

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>

* Remove http.sceme and http.target attr from test

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>

* Removes not needed null check for status code

* Replaces slf4j loggers with JUL

* Inlined flavor extraction in attributes getter

* Uses parameter placeholders for logging

* Uses success endpoint to test flavor

* Merges httpasyncclient and httpclient modules

* Merges http client 5 modules

* Update java-8 compatible changes

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>

* Change instrumentation name

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>

* Adds missing import statement

* Rename packages

* Java 8

* Reverts adding 5.0+ support from supporting libraries

* Deleted hanging module

* Uses seconds instead of ms in http test

* Merges both classic and async client implementations

* Moves http client all test cases to java tests

* Uses abstract apache test class and moves boilerplate

* Uses connection and read timeouts from ApacheHttpClientTest

* Refactors remaining classes, shifts logic to HttpUtils

* Renames HttpUtils to ApacheHttpClientUtils

* Corrects failing code style error

* Corrects build errors

* Renames package to have http client version

* Corrects package name

* Uses instrumenter as static import

* Inline utility methods

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-04-07 08:45:06 -07:00
Lauri Tulmin a1501119e6
Close connection in SpringTemplateJms2Test (#5767) 2022-04-07 18:05:17 +03:00
Lauri Tulmin 76e833fd14
Add assertion to redisson async test (#5768) 2022-04-07 15:40:06 +03:00
Anuraag Agrawal 7666d3ad2c
Use private lock for synchronization (#5762)
* Use private lock for synchronization

* Update instrumentation/reactor/reactor-3.1/library/src/main/java/io/opentelemetry/instrumentation/reactor/ContextPropagationOperator.java

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-04-07 15:47:26 +09:00
Anuraag Agrawal 225971e1c5
Allow scanning instrumented reactor publishers and only allow registe… (#5755)
* Allow scanning instrumented reactor publishers and only allow registering once.

* Avoid atomicboolean

* Clean

* Bug
2022-04-07 13:56:59 +09:00
Anuraag Agrawal cd725ec4e8
Resolve end strategy after WithSpan method instead of before. (#5756)
* WIP

* Resolve end strategy after WithSpan method instead of before.
2022-04-06 18:16:28 -07:00
Mateusz Rzeszutek 8b29f80962
Remove the @UnstableApi annotation (#5757) 2022-04-06 18:12:47 -07:00
Mateusz Rzeszutek 519024485c
Move Cache and related classes to internal package (#5759)
* Move Cache and related classes to internal package

* fix imports
2022-04-06 18:12:11 -07:00
Mateusz Rzeszutek 65717dae3e
Cleanup Config & ConfigBuilder API (#5733)
* Cleanup Config & ConfigBuilder API

* errorprone

* errorprone & spotless

* spotless
2022-04-05 20:20:52 -07:00
Mateusz Rzeszutek 50f91e6dee
Deprecate AttributesExtractor#set() method (#5749)
* Deprecate AttributesExtractor#set() method

* code review comments
2022-04-05 20:20:02 -07:00
Mateusz Rzeszutek 39e1fcb48e
Rename view and controller suppression config properties (#5747)
* Rename view and controller suppression config properties

* code review comments
2022-04-05 14:24:24 -07:00
Lauri Tulmin 27e8201618
Rework context propagation to redisson async callback (#5748)
* Rework context propagation to redisson async callback

* add comments
2022-04-05 09:59:22 -07:00
Will Li 4815f1e7d1
Add support for jboss-logmanager (#5737)
* initialize the package

Signed-off-by: Cuichen Li <cuichli@cisco.com>

* add jboss-logmanger 2.1 instrumentation

Signed-off-by: Cuichen Li <cuichli@cisco.com>

* rename the test

Signed-off-by: Cuichen Li <cuichli@cisco.com>

* clean comment

Signed-off-by: Cuichen Li <cuichli@cisco.com>

* Revert "Add JBoss java.util.logging support (#5498)"

This reverts commit 8b26cef666.

* Remove extra directory

* Remove old jboss log manager test

* Ensure no cross interference

* Change base version to 1.1

* fix styles

Signed-off-by: Cuichen Li <cuichli@cisco.com>

* run spotless apply

Signed-off-by: Cuichen Li <cuichli@cisco.com>

* fix codenarc

Signed-off-by: Cuichen Li <cuichli@cisco.com>

* change the package version and additional module name

Signed-off-by: Cuichen Li <cuichli@cisco.com>

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-04-04 14:23:31 -07:00
Trask Stalnaker 5b0d9e31ce
Remove old status check (#5750) 2022-04-04 14:22:51 -07:00
Mateusz Rzeszutek 8e722cc264
Library instrumentation should read its version from a file (#5692)
* Library instrumentation should read its version from a file

* errorprone

* animalsniffer

* code review comments

* add name as task input too

* code review comments
2022-04-04 11:52:23 -07:00
Trask Stalnaker d908821072
Workflow cleanup/sync (#5736)
* Workflow cleanup/sync

* more

* more

* more

* fix

* consistency

* Use simpler sharing of env vars across steps

* Simplify, merge related jobs

* Simplify

* More improvements

* Use release/* release branch naming
2022-04-04 11:51:12 -07:00
Anuraag Agrawal 79cd0934b5
Tweak Guava WithSpan test pattern. (#5744) 2022-04-04 11:50:58 -07:00
Lauri Tulmin 2b7fe695b9
Flaky spring kafka batch test (#5740)
* Flaky spring kafka batch test

* Update instrumentation/spring/spring-kafka-2.7/javaagent/src/test/groovy/SpringKafkaInstrumentationTest.groovy

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2022-04-04 11:49:19 -07:00
Lauri Tulmin 00b6e6e043
Add connection timeout to SpringWebInstrumentationTest (#5745) 2022-04-04 11:48:42 -07:00
Mateusz Rzeszutek 0ca127fe94
Move ClassNames & SpanNames to .util package (#5746)
* Move ClassNames & SpanNames to .util package

* errorprone
2022-04-04 11:17:54 -07:00
Andreas Grub e6be68d5c7
Use `logging.pattern.level` recommended by Spring (#5726)
* Use `logging.pattern.level` recommended by Spring

The Spring Boot documentation recommends using `logging.pattern.level` in a "Tip" section in https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.logging.custom-log-configuration

We should follow this best practice.

* Update docs/logger-mdc-instrumentation.md

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2022-04-04 11:17:11 -07:00
Lauri Tulmin 56e3ed67a9
Collect crash dumps for smoke tests (#5741) 2022-04-02 11:42:11 -07:00
Mateusz Rzeszutek 2fd167cfe0
Move BootstrapPackagesConfigurer to javaagent-tooling (#5734) 2022-04-01 11:33:07 -07:00
Lauri Tulmin 4e8ccc3126
Fix flaky kotlin coroutine test (#5732) 2022-04-01 11:18:43 -07:00