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
Mateusz Rzeszutek
ab9c688e7a
Test nested CLIENT span suppression in library instrumentations ( #3970 )
2021-08-27 11:16:59 +02:00
Trask Stalnaker
38d5c39579
Remove invalid message header ( #3958 )
2021-08-26 08:53:21 -07:00
Trask Stalnaker
6f22d90aa6
Option to suppress controller and view spans ( #3865 )
...
* Add option to suppress controller and view spans
* Apply to all existing Instrumenters
* Introduce ExperimentalConfig
* Singleton?
* No need for lazy
2021-08-25 13:43:38 -07:00
Trask Stalnaker
20c72f3e98
Format kotlin gradle files ( #3942 )
...
* Add ktlint for kotlinGradle
* ktlint fails on wildcard imports
* Auto-format kotlin gradle files
2021-08-25 13:43:57 +09:00
Mateusz Rzeszutek
5c71d28ed7
Remove deprecated Config methods ( #3908 )
2021-08-23 16:44:54 -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
Trask Stalnaker
31f22eb4f7
Use valid Java identifiers for message keys ( #3863 )
2021-08-19 16:55:29 -07:00
Lauri Tulmin
7a705d861e
Move SpringRestTemplateTest ( #3870 )
2021-08-19 12:58:24 +03:00
Lauri Tulmin
c74853274d
Remove Nullable from methods that return non-null value ( #3843 )
2021-08-14 09:29:23 -07:00
Lauri Tulmin
6ad277c659
Check scope for null before closing it ( #3836 )
2021-08-13 16:39:28 -07:00
Trask Stalnaker
84e9d188af
Update webflux to Instrumenter API (and improvements/simplifications) ( #3798 )
...
* Update Webflux to Instrumenter API
* Change webflux handler to match other handlers
* Further simplification
* Fix Mono failure tests
* Use extractors!
* Renames
* Fix comment
* Update instrumentation/spring/spring-webflux-5.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/webflux/server/AdviceUtils.java
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-08-13 09:03:50 -07:00
Lauri Tulmin
8c89420753
Skip bad spring-rabbit version ( #3829 )
2021-08-12 08:57:28 -07:00
Trask Stalnaker
da55d98a87
Simplify webflux mono handling ( #3816 )
2021-08-12 08:54:26 -07:00
Lauri Tulmin
f4e6baf22d
Make spring webflux tests pass with strict context check ( #3811 )
...
* Make spring webflux tests pass with strict context check
* Add comment
2021-08-11 06:51:31 -07:00
Mateusz Rzeszutek
92a69c3309
Simplify shouldStart() check for SERVER & CONSUMER spans ( #3771 )
2021-08-10 21:00:34 -07:00
Lauri Tulmin
3257e18e02
Convert spring-ws-2.0 to instrumenter api ( #3801 )
2021-08-09 12:23:14 -07:00
Trask Stalnaker
bb461e5274
Fix tests on windows ( #3360 )
2021-08-09 09:23:41 -07:00
Trask Stalnaker
842ab42136
Call shouldStart for Spring handler span ( #3793 )
...
* Call shouldStart for Spring handler span
* Update server span name even if shouldStart returns false
2021-08-09 09:22:43 -07:00
Anuraag Agrawal
8cbec715ff
Fill HTTP_CLIENT_IP in ServerInstrumenter ( #3756 )
2021-08-05 13:11:30 +09:00
Mateusz Rzeszutek
ba4db4801f
Clean up concurrent advice utilities in javaagent-instrumentation-api ( #3757 )
...
* Clean up concurrent advice utilities in javaagent-instrumentation-api
* fix classloading tests
2021-08-03 09:17:19 -07:00
Mateusz Rzeszutek
f960456240
Add tests that verify that Span.current() works in spring batch listeners ( #3758 )
2021-08-03 09:17:03 -07:00
Lauri Tulmin
77dc1ecf27
Fix warning in build scripts ( #3739 )
2021-08-02 19:37:35 +03:00
HaloFour
b52fd39d8d
Port Spring Boot WithSpanAspect to Instrumenter API ( #3607 )
...
* Start porting WithSpanAspect to use Instrumenter API
* Some cleanup and refactoring
* Switch caching dependency to compile only
* Minor refactors, javadocs
* Fix instrumentation name
* Rename builder methods
* spotless
* Add request type to extract Method and WithSpan annotation, use method references
* Add comment about IntelliJ dependency workaround
* Make cache non-configurable, use AsyncOperationEndSupport directly
* Address PR comments
* Move to static factory method, method-keyed cache
2021-07-30 11:39:09 -07:00
Mateusz Rzeszutek
cbd8bb29fd
Spring web instrumenter 2 ( #3731 )
...
* Refactor spring-web library instrumentation to Instrumenter API
* errorprone
* fix typo
2021-07-30 09:28:27 -07:00
Lauri Tulmin
0689f86ed3
Fix running tests from intellij ( #3702 )
2021-07-28 10:21:19 -07:00
Trask Stalnaker
91b302a7d2
Reduce overhead of unsampled requests ( #3681 )
...
* Optimize sampled out requests
* Comment
2021-07-27 17:00:00 -07:00
Lauri Tulmin
ff5472a822
Limit number of concurrently running docker tests ( #3664 )
...
* Limit number of concurrently running docker tests
* rename heavy to testcontainers
* use shorter expression
2021-07-27 15:41:39 -07:00
Anuraag Agrawal
47be4a16b4
Convert HttpClientTest to JUnit ( #3652 )
...
* Migrate HttpClientTest to junit to allow both Java or spock tests.
* More
* Update
* Finish
* Cleanup
* Better stack
* Java 15
* Merge
* Fix name
* Cleanup
* ? extends
* Moar
2021-07-27 21:55:40 +09:00
Trask Stalnaker
e2d23cd8c1
Fix bounds check ( #3612 )
...
* Fix bounds check
* Update instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/aspects/WithSpanAspectAttributeBinder.java
Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2021-07-20 09:29:45 +09:00
Anuraag Agrawal
e0cb216610
Remove remaining usages of basic span asserts ( #3616 )
2021-07-19 10:09:44 -07:00
Trask Stalnaker
344e205720
Help out Intellij ( #3595 )
2021-07-16 15:55:30 +09:00
Anuraag Agrawal
d3b62de8a5
Replace most uses of TraceUtils with testRunner runWithSpan. ( #3582 )
2021-07-15 10:30:34 -07: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
e5bbc392c6
Use 'Tasklet' for spans that are produced by custom Spring Batch asklets ( #3528 )
2021-07-13 08:41:31 +02: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
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
9b56fc9051
Clean up AgentElementMatchers ( #3527 )
...
* Clean up AgentElementMatchers
* remove a TODO
* moved method
2021-07-09 10:02:21 +03: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
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
Mateusz Rzeszutek
b9fcb6b498
Reduce CallDepth classes' API surface ( #3497 )
2021-07-06 09:24:19 +02: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
Rashmi
15a64286e9
Fixed Semantic conventions in RabbitMQ ( #3425 )
...
* Fixed Semantic conventions in RabbitMQ
1. Constructed producer span name according to spec rule. (Removed routing key as part of span name)
2. Renamed routing key attribute(part of experiment span attributes feature) according to semantic convention
* Spring integration rabbitmq test fixed
* moved MESSAGING_RABBITMQ_ROUTING_KEY attribute out of CAPTURE_EXPERIMENTAL_SPAN_ATTRIBUTES check
2021-06-29 14:35:47 +03:00
Anuraag Agrawal
52616dd87f
Skip problematic spring-rabbit muzzle ( #3420 )
2021-06-28 18:47:39 +09:00
Anuraag Agrawal
761b9c280b
Migrate instrumentation gradle files to kotlin ( #3414 )
...
* Migrate instrumentation gradle files to kotlin
* Convert
* Muzzle
2021-06-28 17:27:12 +09:00
Anuraag Agrawal
785dc6adf2
Rename build files to build.gradle ( #3409 )
...
* Rename build files to build.gradle
* Rename smoke-tests
* Fix already broken
2021-06-25 16:10:31 +09:00
Trask Stalnaker
bcb282a220
Conform to google style guide checkstyle ( #3399 )
2021-06-24 10:53:23 +03:00
Anuraag Agrawal
deb0e255cf
Use plugins block everywhere for applying plugins ( #3386 )
...
* Use plugins block everywhere for applying plugins
* Actually it's library instrumentation
2021-06-24 11:13:35 +09:00
Mateusz Rzeszutek
02098b9353
Ignore task classes using IgnoredTypesConfigurer ( #3380 )
2021-06-23 10:15:02 -07:00