Commit Graph

7884 Commits

Author SHA1 Message Date
AndyChen 09457bd431
Doc multiple java agent extension (#6132) (#6133)
* Doc multiple java agent extension  (#6132)

* polished
2022-06-02 12:31:32 -07:00
Darcy 925f6197d8
fix bug: get return type in a wrong way for method instrumentation (#6118)
* fix bug: get return type in a wrong way for method instrumentation

* add testcase for method instrumentation

* update code style

* update code style

* Use Span.isRecording() to test whether span has been ended

Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2022-05-31 21:23:20 -07:00
Lauri Tulmin efd40f8cdf
Instrumentation for redisson 3.17.2 (#6096)
* Instrumentation for redisson 3.17.2

* cross test instrumentation

* split at 3.17.0, assert inverse

* Apply suggestions from code review

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-05-26 09:44:34 -07:00
Lauri Tulmin 24d3e1a5e8
Correct vibur artifact name (#6098) 2022-05-26 08:48:59 -07:00
Lauri Tulmin b95b64ba88
Implement Vibur DBCP connection pool metrics (#6092)
* Implement Vibur DBCP connection pool metrics

* Apply suggestions from code review

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

* address review comments

* don't check for metircs that aren't reported

* rework library test setup

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-05-26 11:26:02 +03:00
Lauri Tulmin 4586db491d
Allow instrumenting built-in class loaders (#6093) 2022-05-26 10:35:39 +03:00
Jean Bisutti e8ee277ec6
sun.net.www.protocol.http.HttpURLConnection.getOutputStream should tr… (#6053)
* sun.net.www.protocol.http.HttpURLConnection.getOutputStream should transform GET into POST

* Code simplification

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

* New implementation to not depend on the execution order of connection's methods

* Add condition on request method in case of exception

* Code uniformity

* Update span name

* Update instrumentation/http-url-connection/javaagent/src/test/groovy/HttpUrlConnectionTest.groovy

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

* Update instrumentation/http-url-connection/javaagent/src/test/groovy/HttpUrlConnectionTest.groovy

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

* Update instrumentation/http-url-connection/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/httpurlconnection/HttpMethodAttributeExtractor.java

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

* Add volatile

* Format code

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-05-25 10:28:19 -07:00
dependabot[bot] fb69a98efe
Bump com.gradle.common-custom-user-data-gradle-plugin from 1.6.5 to 1.7 (#6080)
Bumps com.gradle.common-custom-user-data-gradle-plugin from 1.6.5 to 1.7.

---
updated-dependencies:
- dependency-name: com.gradle.common-custom-user-data-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-05-24 12:43:51 +03:00
Trask Stalnaker 9c2e508e20
Fix debug logging (#6085)
* Fix debug logging

* Add a test
2022-05-24 11:06:38 +03:00
dependabot[bot] c10d8b2905
Bump com.gradle.enterprise from 3.10 to 3.10.1 (#6079)
Bumps com.gradle.enterprise from 3.10 to 3.10.1.

---
updated-dependencies:
- dependency-name: com.gradle.enterprise
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-05-24 10:42:55 +03:00
Trask Stalnaker 6c5170c788
Fix the build (#6084) 2022-05-23 22:14:55 -07:00
Lauri Tulmin ef0395ff55
Set file/dir access flags for reproducible build (#6072) 2022-05-20 09:12:48 -07:00
Lauri Tulmin a1626ccc8c
Add OSHI to supported libraries (#6073) 2022-05-20 09:11:33 -07:00
jack-berg 1f9de2ed7c
Add jvm threads instrumentation (#6070)
* Add jvm threads instrumentation

* Use up down counter
2022-05-20 09:11:05 -07:00
jack-berg 6f0f608cbb
Add JVM classes instrumentation (#6069)
* Add JVM classes instrumentation

* Add unit of 1

* Assert monotonicity
2022-05-19 16:14:14 -07:00
HaloFour b7fc80c98e
Change SpanStatusExtractor to use a builder that can set status description (#6035)
* Change SpanStatusExtractor to use a builder that can set status descripion

* Refactor SpanStatusExtractor to only support builder approach to setting status

* Revert setting the exception as the status description

* PR feedback

* Re-fix graghql instrumentation span extractor

* Spotless
2022-05-19 10:00:46 -07:00
Mateusz Rzeszutek 512a040025
Remove TimeExtractor and use internal API for setting start/end timestamps (#6051)
* Remove TimeExtractor and use internal API for setting start/end timestamps

* code review comments
2022-05-19 09:03:11 -07:00
Lauri Tulmin a2a8c11ecc
Limit cassandra memory usage (#6068) 2022-05-19 16:07:30 +03:00
Trask Stalnaker f3b25e36d8
Update 1.14.0 change log (#6063)
* Update 1.14.0 change log

* fix
2022-05-19 10:47:00 +03:00
Trask Stalnaker a54631f00e
Centralize all plugin versions (#6064) 2022-05-18 20:22:24 -07:00
Trask Stalnaker d3be07eb1a
Better muzzle instrumentation exclusion (#6044)
* Better muzzle instrumentation exclusion

* set
2022-05-18 11:15:57 -07:00
Lauri Tulmin beb00cd03e
Ignore span oder in flaky test (#6060)
* Ignore span oder for http client connectionErrorUnopenedPortWithCallback test on jdk8

* fix spelling
2022-05-18 11:15:41 -07:00
Lauri Tulmin 4d79013a88
Fix sorting spans in reactor netty connection span tests (#6061)
* Fix sorting spans in reactor netty connection span tests

* revert changes for reactor-netty-0.9
2022-05-18 11:14:45 -07:00
Trask Stalnaker 47f6504dc8
Add diff-suppression-keys-with-docs script back (#6046)
* Add diff-suppression-keys-with-docs script back

* feedback
2022-05-18 11:08:47 -07:00
Trask Stalnaker 089f4d48dd
Update vertx-http-client instrumentation name (#6058) 2022-05-18 10:37:14 +03:00
Trask Stalnaker 88ba8d3e6d
Rename jboss-logmanager module to jboss-logmanager-appender (#6045)
* Rename jboss-logmanager module

* Package names too
2022-05-17 14:18:57 -07:00
Lauri Tulmin 6c44340f1c
Enable grizzly instrumentation by default (#6049) 2022-05-17 14:18:29 -07:00
Anuraag Agrawal 528360db8c
Update dependencies (#6007)
* Update dependencies

* Add maven to plugin repos

* Fix tests that fail with groovy 4.0.2 (#42)

Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
2022-05-17 14:12:36 -07:00
Lauri Tulmin 1298b4693c
Fix redisson ClassCastException (#6054) 2022-05-17 13:55:45 -07:00
OpenTelemetry Java Bot 83c4418c94
Merge change log updates from release/v1.14.x (#6057) 2022-05-17 13:49:57 -07:00
Mateusz Rzeszutek e343b50804
Remove some deprecated code from the main branch (#6055) 2022-05-17 12:25:43 -07:00
Trask Stalnaker 59618783a2
Remove tag protection rule (#6048) 2022-05-17 09:53:32 +03:00
dependabot[bot] 20aeb582a6
Bump com.gradle.plugin-publish from 1.0.0-rc-1 to 1.0.0-rc-2 (#6037)
Bumps com.gradle.plugin-publish from 1.0.0-rc-1 to 1.0.0-rc-2.

---
updated-dependencies:
- dependency-name: com.gradle.plugin-publish
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-16 22:48:54 -07:00
OpenTelemetry Java Bot 351cac3d4d
Update version to 1.15.0-SNAPSHOT (#6042) 2022-05-16 21:17:30 -07:00
Trask Stalnaker 4fa30a84b0
Fix release workflow (#6040) 2022-05-16 19:59:42 -07:00
Trask Stalnaker 43a7c219aa
Update change log for 1.14.0 (#6029)
* Update change log for 1.14.0

* fix

* Last minute inclusion
2022-05-16 13:58:03 -07:00
Mateusz Rzeszutek cb7421c592
Add an SPI for customizing Config just before it's set (#6010)
* Add an SPI for customizing Config just before it's set

* deprecate ConfigPropertySource in favor of ConfigCustomizer

* errorprone
2022-05-16 11:55:01 -07:00
Mateusz Rzeszutek 18352ff913
Fix a metrics API bridging issue (#6034) 2022-05-16 11:31:33 -07:00
Trask Stalnaker 59e47a2865
Workflow updates (#6027) 2022-05-16 11:59:30 +03:00
Trask Stalnaker 18367e72a0
Doc tag protections (#6026) 2022-05-16 11:58:32 +03:00
Lauri Tulmin c166c937b3
Disable periodic metric reading in tests (#6025) 2022-05-13 10:24:59 -07:00
Trask Stalnaker 1df75378a1
Mitigate against another kafka leak (#6021) 2022-05-13 10:22:47 -07:00
Mateusz Rzeszutek dd5e30defd
Implement HikariCP library instrumentation (#6023) 2022-05-13 10:22:35 -07:00
Mateusz Rzeszutek 5bcab32379
Implement HikariCP connection pool metrics (#6003)
* Implement HikariCP connection pool metrics

* rebase after SDK update

* fix muzzle

* code review comments
2022-05-12 18:48:07 -07:00
Lauri Tulmin 3611f11e39
Fix ClassCastException in overhead tests (#6019) 2022-05-12 12:03:45 -07:00
Mateusz Rzeszutek 6a0ca530b7
Instrumentation API changes: VirtualField (#6017)
* Instrumentation API changes: VirtualField

* change class name in string constant
2022-05-12 11:17:24 -07:00
Mateusz Rzeszutek 87b412fb40
Instrumentation API changes: OperationMetrics, OperationListener (#6016)
* Instrumentation API changes: OperationMetrics, OperationListener

* errorprone
2022-05-12 11:16:46 -07:00
Lauri Tulmin 8865ab6ae5
Avoid looking up annotation types during type matching (#5906) 2022-05-12 09:30:30 -07:00
Lauri Tulmin aac502cea4
GraphQL: verify that span has error status when operation failed (#6011) 2022-05-11 22:58:50 -07:00
Trask Stalnaker d6cf07496d
Add LoggingCustomizer SPI (#5997)
* Add LoggingCustomizer SPI

* Add comment

* suppress

* Re-order

* Also encompass init() itself

* comment
2022-05-11 18:09:12 -07:00