Commit Graph

7884 Commits

Author SHA1 Message Date
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
Lauri Tulmin c9ec6f2d5d
Fix flaky exception handler test (#5730) 2022-04-01 11:18:01 -07:00
Mateusz Rzeszutek 5fb2261a82
Split out instrumentation-api-semconv (#5721)
* Split out instrumentation-api-semconv

* fix tests

* Moved LoggingContextConstants to semconv module too
2022-04-01 10:04:52 -07:00
Anuraag Agrawal da1dc66512
Create PR in operator repo on javaagent release. (#5710)
* File issue in operator repo on javaagent release.

* Open PR instead of issue

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-04-01 10:04:30 -07:00
Lauri Tulmin 6c7336b978
Fix awaitility import (#5731) 2022-04-01 11:27:06 +02:00
Lauri Tulmin 315b8162be
Delete unused class (#5729) 2022-04-01 11:26:13 +02:00
YuDong Tang f269ef75ba
change rpc type in apache dubbo (#5432)
* change rpc type in apache dubbo

* fix dubbo test

* fix test
2022-04-01 11:49:10 +03:00
Lauri Tulmin 5a25d276f8
Limit latest dep and muzzle range for hibernate (#5725)
* Limit muzzle range for hibernate

* limit latest dep
2022-04-01 11:08:19 +03:00
jack-berg fbc100a0f6
Update runtime memory metrics to reflect semantic conventions (#5718)
* Update runtime memory metrics to reflect semantic conventions

* Fix SpringBootSmokeTest

* Fix PrometheusSmokeTest
2022-03-31 09:56:58 -07:00
Mateusz Rzeszutek 7bc748a2ff
Make it possible to register multiple helper resources under the same… (#5703)
* Make it possible to register multiple helper resources under the same name

* go back to using the old property in tests after all

* code review comments
2022-03-31 11:51:46 +02:00
Eduardo Narros 2852d1d0c7
Allows passing an OpenTelemetry instance to registerObservers() methods. (#5716)
* Allows passing an OpenTelemetry instance to registerObservers() methods.

* Deprecated registerObserver methods that were using the GlobalOpenTelemetry instance.
2022-03-31 11:44:57 +09:00
Trask Stalnaker 0cc9cf0ef6
Fix prepare patch release workflow (#5719) 2022-03-31 11:43:33 +09:00
Patrice Chalin 2ccee759ef
Delete suppressing-instrumentation.md (#5712) 2022-03-30 13:32:50 -07:00
Patrice Chalin 32c3f45039
Delete docs/config directory (#5707)
- Contributes to https://github.com/open-telemetry/opentelemetry.io/issues/1229
- The content has been moved to the OTel website via https://github.com/open-telemetry/opentelemetry.io/pull/1246
2022-03-30 09:56:49 +02:00
Trask Stalnaker 0139a8d14d
Fix build badge (#5706) 2022-03-29 13:45:28 -07:00
jason plumb 48f7e03188
Improve warmup phase for overhead tests (#5700)
* improve warmup phase for overhead tests

* add jfr config file that has just the minimal set of items we care about.

* Update benchmark-overhead/src/test/java/io/opentelemetry/OverheadTests.java

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-03-29 10:27:14 -07:00
Trask Stalnaker ba3863eb1b
Sync github actions (#5695)
* Automate post-release change log merging

* wording

* rearrange

* wording

* Follow general template

* Update RELEASING

* Update RELEASING

* Update RELEASING

* Sync github actions

* more

* more

* Remove outdated comment

* Updates

* sync

* more
2022-03-29 10:21:17 -07:00
Andrei Chugunov c5f677e962
Spring Boot Starter service-name is constant (#5359)
* Spring Boot Starter service-name is constant

Pattern-based resource configuration

* Add ResourceProvider beans for spring with ConfigProperties
2022-03-29 12:34:43 +02:00
Lauri Tulmin b85696b1a3
Sql sanitizer: handle double quoted table names (#5699)
* Sql sanitizer: handle double quoted table names

* handle backtick

* strip double quotes and backtick from table name in a separate method
2022-03-29 10:48:51 +03:00
Trask Stalnaker da036f0b50
Move advanced config to separate page (#5693) 2022-03-28 10:00:23 -07:00
Anuraag Agrawal db7830d16c
Migrate remaining reactor tests to Java. (#5688)
* Migrate remaining reactor tests to Java.

* Move javaagent tests pakage
2022-03-26 11:27:27 +09:00
Patrice Chalin e908b7fc71
docs: drop suppressing-instrumentation page and script (#5694) 2022-03-25 11:10:21 -07:00
Lauri Tulmin 5267462b06
Fix http concurrency test with large responses (#5648)
* Debug http client concurrency test failures

* debugging

* context porpagation to callbacks isn't really implemented

* verify that request succeeds in single connection concurrency test

* spotless

* verify request status in http client concurrency test

* update comment

* remove large response

* Trigger Build

* Update instrumentation/netty/netty-3.8/javaagent/src/test/groovy/Netty38ClientTest.groovy

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-03-25 10:03:22 -07:00