Commit Graph

7965 Commits

Author SHA1 Message Date
Trask Stalnaker 11dd0797f6
Make rpc.grpc.status_code required (#6184) 2022-06-17 13:50:57 -07:00
Lauri Tulmin c2f9e7ae55
Update GraphQL instrumentation to match spec (#6179)
* Update GraphQL instrumentation to match spec

* add back removed method as deprecated

* revert accidental change

* change method order
2022-06-17 14:14:19 +03:00
Trask Stalnaker 84aa843b60
Fix javaagent jar not being found when making release (#6183)
* Sync

* Fix

* More small updates

* Fix
2022-06-17 09:54:49 +03:00
OpenTelemetry Java Bot 8687fc6de4
Update version to 1.16.0-SNAPSHOT (#6180) 2022-06-16 14:47:27 -07:00
Trask Stalnaker 9d628d13c4
Update change log (#6176)
* Update change log

* Add one more
2022-06-16 13:17:44 -07:00
Lauri Tulmin b4a1e2e9ee
Fix ClassCastException in JDBC instrumentation (#6088)
* Move DbInfo to boot loader

* add comment

* add test

* spelling
2022-06-16 12:09:24 -07:00
Ago Allikmaa fae88de680
Implement Apache DBCP2 datasource metrics (#6175)
* Apache DBCP2 datasource metrics

* Fix issues from PR

* Add readme for autoinstrumentation
2022-06-15 15:00:46 -07:00
Trask Stalnaker 1e439e73d3
Update to OpenTelemetry SDK 1.15.0 (#6170) 2022-06-14 09:44:42 -08:00
Lauri Tulmin 36788c4910
Fix vaadin latest dep tests (#6173) 2022-06-14 09:00:49 -08:00
Lauri Tulmin 91dcad68bd
Run tests with play 2.4 (#6145)
* Run tests with play 2.4

* restore comment
2022-06-14 12:10:53 +03:00
Trask Stalnaker 0bdf26af51
Release workflow simplifications (#6169)
* Release workflow simplifications

* Remove now unused workflow

* Fix

* Remove prerelease support
2022-06-14 10:29:56 +03:00
dependabot[bot] cc30b5218b
Bump com.gradle.plugin-publish from 1.0.0-rc-2 to 1.0.0-rc-3 (#6167)
Bumps com.gradle.plugin-publish from 1.0.0-rc-2 to 1.0.0-rc-3.

---
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-06-13 19:38:01 -07:00
dependabot[bot] 52f6e24780
Bump com.gradle.enterprise from 3.10.1 to 3.10.2 (#6168)
Bumps com.gradle.enterprise from 3.10.1 to 3.10.2.

---
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>
2022-06-13 19:37:38 -07:00
jack-berg 9b8f74515a
Rename p.r.j.memory.max to p.r.j.memory.limit (#6161)
* Rename p.r.j.memory.max to p.r.j.memory.limit

* Fix build
2022-06-13 13:17:04 -07:00
Lauri Tulmin 3726c54c40
Enable read timeout test for reactor netty (#6156) 2022-06-13 13:16:42 -07:00
Lauri Tulmin 8d89904e86
Enable read timeout test for armeria (#6155) 2022-06-13 13:14:02 -07:00
Lauri Tulmin 1c388d46fc
Revert workaround for a spock bug (#6154) 2022-06-13 13:12:45 -07:00
Lauri Tulmin b992e894bc
Run tests with latest play mvc (#6157)
* Run tests with latest play mvc

* restart build

* spotless
2022-06-13 13:02:15 -07:00
Lauri Tulmin 46b7273483
Fix vaadin latest dep tests (#6146)
* Fix vaadin latest dep tests

* trigger build
2022-06-08 22:02:40 +03:00
Lauri Tulmin 71e19d83e4
Show correct runnable name in spring scheduling actuator (#6140)
* Show correct runnable name in spring scheduling actuator

* spotless
2022-06-08 13:34:55 +03:00
Lauri Tulmin 091197a128
Allow specifying a comma separated list of extensions (#6137)
* Allow specifying a comma separated list of extensions

* update doc

* typo

* Update examples/extension/README.md

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-06-08 13:34:37 +03:00
Lauri Tulmin 532e08fdfe
Fix struts latest dep tests (#6143) 2022-06-07 10:52:17 -07:00
dependabot[bot] a9cc02a677
Bump com.gradle.common-custom-user-data-gradle-plugin from 1.7 to 1.7.2 (#6141)
Bumps com.gradle.common-custom-user-data-gradle-plugin from 1.7 to 1.7.2.

---
updated-dependencies:
- dependency-name: com.gradle.common-custom-user-data-gradle-plugin
  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-06-07 08:54:09 +03:00
ET aca80bee40
Make gRPC metadata available to AttributeExtractors (#6125)
* Allow GrpcTelemetryBuilder to be customized to add Extractors, etc

* fixup! Allow GrpcTelemetryBuilder to be customized to add Extractors, etc

* Call GrpcRequest.setMetadata() in TracingClientInterceptor.start()

* stop spotless from complaining

* Checkstyle satisfaction

* Spotless

* Suggestions (#6)

* Suggestions

* Apply suggestions from code review

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-06-03 12:51:12 +03:00
Lauri Tulmin cd2e11a9d6
Add instrumentation for JAX-RS 3.0 (#6136)
* Add instrumentation for JAX-RS 3.0

* set min java version to 11 for jax-rs 3.0

* exclude broken version

* fix muzzle range

* include correct api

* fix muzzle

* fix muzzle

* remove generics

* share test code
2022-06-03 12:49:14 +03:00
Lauri Tulmin 157ab7f754
Implement Oracle UCP connection pool metrics (#6099)
* Implement Oracle UCP connection pool metrics

* add additional instrumentation name

* change asserting no metrics reported after shutdown
2022-06-02 22:47:04 -07:00
jack-berg cbf5bc31da
Add jvm cpu metrics (#6107)
* Add jvm cpu metrics

* Spotless

* PR feedback
2022-06-02 17:30:49 -07:00
jason plumb f1a746dca5
Add tomcat-jdbc connection pool metrics instrumentation (#6102)
* add tomcat-jdbc connection pool metrics instrumentation

* use duration

* code review comments

* remove unnecessary awaits

* udpate supported-libraries.md

* add comment about weakmap

* add sleeps for safety
2022-06-02 16:18:07 -07:00
Alexander Schwartz 0274fc844c
Instrumentation for jboss-logmanager getMdcCopy() (#6111) (#6112)
This allows, for example, in JSON logs to have the MDC to contain span and trace information.
2022-06-02 15:15:28 -07:00
jason plumb ee90c7c716
Change play instrumentation name to play-mvc and restructure dirs (#6106)
* restructure play instrumentation dirs

* change instrumentation name from play -> play-mvc

* Revert "change instrumentation name from play -> play-mvc"

This reverts commit 2174e0935f.

* spring-mvc names
2022-06-02 12:48:36 -07:00
jason plumb 30710ba294
Refactor DbConnectionPoolMetricsAssertions (#6101)
* refactor the DbConnectionPoolMetricsAssertions for improved readability and code reuse

* Middle ground option

* factor out duplicate verification

* address PR comments.

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-06-02 12:47:02 -07:00
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