Commit Graph

2128 Commits

Author SHA1 Message Date
Mateusz Rzeszutek afee828846
Use metrics batch API in connection pool instrumentations (#6231)
* Use metrics batch API in connection pool instrumentations

* Fix vibur muzzle

* Fix vibur muzzle
2022-07-05 13:47:15 +02:00
jason plumb f3f2e61542
Add api dep on "io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi" (#6254) 2022-07-04 10:21:39 +02:00
jason plumb f38939134c
Correct spelling of opentelemetry-exporter-logging (#6253) 2022-07-01 21:09:04 +03:00
Lauri Tulmin 6534dd4d51
Aws sdk2 sqs context propagation (#6199) 2022-07-01 09:24:45 -07:00
Lauri Tulmin ae2a908256
Run tests with dubbo3 (#6247)
* Run tests with dubbo3

* remove muzzle limit

* fill peer name on dubbo 3
2022-07-01 08:14:23 -07:00
Trask Stalnaker 701ed54311
Use "class loader" instead of "classloader" consistently in docs and comments (#6236)
* Use "class loader" consistently instead of classloader

* Java comments too

* Fix bad merge
2022-06-30 14:57:07 -07:00
Will Li 661af204d9
add runtime metrics for buffer pool (#6177)
* add runtime metrics for buffer pool

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

* update based on comments

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

* update based on comment

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

* add missing unit test

Signed-off-by: Cuichen Li <cuichli@cisco.com>
2022-06-28 13:31:54 +03:00
Lauri Tulmin 30248684d1
Capture enduser.id in servlet instrumentation (#6225)
* Capture enduser.id in servlet instrumentation

* delete TomcatAdditionalAttributesExtractor

* spotless

* spotless
2022-06-27 21:03:54 -07:00
Trask Stalnaker 4f7c2416fd
Fix deprecated gradle warnings (#6221) 2022-06-27 10:22:58 -07:00
Trask Stalnaker 8fac01e736
Enable error prone's UnusedVariable check (#6217)
* Enable error prone's UnusedVariable check

* Spotless
2022-06-27 10:55:27 +02:00
Trask Stalnaker ca3664613f
Fix gwt groupId (#6215) 2022-06-25 06:09:15 +02:00
Mateusz Rzeszutek 8a83844245
Log a warning when GlobalOpenTelemetry#resetForTest() is called (#6212) 2022-06-24 13:38:38 -07:00
Mateusz Rzeszutek dc6833afab
Fix GWT latestDepTest (#6213) 2022-06-24 11:57:35 +02:00
Trask Stalnaker e9bb03173b
Update azure-sdk instrumentation (#6194) 2022-06-23 12:29:56 -07:00
Ago Allikmaa ba912bc382
Implement C3P0 connection pool metrics (#6174)
* C3P0 connection pool metrics

* Use PooledDataSource instead of specific implementation

* Add C3P0 readme

* RuntimeException in case of underlying SQLException

* Use ISE instead of RuntimeException
2022-06-20 14:21:54 +03:00
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
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
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
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 532e08fdfe
Fix struts latest dep tests (#6143) 2022-06-07 10:52:17 -07: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
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
Trask Stalnaker 6c5170c788
Fix the build (#6084) 2022-05-23 22:14:55 -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 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