Mateusz Rzeszutek
b2bc41453b
Rename some *InstrumenterBuilder classes to *InstrumenterFactory ( #4391 )
2021-10-15 14:47:32 +03:00
Lauri Tulmin
0cfc71c3c6
Support kafka streams 3 ( #4236 )
...
* Support kafka streams 3
* make thread local wider so it would work on all kafka-streams versions
* Move classes used by multiple instrumentations into bootstrap module to ensure that everybody uses the same copy of them
* spotless
* allow project as muzzle extra dependency
* add comment
* fix merge
2021-10-05 09:43:00 -07:00
Mateusz Rzeszutek
300e7dab7e
Move all Kafka library instrumenter parts to internal package ( #4284 )
2021-10-04 19:03:15 +02:00
Aleš Justin
ff0bf0a8f3
Add support for Kafka consumer and producer interceptors. ( #4065 )
...
* Add support for Kafka consumer and producer interceptors, move common Kafka code to library module.
* Apply feedback
* Apply feedback, #3 .
* Apply feedback, #4 .
* Add producer / consumer wrappers.
* Move to kafka-clients-2.6.
* Apply feedback #5 .
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-10-02 11:27:57 -07:00
Mateusz Rzeszutek
c11b96e4d0
Make it possible to use InstrumentationContext (now VirtualField) fro… ( #4218 )
...
* Make it possible to use InstrumentationContext (now VirtualField) from library instrumentation
* fix tests
* fix javadocs
* fix some more tests
* code review comments
* setIfNull, computeIfNull
2021-10-01 11:13:11 +02:00
Trask Stalnaker
3ce940548c
Experimental option to suppress messaging receive spans ( #4187 )
...
* Experimental option to suppress messaging receive spans
* Kafka streams too
* Better conditionals
* Remove oops
* Extract base class for kafka streams tests
* Spotless
2021-09-22 21:50:05 -07:00
Mateusz Rzeszutek
085066edb3
Add some testcontainers dependencies to dependencyManagement dep set ( #4185 )
2021-09-22 14:53:45 -07:00
Mateusz Rzeszutek
a66452eb2d
Fix kafka tests failing when consumer is not yet subscribed to topic ( #4189 )
2021-09-22 11:45:32 -07:00
Mateusz Rzeszutek
12d60b05d7
Rewrite kafka-clients and kafka-streams tests to use testcontainers ( #4178 )
...
* Rewrite kafka-clients and kafka-streams tests to use testcontainers
* codenarc
2021-09-21 17:47:16 +02:00
Trask Stalnaker
feebef3bd9
Restrict kafka-streams to 2.x versions for now ( #4173 )
2021-09-20 23:09:19 -07:00
Mateusz Rzeszutek
1a6294e1be
Make CONSUMER receive span a parent of CONSUMER process spans in kafka-streams ( #4151 )
2021-09-17 19:17:00 -07:00
Mateusz Rzeszutek
f14eeb0f15
Convert kafka-streams to Instrumenter API ( #4140 )
2021-09-17 09:41:13 +02:00
Mateusz Rzeszutek
836491ef5f
Make CONSUMER receive span a parent of CONSUMER process spans in Kafka… ( #4122 )
...
* Make CONSUMER receive span a parent of CONSUMER process spans in Kafka instrumentations
* Fix kafka-streams tests
* fixed imports order
2021-09-15 10:39:56 -07:00
Matthew Ho
6967484a97
Update groovy import order to match default IntelliJ ( #1708 ) ( #4047 )
...
* Update groovy import order to match default IntelliJ (#1708 )
* organized imports for .groovy files to follow default IntelliJ import settings
* updated intellij-setup.md
* Spotless
* drift
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-09-11 11:53:08 -07:00
Mateusz Rzeszutek
e30b082259
Start a CONSUMER span for Kafka poll(); and refactor spring-kafka... ( #4041 )
...
* Start a separate CONSUMER receive span for each non-empty KafkaConsumer#poll() call
* One batch receive + one batch process span in spring-kafka
* Add CONSUMER receive spans to kafka-streams too
* codenarc
* code review comments
2021-09-08 13:12:58 -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
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
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
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
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
Anuraag Agrawal
80f43b7a6a
Migrate javaagent-instrumentation to plugin ( #3328 )
...
* Migrate instrumentation.gradle to plugin
* Migrate usages
* Remove old
* Fix
* Revert example
* afterEvaluate
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-06-17 23:13:14 +09:00
Mateusz Rzeszutek
3e28b01e42
Spring Integration javaagent instrumentation ( #3295 )
...
* Spring Integration javaagent instrumentation
* codenarc
* inline gradle property
* Conditionally create CONSUMER spans instead of always INTERNAL
* merge fix
* Add attributes assertions to rabbitMq test
* minor fix
* fix javadocs
* Code review follow-up
2021-06-16 14:12:39 +03:00
Lauri Tulmin
8544fbad50
Fix kafka latest dep tests ( #3334 )
2021-06-16 14:07:47 +03:00
Trask Stalnaker
4c80c62ce7
Add unused to remaining advice classes ( #3280 )
...
* Add unused to remaining advice classes
* Add newlines for visual separation
2021-06-14 11:12:02 +09:00
Anuraag Agrawal
c358a35414
Use dependency management pattern for dependency versions ( #3113 )
...
* Use dependency management pattern for dependency versions.
* Add groovy bom too
* Update dependencyManagement/dependencyManagement.gradle.kts
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-05-28 11:32:08 +09:00
Mateusz Rzeszutek
bb8f515083
Refactor TypeInstrumentation#transformers() method ( #3019 )
...
* Refactor TypeInstrumentation#transformers() method part 1
Add TypeInstrumentation and its implementations
* Refactor TypeInstrumentation#transformers() method part 2
Use the new method in all existing TypeInstrumentation implementations
* Drift
* Spotless
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-05-18 09:50:26 +02:00
Anuraag Agrawal
fe41885ee6
Switch to colon notation for dependencies. ( #2994 )
...
* Switch to colon notation for dependencies.
* Even more cleanup
* Revert mistake
2021-05-15 15:31:06 +09:00
Anuraag Agrawal
abeca79e24
Some Gradle optimizations ( #2949 )
...
* Gradle optimizations
* Finish
2021-05-11 17:45:54 +09:00
Mateusz Rzeszutek
9c7fae3b04
Extract javaagent-extension-api from tooling & spi ( #2879 )
2021-05-06 23:30:25 -07:00
Trask Stalnaker
bd829a6494
Remove duplicate status verification ( #2710 )
2021-04-19 11:41:37 -07:00
Trask Stalnaker
d5e526b9f3
Cache config values in instrumentations ( #2681 )
...
* Cache config values in instrumentations
* Bring back defaultEnabled()
* comment
* one problem
2021-03-31 22:54:20 -07:00
Mateusz Rzeszutek
3dff44874f
Fix RestTemplateInterceptor so that it calls endExceptionally() on exception ( #2516 )
2021-03-08 09:36:47 -08:00
Mateusz Rzeszutek
72ffb3b7c5
Make BaseTracer fields private ( #2492 )
...
* Make BaseTracer fields private
By making `tracer` private we're forcing all tracer implementation to use the `spanBuilder()` utility method and pass the parent context manually.
2021-03-05 10:54:00 -08:00
Trask Stalnaker
62f2611486
Update instrumentation names ( #2433 )
2021-03-01 19:34:25 -08:00
Mateusz Rzeszutek
605485b998
Remove some deprecated BaseTracer#end(Span) usages (part 2) ( #2418 )
2021-02-26 14:09:32 +02:00
Anuraag Agrawal
000df967ce
Update to SDK 0.17.0 ( #2338 )
...
* Update to SDK 0.17.0
* Finish
* ottrace
2021-02-19 15:51:55 +09:00
Mateusz Rzeszutek
0adeb85f43
Refactor InMemoryExporter and move some of its methods … ( #2264 )
...
* Refactor InMemoryExporter and move some of its methods to spock base class & junit extension
* codenarc
* spotless
* Apply suggestions from code review
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
* fix armeria library tests
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-02-15 17:36:14 +01:00
Anuraag Agrawal
fc410706d0
Update to Sdk 0.16.0 ( #2221 )
...
* Update to 0.16.0-SNAPSHOT
* Finish
* Finish
* Update to 0.16.0
* Finish
2021-02-09 18:00:54 +09:00
Mateusz Rzeszutek
93b3a3b289
testing-common refactoring: replace direct AgentTestRunner usage with… ( #2134 )
...
* testing-common refactoring: replace direct AgentTestRunner usage with spock spec
* Updated instrumentation docs
* Fix reactor-core library tests
ReactorCoreTest was getting a tracer from GlobalOpenTelemetry before LibraryTestTrait had a change to initialize the SDK
2021-02-01 11:32:25 +01:00
Anuraag Agrawal
afdde0355b
Update to OTel 0.14.1 ( #2059 )
...
* Update SDK dependency to 0.14.1
* WIP
* Finish
* Cleanup
2021-01-18 13:02:04 +09:00
Anuraag Agrawal
8d74baa2e4
Run tests with javaagent. ( #1643 )
...
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-01-04 13:13:24 -08:00
Anuraag Agrawal
f0a6c6d772
Update SDK dependency to 0.13.0-SNAPSHOT. ( #1924 )
...
* Update SDK dependency to 0.13.0-SNAPSHOT.
* Update smoke tests
* Fix formatting
* Spot
2020-12-17 18:20:59 +09:00
Trask Stalnaker
b8b0257e33
Change kafka non-spec'd attributes ( #1904 )
...
* Change kafka non-spec'd attributes
* Move to existing config place
* Shorten name, and match api Config name
2020-12-15 08:11:48 +02:00
Mateusz Rzeszutek
f520c2cd33
Remove deprecated SpanWithScope class ( #1834 )
2020-12-05 09:48:28 -08:00
Trask Stalnaker
fa09451aea
Prefix custom attributes with instrumentation name ( #1784 )
2020-12-03 20:56:31 -08:00
Trask Stalnaker
26f254b10d
Create javaagent dirs for all instrumentations, part 2 ( #1794 )
2020-11-28 22:26:49 -08:00