Trask Stalnaker
344e205720
Help out Intellij ( #3595 )
2021-07-16 15:55:30 +09:00
Anuraag Agrawal
d87f876467
Fix test metrics conversion from OTLP ( #3580 )
2021-07-16 12:06:38 +09:00
Anuraag Agrawal
d3b62de8a5
Replace most uses of TraceUtils with testRunner runWithSpan. ( #3582 )
2021-07-15 10:30:34 -07:00
Niki
016a963640
fixed potential NullPointerException if AMQP.Properties::getHeaders returns null ( #3588 )
2021-07-15 10:27:23 -07:00
Mateusz Rzeszutek
9a3734f8ed
Clean up bootstrap dependencies and build scripts ( #3570 )
...
* Clean up bootstrap dependencies and build scripts
* add evaluationDependsOn()
* Resolve configuration later
* remove the javaagentLibs config
* Fix muzzle bootstrap classpath
* Fix after rebase
* Try javaagentLibs once again
2021-07-15 18:56:36 +02:00
Mateusz Rzeszutek
e1584b5c11
Skip jedis-3.6.2 version ( #3590 )
2021-07-15 17:03:37 +03:00
Trask Stalnaker
dffb12fd44
Add missing test verification ( #3578 )
2021-07-15 09:15:12 +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
Mateusz Rzeszutek
229d8adc49
Publish shaded OpenTelemetry API and annotations for muzzle ( #3555 )
...
* Publish shaded OpenTelemetry API and annotations for muzzle
* code review
2021-07-14 15:33:07 +02:00
Lauri Tulmin
8318d5acc9
Hibernate: handle jpa EntityManager ( #3540 )
...
* Hibernate: handle jpa EntityManager
* review comments
* Update instrumentation/hibernate/hibernate-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/hibernate/SessionMethodUtils.java
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-07-14 13:25:35 +03:00
Lauri Tulmin
1d01475948
Use http 1.1 for okhttp3 tests ( #3565 )
2021-07-14 13:21:49 +03:00
Mateusz Rzeszutek
71e7d666ed
Convert OkHttp 3 to Instrumenter API ( #3538 )
...
* Convert OkHttp 3 to Instrumenter API
* code review
* Update instrumentation/okhttp/okhttp-3.0/library/src/main/java/io/opentelemetry/instrumentation/okhttp/v3_0/OkHttpAttributesExtractor.java
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-07-13 18:41:19 -07:00
Anuraag Agrawal
2e5505b872
Extract logic for bridging recognized context keys ( #3547 )
...
* Extract logic for bridging recognized context keys
* Moar
* Not private
* Not private
* Style
2021-07-14 08:24:36 +09:00
Anuraag Agrawal
9219fb6067
Only instrument builders once ( #3544 )
2021-07-14 08:24:15 +09:00
Anuraag Agrawal
df89691ca5
Move runWith logic to testrunner for use from Groovy and replace one … ( #3546 )
...
* Move runWith logic to testrunner for use from Groovy and replace one usage.
* Comment
* Fix static init order
* Fix
* Style
2021-07-13 17:14:00 +09: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
Mateusz Rzeszutek
e5bbc392c6
Use 'Tasklet' for spans that are produced by custom Spring Batch asklets ( #3528 )
2021-07-13 08:41:31 +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
Anna Nosek
e46ae82e94
Springboot propagators ( #3506 )
...
* set propagators in sdk builder
* add test for propagators
* introduce CompositeTextMapPropagator
* simplify composite TextMapPropagator creation, use SDK names for PropagationType
* Update instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/propagators/PropagationAutoConfiguration.java
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Update instrumentation/spring/spring-boot-autoconfigure/src/test/java/io/opentelemetry/instrumentation/spring/autoconfigure/propagators/PropagationAutoConfigurationTest.java
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* replace enum with string, remove unnecessary noop propagator addition
* add warning and test for unsupported value
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-07-12 21:40:09 -07:00
Anuraag Agrawal
ac85c3cbd8
Make AgentContextWrapper class private ( #3548 )
2021-07-12 15:35:04 -07:00
Anuraag Agrawal
a1b1c7452e
Inline one usage of basicSpan ( #3535 )
2021-07-12 10:02:40 -07:00
Mateusz Rzeszutek
ce047325b2
Put RocketMQ's consumer span in current context ( #3537 )
...
* Put RocketMQ's consumer span in current context
* codenarc
* code review comments
2021-07-12 11:07:30 +09:00
HaloFour
3e8d3e88bf
Update OpenTelemetry to version 1.4.0 ( #3541 )
...
* Update to OpenTelemetry 1.4.0
* Fix breaking changes with opentelemetry-api-metrics
2021-07-10 15:53:02 +09:00
Anuraag Agrawal
f601863d12
Merge Java TraceUtils into extension and switch to Instrumenter API. ( #3532 )
...
* Merge Java TraceUtils into extension and switch to Instrumenter API.
* Woah
2021-07-10 13:21:12 +09:00
Mateusz Rzeszutek
7969bdf18e
Add a small test utility that mimics Spock's 'cleanup:' block ( #3533 )
...
* Add a small test utility that mimics Spock's 'cleanup:' block
* Update testing-common/src/main/java/io/opentelemetry/instrumentation/testing/junit/AutoCleanupExtension.java
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Move to internal
* fix broken import
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-07-09 18:35:43 +03:00
Mateusz Rzeszutek
9b56fc9051
Clean up AgentElementMatchers ( #3527 )
...
* Clean up AgentElementMatchers
* remove a TODO
* moved method
2021-07-09 10:02:21 +03:00
Anuraag Agrawal
d8fbecb26f
Migrate RMI test to Java. ( #3525 )
...
* RMI Java
* Migrate RMI test to Java.
* Small clean
2021-07-09 15:02:51 +09:00
Anuraag Agrawal
c05dcf38b1
Allow RMI test to run on Java 16 ( #3524 )
...
* Allow RMI test to run on Java 16
* testJavaVersion
2021-07-09 11:26:00 +09:00
Lauri Tulmin
b9bea71627
Remove repo.gradle.org dependency ( #3522 )
2021-07-07 16:42:50 -07:00
Trask Stalnaker
9e4da754c2
Use consistent logger field name ( #3515 )
2021-07-07 10:47:46 -07:00
Trask Stalnaker
b304cc2912
Deprecate CallDepth.reset() and get() ( #3511 )
...
* Deprecate CallDepth.reset() and get()
* Don't pass CallDepth around
2021-07-07 09:24:50 -07:00
Trask Stalnaker
238427ba6a
Use new CallDepth pattern for hibernate spans ( #3510 )
2021-07-07 14:55:59 +09:00
Trask Stalnaker
dddb39b1e2
Make coreJdk property internal ( #3512 )
2021-07-07 08:23:15 +03:00
Mateusz Rzeszutek
c5ba5c3a71
Use local variable for passing CallDepth between advice enter/exit me… ( #3504 )
...
* Use local variable for passing CallDepth between advice enter/exit methods
* fix broken call depth tracking
* checkstyle
* fix javadocs
2021-07-06 12:05:14 -07:00
Alexey Zhokhov
9979bef877
JDBC instrumentation: switch to use api instead of implementation for instrumentation-api. ( #3494 )
...
* Switch to use api instead of implementation for instrumentation-api.
* Removed duplicated dependency.
2021-07-06 09:20:41 -07:00
Mateusz Rzeszutek
b9fcb6b498
Reduce CallDepth classes' API surface ( #3497 )
2021-07-06 09:24:19 +02:00
Trask Stalnaker
f5d6b39b72
Update Apache HttpAsyncClient to Instrumenter API ( #3490 )
2021-07-05 14:08:38 -07:00
Trask Stalnaker
b030b1ca10
Simpler Apache HttpClient request wrapper ( #3489 )
2021-07-05 12:53:32 -07:00
Mateusz Rzeszutek
56ba64adf8
Convert Pair class to AutoValue ( #3496 )
2021-07-05 10:23:26 -07:00
HaloFour
4500dd984b
Port AsyncSpanEndStrategy implementations to AsyncOperationEndStrategy ( #3454 )
...
* Port RxJava 2 async strategy to new interface
* Port RxJava 3 async strategy to new interface
* Port Guava async strategy to new interface
* Port Reactor async strategy to new interface
* Kick CI
2021-07-05 10:45:49 +02:00
Anuraag Agrawal
8eb24f9886
Split up build logic to plugins that can eventually be published and … ( #3474 )
...
* Split up build logic to plugins that can eventually be published and this-repo-specific stuff.
* Muzzle
* compileOnly
* Typo
2021-07-05 16:18:45 +09:00
Mateusz Rzeszutek
02ef588f68
Remove dependency on javaagent-bootstrap from javaagent-extension-api ( #3477 )
2021-07-03 11:18:53 -07:00
Trask Stalnaker
642f213c12
Remove hardcoded version ( #3470 )
...
* Remove hardcoded version
* Codenarc
2021-07-01 23:00:15 -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
Mateusz Rzeszutek
f5f2de9511
Refactor/rename BootstrapPackagesProvider and PropertySource ( #3435 )
...
* Refactor/rename BootstrapPackagesConfigurer and PropertySource
* Update comment
2021-07-01 08:26:51 -07:00
Anuraag Agrawal
3cfa086ffd
Migrate nullaway config to plugin ( #3462 )
2021-07-01 18:13:16 +09:00
Lauri Tulmin
5d6be8764e
Remove jetty-server exclude ( #3453 )
2021-07-01 09:12:26 +09:00
zmapleshine
bbd33115d1
Fix dubbo trace/span cross-process propagation ( #3442 )
...
* fix(instrument): fix dubbo client trace inject adapter.
* fix(instrument): fix dubbo client trace inject adapter.
2021-06-30 18:47:46 +03:00
GuillaumeWaignier
00b1b07684
Fix kafka Stream instrumentation ( #3438 )
2021-06-30 18:47:14 +03:00
Mateusz Rzeszutek
15ed01d4fc
Change all instrumentation names to io.opentelemetry.{libName}-{libVersion} ( #3411 )
...
* Change all instrumentation names to io.opentelemetry.{libName}-{libVersion}
* minumum supported version
2021-06-30 15:34:36 +02:00