Anna Nosek
473f16fa68
Restlet instrumentation ( #3946 )
...
* server instrumentation with first tests
* migrate to instrumenter API, move TracingFilter to library, rename module, other review refinements
* change name to 1.0 and rebase
* review, add ServerSpanNaming, create RestletTracing
* codenarc fix
* review
* fix TracingFilter behaviour on exception, inline HeadersAdapter's methods
* move instrumentation to doHandle, add StatusFilter in library test
2021-09-13 22:39:25 -07:00
Lauri Tulmin
15277cf8f5
Convert servlet instrumentation to instrumenter api ( #4078 )
...
* Convert servlet to instrumenter api
* make classes final
* Remove some tracer files
* remove xxx
* fix liberty and wildfly exception smoke test
* fix async smoke test on liberty
* Apply suggestions from code review
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* generic TextMapGetter for servlets
* not going to use http.route for servlets
* simplify
* add servlet timeout in attribute extractor
* move classes from library to javaagent
* remove unneeded dependency
* make method private
* move helper class initialization to singleton, remove helpers that don't have any methods, add shouldStart checks
* Update instrumentation/servlet/servlet-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/servlet/ServletRequestContext.java
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* add import
* rename methods that start and end spans
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-09-13 10:12:34 -07:00
Lauri Tulmin
436184002c
Bridge trace builder ( #4090 )
...
* Bridge tracer builder
* put api 1.4 bridging into separate moulde
* remove duplicate test
* remove testing dependencies
* use static import
* Update instrumentation/opentelemetry-api/opentelemetry-api-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/opentelemetryapi/trace/ApplicationTracerProvider.java
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
* rename make -> create
* replace reflection with methodhandle
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-09-13 09:30:02 -07:00
Anuraag Agrawal
10bce56cd6
Add instrumentation for Quartz 2.0 ( #4017 )
...
* Add instrumentation for Quartz 2.0
* Fix drift in comment
* Fix fix
* Comment
* Cleanup
2021-08-31 18:05:36 +09:00
Mateusz Rzeszutek
4567bc0c2f
Instrument spring-kafka batch message listeners ( #3922 )
...
* Instrument spring-kafka batch message listeners
* Update instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/InstrumenterBuilder.java
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
* fix compilation failure
* Suppress nested CONSUMER spans
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-08-27 08:02:37 -07:00
Lauri Tulmin
b5aec6a2e0
Bridge span keys defined in instrumentation api ( #3911 )
2021-08-25 20:25:37 -07:00
Lauri Tulmin
564f51c706
Hide our generated fields and methods from reflection ( #3948 )
2021-08-25 09:24:27 -07:00
Lauri Tulmin
38c8f8940c
Move helper class to spring package so that loadClass can find it ( #3718 )
...
* Move helper class to spring package so that loadClass can find it
* spotless
* Add tests
* Add comments
* remove unneeded dependency
* comments
2021-08-20 12:31:25 -07:00
Lauri Tulmin
514553eac2
Context propagation to elasticsearch-transport callbacks ( #3861 )
2021-08-19 12:59:47 +03:00
Lauri Tulmin
7a705d861e
Move SpringRestTemplateTest ( #3870 )
2021-08-19 12:58:24 +03:00
Mateusz Rzeszutek
88be2940eb
Extract common consumer-related kafka-clients parts to a new module ( #3817 )
2021-08-13 20:28:25 -07:00
Lauri Tulmin
d9080a745b
Test latest version of kafka client and streams ( #3803 )
2021-08-11 17:12:44 +03:00
Anuraag Agrawal
e92ecc02bc
Add library instrumentation for Ratpack server ( #3749 )
...
* Add Ratpack server library instrumentation
* Finish
* Back to 1.4
* Drift
* Cocaine
* Update instrumentation/ratpack-1.4/library/src/main/java/io/opentelemetry/instrumentation/ratpack/RatpackTracingBuilder.java
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Cleanup
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-08-04 16:21:36 +09:00
Lauri Tulmin
441609a0d4
Vertx http client 4 instrumentation ( #3665 )
...
* Vertx http client 4 instrumentation
* remove debugging
* rebase
2021-07-28 15:10:28 +03:00
Anuraag Agrawal
695cf0ad5f
Add library instrumentation for Apache HTTPClient 4.3 ( #3623 )
...
* Add apache httpclient 4.3 library instrumentation.
* Fixup
* Mostly done
* Finish
* Finish
* Update instrumentation/apache-httpclient/apache-httpclient-4.3/library/src/main/java/io/opentelemetry/instrumentation/apachehttpclient/v4_3/ApacheHttpClientRequest.java
Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
* Cleanup
Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
2021-07-28 12:18:45 +09:00
Trask Stalnaker
07250d3adc
Add JFR profile analyzer ( #3678 )
...
* Add JFR profile analyzer
* Spotless
* Nullable
2021-07-27 15:42:02 -07:00
Mateusz Rzeszutek
ed9e1a0cb3
Move instrumentation specific classes out of javaagent-instrumentation-api ( #3604 )
2021-07-27 12:56:59 -07:00
Trask Stalnaker
59e46477dd
Add basic jmh overhead test ( #3672 )
...
* Add basic jmh overhead test
* Move javaagent arg to gradle file
* Rename module to benchmark-overhead-jmh
* Add imports
* Add comment
* Add benchmark for noop api
2021-07-26 12:55:18 -07:00
Lauri Tulmin
4f088c7e05
Test latest version of vert.x http server ( #3621 )
...
* Test latest version of vert.x http server
* add missing files
* spotless
2021-07-23 11:00:48 +03:00
Lauri Tulmin
d7dcc70119
Rename jws-1.1 to jaxws-jws-api-1.1 ( #3653 )
2021-07-22 10:25:43 -07:00
Lauri Tulmin
fc9609d814
couchbase 3.2.0 ( #3645 )
2021-07-21 16:46:31 +03:00
Lauri Tulmin
050e675abc
Split vertx instrumentation into client and server instrumentation ( #3567 )
2021-07-18 21:15:02 +03:00
HaloFour
814239c8c0
Adds binding of attributes in methods annotated with @WithSpan ( #3188 )
...
* Add binding of span attributes for traced methods
* Spring Aspect support, memoization
* Test with attribute name from ParameterNameDiscoverer
* Refactorings, javadocs and tests
* Refactor out creating AttributeBinding to separate class
* Wrapped attribute bindings for array parameters
* Attribute binding for List and EnumSet
* Attribute binding for subclass of List with reflection helper class
* Fix test failures in JDK 8
* Attribute binding to Set<? extends Enum>
* Move attribute binding to instrumentation-annotation-support project
* Fix copypastaed missing imports in tests
* Simplify ParameterizedClass based on PR feedback and add javadocs
* Remove blank javadoc
* Switch to cache with weak keys for memoizing attribute bindings by method
* Remove binding support for EnumSet<?>
* Clean up javadoc
* Use SpanAttribute annotation from opentelemetry 1.4.0-SNAPSHOT
* Address some PR concerns
* Clean up
* Fix instrumentation dependency in Springboot
* Update documentation
* Switch javaagent dep to compileOnly per PR comment
* spotless
* Kick CI
* Rename annotation support module and packages
* Resolve SpanAttribute annotation at runtime with fallback for older OTel versions
* Remove unnecessary dependency
* Move reflection helper to annotation support module
* Remove unnecessary enum and fields from unit test
2021-07-14 13:32:07 -07:00
Nikita Salnikov-Tarnovski
cbfd7e1a02
Trying to extract codegen plugin ( #3521 )
...
* Muzzle code generation moved to a separate plugin
* Restored old MuzzleCodeGenerationPlugin to use until the new one is published
* The simplest dependency management possible
Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-07-14 17:08:47 +03:00
Mateusz Rzeszutek
c1b5c0884d
Move caffeine patching to instrumentation-api-caching ( #3559 )
2021-07-14 13:59:50 +02:00
Mateusz Rzeszutek
3d1e782fc5
Instrumentation-specific bootstrap classes ( #3495 )
...
* Instrumentation-specific bootstrap classes
* try to move bootstrap modules dependency to javaagent
2021-07-13 09:34:02 +02:00
Trask Stalnaker
d0cb08a37b
Rename javaagent-api artifact to javaagent-instrumentation-api ( #3513 )
...
* part 1
* part 2
* Undo change in examples
* Spotless
2021-07-12 21:53:49 -07:00
Alexey Zhokhov
ed02aff7b5
OpenTelemetry JDBC instrumentation library ( #3367 )
...
* Added jdbc library with ported version of OpenTracing JDBC Instrumentation.
* Gradle 7.1.
* Revert "Gradle 7.1."
This reverts commit e3df35b0
* Code style fixes.
* Code style fixes.
* Moved some JDBC utilities classes to the library module.
* javax.annotation.Nullable -> org.checkerframework.checker.nullness.qual.Nullable
* Build fix.
* Spotless fixes.
* Cache prepared statements.
* Cache connection info.
* Tracing for JDBC statement and prepared statement.
* Added some API dependencies.
* Fixed ending the span.
* Removed proxy usage.
* Cleanup.
* Implemented datasource with tracing support.
* Renamed Tracing prefix with OpenTelemetry.
* Renamed Tracing prefix with OpenTelemetry.
* Moved utilities classes to io.opentelemetry.instrumentation.jdbc.internal subpackage.
* Build fix.
* Build fix.
* Cleanup.
* Moved some shared classes to instrumentation-api module.
* Code review fixes.
* Make OpenTelemetryDriver final.
* Spotless fixes.
* Moved test classes from javaagent-unit-tests module to library module.
* Removed javaagent-unit-tests module.
* Covered OpenTelemetryDriver with tests.
* Cleanup.
* Covered OpenTelemetryDataSource with tests.
* Covered OpenTelemetryConnection with tests.
* Revert TestPreparedStatement.
* Added README.
* Build fix.
* Checkstyle fixes.
* Spotless fixes.
* Rename to build.gradle
* Fix build.gradle format.
* INSTANCE package scope.
* Documented OpenTelemetryDataSource usage.
* Renamed CheckedCallable to ThrowingSupplier.
* Update instrumentation/jdbc/library/README.md
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Update instrumentation/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriver.java
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Update instrumentation/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriver.java
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Update instrumentation/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriver.java
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Update instrumentation/jdbc/library/README.md
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Update instrumentation/jdbc/library/README.md
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Update instrumentation/jdbc/library/README.md
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Removed javaagent-api module usage.
* Removed useless checking.
* Moved javaagent test classes to testing module.
* Move common JDBC test classes to testing module.
* Spotless fixes.
* Code format.
* Moved PeerServiceAttributesExtractor back to javaagent-api module.
* Rename JavaAgentJdbcSingletons to JdbcSingletons.
* Fixed JdbcSingletons import.
* Cleanup.
* Codenarc fixes.
* Update instrumentation/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriver.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Update instrumentation/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriver.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Parse InstrumentationVersion.VERSION.
* Store major and minor version in private static fields.
* Make the datasource way a preferred way.
* Removed interceptor mode.
* Rename build.gradle -> build.gradle.kts.
* Switch to Gradle Kotlin DSL.
Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-07-01 10:35:07 -07:00
Anuraag Agrawal
fc78cd0af3
Migrate build / settings to kotlin ( #3468 )
2021-07-01 16:23:27 +03:00