Trask Stalnaker
7d46c336b0
Update lettuce-5.0 to Instrumenter API ( #3125 )
2021-05-31 07:49:25 -07:00
Trask Stalnaker
c1c052318b
Move more type instrumentations to top-level classes ( #3118 )
2021-05-28 17:24:19 -07:00
Anuraag Agrawal
ed88cca533
Migrate from spotbugs to errorprone ( #3122 )
...
* Migrate from spotbugs to errorprone
* Fix hashtable
* try-with-resources
* Fix from merge
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-05-28 14:23:40 -07: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
Trask Stalnaker
df0d028a32
Remove db.connection_string from redis instrumentation ( #3094 )
2021-05-26 23:13:55 -07:00
Trask Stalnaker
c8ecd9a619
Add response type parameter to db attributes extractor ( #3093 )
...
* Add response type parameter to DbAttributesExtractor
* AutoValue
* ResultSet
2021-05-26 23:13:33 -07:00
Mateusz Rzeszutek
d755654c29
[WIP] Add peer.service to Instrumenter API ( #3050 )
...
* [WIP] Add peer.service to Instrumenter API
* Move PeerServiceAttributesExtractor to javaagent-api and use reflection to add it
* Finish PeerServiceAttributesExtractor
* Fix tests
* Add peer.service to apache-httpclient-5.0, jedis-1.4, lettuce-4.0
2021-05-25 15:31:41 +02:00
Trask Stalnaker
e7ef5ba927
Update lettuce-4.0 to Instrumenter API ( #3068 )
2021-05-24 09:25:56 -07: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
Nikita Salnikov-Tarnovski
3ecce72298
Replace embedded Redis server with testcontainers in tests ( #3011 )
...
* Replace embedded Redis server with testcontainers in tests
* Update instrumentation/lettuce/lettuce-5.0/javaagent/src/test/groovy/LettuceReactiveClientTest.groovy
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-05-17 09:57:13 +03:00
Trask Stalnaker
85522cb2ed
Avoid loading advice classes in agent class loader ( #3008 )
...
* Lettuce 5.0
* Lettuce 4.0
* Ratpack
* Cassandra 4.0
* Grizzly
* KHttp
* External annotations
* Test
* Jdbc
* Method instrumentation
* OTel annotations
2021-05-16 20:07:20 -07: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
Trask Stalnaker
10db083e77
Update to OTel API/SDK 1.2.0 ( #2945 )
...
* Update to OTel API/SDK 1.2.0
* TCP.IP -> tcp_ip
* Fix smoke tests
2021-05-10 10:14:07 -07: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
9bd028f767
Remove unnecessary genericness ( #2797 )
2021-04-14 00:01:28 -07:00
Trask Stalnaker
25dd2cf194
Verify span kind in all tests ( #2715 )
2021-04-05 12:57:48 -07:00
Mateusz Rzeszutek
1406855bb7
Revert "Prevent duplicate telemetry when using both library and auto instrumentation ( #2661 )" ( #2689 )
2021-04-01 16:11:15 -07:00
Mateusz Rzeszutek
30434696ae
Prevent duplicate telemetry when using both library and auto instrumentation ( #2661 )
...
* Prevent duplicate telemetry when using both library and auto instrumentation
* Add unit test
* Fix Oshi tests
* Fix couchbase 3.1 tests
2021-03-31 10:57:04 -07:00
Trask Stalnaker
97d58d7ff4
Use class literals where possible ( #2669 )
2021-03-31 07:45:29 +03:00
Lauri Tulmin
4ad9ed5c32
Reimplement finding open ports ( #2629 )
2021-03-25 10:41:20 -07:00
Anuraag Agrawal
2fd933b578
Support Lettuce 6 ( #2589 )
...
* Add support for Lettuce 6
* Finish
* Remove unnecessary null check
2021-03-18 12:21:47 +09:00
Mateusz Rzeszutek
ae23b97ec4
Move and rename NetPeerUtils ( #2548 )
...
* Move and rename NetPeerUtils
* Rename NetPeerUtils to NetPeerAttributes; inject instance instead of using a global var
* Rename SpanAttributeSetter to AttributeSetter (might be used to set on AttributesBuilder in the future, who knows)
* Deprecate default BaseTracer constructor: library instrumentations are supposed to inject all dependencies, the javaagent should explicitly pass globals
* fix compilation failure
* Remove peer.service customization from library instrumentation
2021-03-16 13:50:19 +01:00
Anuraag Agrawal
cf6d9deb4e
Extract library instrumentation for lettuce 5.1 ( #2533 )
2021-03-10 10:03:53 +09:00
Mateusz Rzeszutek
fe4d95a689
Refactor BaseTracer#onError() method (and unwrapThrowable()) ( #2513 )
...
* Refactor BaseTracer#onError() method (and unwrapThrowable())
Also remove the deprecated BaseTracer(Tracer) constructor.
* Update BaseTracer javadoc
* fix tests
* Code review comments
2021-03-08 15:08:26 +02:00
Anuraag Agrawal
94872b1ced
Move DB helpers to instrumentation-api ( #2511 )
...
* Move DB helpers to instrumentation-api
* Fix gradle config
* Remove legacy
2021-03-08 12:32:36 +09:00
Trask Stalnaker
62f2611486
Update instrumentation names ( #2433 )
2021-03-01 19:34:25 -08:00
Trask Stalnaker
5c1a432c54
Update old name ( #2440 )
2021-03-01 15:43:49 -08:00
Mateusz Rzeszutek
163062d13e
Remove deprecated end() & endExceptionally() methods from BaseTracer ( #2424 )
2021-03-01 18:14:30 +01:00
Mateusz Rzeszutek
fd55ce226a
Refactor DatabaseClientTracer (in preparation for low-cardinality span names) ( #2398 )
...
* Refactor DatabaseClientTracer (in preparation for low-cardinality span names)
* spotless
2021-02-26 15:36:24 +01:00
Mateusz Rzeszutek
0949b7feee
Fix tests that verify experimental span attributes ( #2415 )
...
Some of the modules that add experimental span attributes didn't have the flag turned on for tests, which caused them to fail.
2021-02-25 15:01:39 +01:00
Trask Stalnaker
b4c8354b56
Hide non-specd attributes behind experimental flag ( #2376 )
2021-02-24 12:33:21 -08: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
Trask Stalnaker
23945d97e9
Publish lettuce and mongo common ( #2148 )
2021-02-01 13:26:08 +09:00
Mateusz Rzeszutek
c61f3f2949
Use a single configuration property for db.statement sanitization ( #2125 )
...
* Use a single configuration property for db.statement sanitization
* spotless
2021-01-29 16:02:15 +09: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
Pavol Loffay
077d8b64f6
Move common matchers to tooling/bytebuddy/matcher and ignore matchers to tooling/matcher ( #1965 )
2021-01-10 12:35:53 -08:00
Anuraag Agrawal
3b88bb75ae
Use SemanticAttributes for DbSystem ( #1991 )
2021-01-07 18:59:56 -08: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
3b8827b8ab
Update to SDK 0.12.0 ( #1830 )
...
* Update to SDK 0.12.0
* Update error message to the current world.
* Bump referenced smoke test versions
* fixes
* dependency hell
* Suppress unused call
* Bump missed smoke tests
* Bump image, bump smoke tests gRPC version
2020-12-07 17:16:47 +09:00
Trask Stalnaker
4cbfb361e1
Use Context more in DatabaseClientTracer ( #1836 )
2020-12-07 09:15:15 +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
a2770c311e
Don't use ConfigUtils outside of AgentTestRunner tests ( #1796 )
...
* NetPeerUtilsTest
* RedisCommandNormalizerTest
* InstrumentationModuleTest
* HttpClientTracerTest
* Normalize test config properties
* Create ConfigBuilder in instrumentation-api
* Keep config properties compatible with SDK
2020-12-01 16:52:08 -08:00
Trask Stalnaker
26f254b10d
Create javaagent dirs for all instrumentations, part 2 ( #1794 )
2020-11-28 22:26:49 -08:00
Trask Stalnaker
41bd489a77
Format groovy files ( #1793 )
2020-11-28 21:22:14 -08:00
Trask Stalnaker
5f263644da
Create javaagent dirs for all instrumentations ( #1668 )
...
* Create javaagent dirs for all instrumentation
* Add note about kotlin coroutine library instrumentation
* Feedback
2020-11-28 21:04:16 -08:00
Mateusz Rzeszutek
9a64a628ea
Make instrumentations non final ( #1752 )
...
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-11-26 11:22:25 -08:00
Mateusz Rzeszutek
50c8ab499d
Remove no longer needed helperClassNames() methods ( #1755 )
2020-11-24 20:50:32 -08:00
Anuraag Agrawal
7bfb6b6dbd
Update to SDK 0.11.0 ( #1690 )
2020-11-19 19:37:49 -08:00
Trask Stalnaker
cecdfc2cd0
Update instrumentation names to be consistent ( #1671 )
...
* Update instrumentation names to be consistent
* Remove amqp from rabbitmq package name
2020-11-18 19:53:31 -08:00
Mateusz Rzeszutek
1a23ac3027
Standardize instrumentation names in InstrumentationModules ( #1648 )
...
* Standardize instrumentation names in InstrumentationModules
* rename gradle modules:
* vertx-3.0 to vertx-web-3.0
* spark-web-framework-2.3 to spark-2.3
* add JavaDoc describing the naming rules to InstrumentationModule
2020-11-17 13:30:28 -08:00
Trask Stalnaker
6d5ec329d6
Enable checkstyle for google style guide ( #1641 )
2020-11-16 18:46:59 -08:00
Mateusz Rzeszutek
ef58ec1770
Refactor Instrumenters into InstrumentationModules - K, L, M ( #1563 )
2020-11-09 14:41:55 -08:00
Trask Stalnaker
45d1a0811a
Publish lettuce-common ( #1589 )
2020-11-09 15:04:25 +02:00
Anuraag Agrawal
d3b60a5e33
Rename TRACER to tracer() ( #1540 )
2020-11-02 20:49:51 -08:00
Anuraag Agrawal
c6eee70660
Update to latest snapshot. ( #1524 )
2020-10-29 18:54:09 -07:00
Mateusz Rzeszutek
e89942d430
Standardize DB query normalizer property names ( #1509 )
...
* Standardize DB query normalizer property names
And add normalizer configuration for Redis, Couchbase, Cassandra and Geode
* apply code review comments
2020-10-29 16:20:33 +02:00
Mateusz Rzeszutek
35dc9071ef
Log normalised full statement in Redis instrumentations ( #1441 )
...
* Log normalised full statement in Redis instrumentations (jedis, lettuce, redisson)
2020-10-27 14:29:47 -07:00
Anuraag Agrawal
a2dccf2316
Update to latest SDK snapshot. ( #1479 )
2020-10-26 19:29:46 -07:00
Trask Stalnaker
3565775b00
Format groovy ( #1475 )
...
* Apply Intellij format to groovy
* spotless
2020-10-26 11:47:12 +09:00
Anuraag Agrawal
f6ad05b8e3
Update to latest SDK snapshot ( #1384 )
...
* Update to latest SDK snapshot
* Use published snapshot
* Fixes
* Cleans
* spotless
* Most
* Clean
* Merge
* Temporarily remove context interop
* WIP
* Prepare for intercepting propagated span
* Bump SDK
* IDE updates
* Lots
* compileJava
* Done?
* bar
* Spot
* drugs
* Groovy--
* green for me
* Spot
* Remove grpc import
* Scrub
2020-10-25 15:14:32 +09:00
Mateusz Rzeszutek
50990a7c17
Cassandra instrumentations should store normalised CQL queries as db.statement ( #1427 )
...
* Move `DbSystem` to package `...instrumentation.api.db`
* Move `SqlNormalizer` to `javaagent-api` package ...api.db.normalizer
* Refactor Cassandra tests so that they use testcontainers (and run on Java 11)
* Implement Cassandra statement normalization
2020-10-22 17:56:06 +02:00
Vadim Shaigorodskiy
9e8d663ba4
Remove apache httpclient version ( #1446 )
...
* Remove version from `apache-httpclient` instrumentation
Fixes : #1260
* Remove version from all instrumentation names and add instrumentation name to `spring-web`
Fixes : #1260
2020-10-22 14:22:44 +09:00
Mateusz Rzeszutek
f077b23c9f
Lettuce 5.1 instrumentation should log normalised commands as db.statement ( #1405 )
2020-10-20 14:57:23 -07:00
Trask Stalnaker
1b51d4a6b1
Rename packages ( #1367 )
2020-10-11 13:54:35 -07:00
Anuraag Agrawal
5bba5d8482
Update to latest snapshot ( #1331 )
...
* Update to latest snapshot
* Update to latest snapshot
* instrumentation-api
* spotless
2020-10-06 17:47:41 +09:00
Ioannis Mavroukakis
f2de47a150
SpanAssert method names should reflect underlying Span method names ( #1307 )
2020-10-05 16:04:08 +09:00
Anuraag Agrawal
dadaac9a8c
Use 2-line license header to match SDK repo ( #1321 )
...
* Use 2-line license header to match SDK repo
* Apply change
2020-10-05 14:29:56 +09:00
Anuraag Agrawal
f2194a928c
Update to latest snapshot. ( #1304 )
2020-10-04 19:41:10 -07:00
Nikita Salnikov-Tarnovski
a654262f33
Exclude just released and supported Lettuce 6 ( #1308 )
2020-10-02 16:17:16 +03:00
Nikita Salnikov-Tarnovski
88707c3bb0
Review DB semantic conventions ( #1284 )
2020-10-01 11:17:09 -07:00
Trask Stalnaker
8954f222c0
Update to the latest opentelemetry-java 0.9.0-SNAPSHOT ( #1266 )
2020-09-26 20:44:28 -07:00
Nikita Salnikov-Tarnovski
e74ffe2e52
Remove support for java7 from buildscripts ( #1229 )
...
* Remove support for java7 from buildscripts
* Remove support for java7 from buildscripts
2020-09-23 15:40:21 +03:00
Rashmi
d2d19ef486
Lettuce 5.1 - Remove redis args from span attributes for command such as AUTH ( #1190 )
...
* Obfuscate args in db.statement for AUTH command in redis
* 💄 Changes
* Moved auth tests to separate class
* Reverted unnecessary changes
2020-09-11 17:20:34 +09:00
Jakub Wach
f033fd451a
mapping redis (jedis) connection net.peer properties ( #1158 )
2020-09-03 12:55:23 +09:00
Helen Y
c4c4558b09
More refactoring ( #1040 )
2020-08-19 15:43:48 -07:00
Anuraag Agrawal
bbfdbb39c0
Create abstraction for library dependencies for instrumentation. ( #977 )
...
* Create abstraction for library dependencies for instrumentation.
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-08-19 08:57:31 +09:00
Trask Stalnaker
7159d04b8d
Change groovy import order ( #1013 )
...
* Update docs
* Format all groovy code
* Organize imports
2020-08-15 23:19:27 -07:00
Trask Stalnaker
414213f2d1
Remove final from parameters ( #1003 )
2020-08-15 22:35:51 -07:00
Trask Stalnaker
f893ca540b
Scripted package renaming ( #988 )
2020-08-15 21:55:01 -07:00
Helen Y
bb235a0aa3
Update package name for tracers ( #991 )
2020-08-14 21:07:18 -07:00
Trask Stalnaker
f940b2d2de
Use OpenTelemetry.getTracer() shortcut ( #965 )
2020-08-14 07:11:06 +03:00
Trask Stalnaker
7818e33178
Package renaming ( #970 )
2020-08-13 20:14:46 -07:00
Trask Stalnaker
b5fbf90977
Extract instrumentation api module ( #884 )
2020-08-09 22:52:33 -07:00
Helen Y
b659ee8223
Apply new database semantic attributes ( #823 )
2020-07-28 17:31:33 -07:00
Helen Y
44fcf8115b
Update database semantic conventions ( #785 )
2020-07-28 11:55:55 -07:00
Anuraag Agrawal
f6594e1a67
Use Span.recordException for logging throwable ( #813 )
...
* Use Span.recordException
* Fix tests
* Cleanup
* Update instrumentation/jsp-2.3/src/test/groovy/JSPInstrumentationBasicTests.groovy
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
* Spotless (IntelliJ acts weird with groovy files for me :()
* Update for merge
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-07-28 14:44:42 +09:00
Helen Y
509a234ee3
Refactor net.peer.name and net.peer.ip ( #742 )
2020-07-22 20:29:12 -07:00
Helen Y
86c438b154
Remove final from local variables ( #732 )
...
* Remove final from local variables
2020-07-20 13:53:34 +09:00
Nikita Salnikov-Tarnovski
9f1ffbe38c
Remove attribute `span.origin.type` ( #712 )
2020-07-16 10:00:45 -07:00
Nikita Salnikov-Tarnovski
23ae6980d5
Lettuce and Cassandra migrated from deprecated Decarator to new Tracer ( #681 )
...
* Lettuce and Cassandra migrated from deprecated Decarator to new Tracer
* Polish
* Polish
* Split a connection specific handling out of Lettuce database client tracers.
This eliminates the need of awkward method override in the common DatabaseClientTracer.
* Muzzle fix
* Format
2020-07-15 13:37:22 +03:00
Sergei Malafeev
b78abac82c
#598 Rename "tags" to "attributes" ( #645 )
2020-07-07 21:03:41 -07:00
Nikita Salnikov-Tarnovski
a62801649f
More fixes for Gradle warnings ( #643 )
...
* More gradle deprecation warnings fixed
* More gradle deprecation warnings fixed
* More fixes
* More fixes
Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2020-07-07 15:02:07 +03:00
Sergei Malafeev
5f70b521b7
#560 Consolidate src/main/java8 and src/main/java9 into src/main/java ( #617 )
...
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
2020-06-30 16:34:59 +03:00
Anuraag Agrawal
874b157fe5
Newline between license and package. ( #581 )
2020-06-25 13:31:16 -07:00
Anuraag Agrawal
9a2a0b5de9
Add lettuce 5.2 instrumentation that uses lettuce's native tracing functionality. ( #535 )
...
* Copy Lettuce 5.0 to start 5.1 instrumentation
* Begin tracing adapter implementation
Co-authored-by: Dustin Neray <dustin.neray@gmail.com>
* Set floor to 5.2 instead
* Move around
* Finish
* Cleanups
* Instrument 5.1+ instead
* Cleanup
* 5.1
* Remove latestDepTest from lettuce-5.0 since we have a newer lettuce-5.1.
* Remove
* Remove package check
* Spotless
Co-authored-by: Dustin Neray <dustin.neray@gmail.com>
2020-06-18 18:22:45 +03:00
Tyler Benson
1b29184e7c
Make rootDir usage consistent ( DataDog/dd-trace-java#1518 )
2020-06-11 10:14:02 -07:00
Brian Devins-Suresh
67219faf25
Add version specific names to allow disabling only a specific version ( DataDog/dd-trace-java#1456 )
2020-05-26 11:54:56 -07:00
Tyler Benson
f74d249a2e
Migrate lettuce instrumentation away from deprecated finishSpanOnClose ( DataDog/dd-trace-java#1445 )
2020-05-26 11:54:55 -07:00
Tyler Benson
3bb17e1c3c
Remove deprecated usage from internal instrumentation ( DataDog/dd-trace-java#1441 )
2020-05-26 11:54:55 -07:00
Nikita Salnikov-Tarnovski
6cfe2256ef
Use java 11 for compilation ( #390 )
...
* Allow compiling of everything with java 11
* Instruct CircleCI to use java 11 be default
* Forbid running some tests on java11
* Muzzle uses ClassLoader.platformClassLoader as parent for user-space classloader
2020-05-14 15:13:30 -07:00
Brian Devins-Suresh
6f472a62a0
Fix projectreactor instrumentation to keep span context connected ( DataDog/dd-trace-java#1308 )
2020-05-14 11:49:44 -07:00
Trask Stalnaker
6d1a58d151
Merge tag 'v0.50.0' into correct-history
2020-05-05 12:41:08 -07:00