Trask Stalnaker
32399ea7a9
A small test cleanup ( #3014 )
2021-05-17 12:12:40 -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
Mateusz Rzeszutek
9c7fae3b04
Extract javaagent-extension-api from tooling & spi ( #2879 )
2021-05-06 23:30:25 -07:00
Mateusz Rzeszutek
e00341729f
Use Instrumenter in JMS instrumentation ( #2803 )
...
* Use Instrumenter in JMS instrumentation
And introduce messaging semantic conventions
* Code review comments
* Use Instrumenter in JMS instrumentation - code review comments
* remove useless test
* fix missing instrumentation version
* Code review comments
* Do not allow conditional delegation to SDK
2021-05-05 10:35:39 +03:00
Trask Stalnaker
bd829a6494
Remove duplicate status verification ( #2710 )
2021-04-19 11:41:37 -07:00
Mateusz Rzeszutek
078603caf5
Generate InstrumentationModule#contextStore() with muzzle ( #2775 )
2021-04-13 20:05:01 -07:00
Trask Stalnaker
410957f206
More consistent custom trace sorting in tests ( #2728 )
2021-04-07 10:29:41 -07:00
Mateusz Rzeszutek
5760cd7313
Fix JMS context propagation problems ( #2702 )
2021-04-06 08:45:17 -07:00
Nikita Salnikov-Tarnovski
fc39d87c82
Remove JCenter which is about to be sunset ( #2387 )
...
* Remove JCenter which is about to be sunset
* Fallback to JCenter for muzzle
* Fixing muzzle without jcenter
* Fixing muzzle without jcenter
* Fixing muzzle without jcenter
* Fixing muzzle without jcenter
* Fixing muzzle without jcenter
* Fixing muzzle without jcenter
* Fixing muzzle without jcenter
* Remove debug logs
* polish
2021-03-19 23:21:52 +02: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
Mateusz Rzeszutek
c18acb858e
Add BaseTracer#inject() method ( #2453 )
...
* Add BaseTracer#inject() method
And avoid using GlobalOpenTelemetry#getPropagators()
* Code review comments
2021-03-02 15:30:04 +01: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
ecf64c25f3
Remove BaseTracer#startScope() method ( #2224 )
...
* Remove BaseTracer#startScope() method
* fix compilation failure
2021-02-10 11:39:38 +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
Lauri Tulmin
22109b2719
Fix flaky spring jms test ( #2202 )
2021-02-05 16:06:09 -08:00
Lauri Tulmin
4d59fc0c81
Improve stability of jms-1.1 tests ( #2169 )
2021-02-02 15:48:02 +02: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
Sergei Malafeev
54d00026be
JMS instrumentation: do not create spans if no messages are received ( #2091 )
...
* #1989 JMS instrumentation: do not create spans if no messages are received
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
* remove the redundant else
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
* remove JmsSessionInstrumentation
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-01-25 08:42:32 +02:00
Lauri Tulmin
9825ab0afa
Instrument jsf action calls ( #2018 )
2021-01-19 21:34:41 -08: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
8d74baa2e4
Run tests with javaagent. ( #1643 )
...
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-01-04 13:13:24 -08:00
Trask Stalnaker
ca76c80820
Hardcode expected values in tests ( #1803 )
...
* DEFAULT_SPAN_NAME
* TEMP_DESTINATION_NAME
* LoggingContextConstants
* Remove unnecessary dependencies
* Hardcode expected normalized queries in tests
* Spotless
2020-11-30 09:16:59 +02:00
Trask Stalnaker
26f254b10d
Create javaagent dirs for all instrumentations, part 2 ( #1794 )
2020-11-28 22:26:49 -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
Trask Stalnaker
b683c2ff05
Convert the last two decorators to tracers and delete BaseDecorator ( #1785 )
2020-11-28 10:50:41 -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
Mateusz Rzeszutek
45646ff367
Rename TypeInstrumentation#classLoaderMatcher() to classLoaderOptimization() ( #1741 )
...
* Rename TypeInstrumentation#classLoaderMatcher() to classLoaderOptimization()
* Removed no longer needed comments & improved JavaDoc
* Improve TypeInstrumentation Javadoc
2020-11-24 14:27:58 +02: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
Nikita Salnikov-Tarnovski
3c195f3273
Limit latest test version for Apache HttpClient 2.0 ( #1676 )
2020-11-18 14:57:58 +02: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
b35c0b28cc
Java 7 and CircleCI cleanup ( #1654 )
...
* Java 7 and CircleCI cleanup
* Bring back and increment version instead
2020-11-17 10:36:23 +02:00
Trask Stalnaker
6d5ec329d6
Enable checkstyle for google style guide ( #1641 )
2020-11-16 18:46:59 -08:00
Mateusz Rzeszutek
0e83a5b56d
Refactor Instrumenters into InstrumentationModules - J ( #1562 )
2020-11-09 14:41:37 -08:00
Trask Stalnaker
71f91877ab
Fix muzzle and add missing helper classes ( #1585 )
...
* Fix muzzle
* Fix jdbc instrumentation
* Fix jms instrumentation
* Fix couchbase instrumentation
* Fix servlet instrumentation
2020-11-08 13:54:00 -08:00
Anuraag Agrawal
3d21c26632
Update to SDK 0.10.0 ( #1564 )
2020-11-05 13:17:47 -08: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
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
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
Nikita Salnikov-Tarnovski
f23ad29187
Messaging convention reviewed ( #1297 )
...
* Kafka reviewed
* Kafka Streams reviewed
* JMS reviewed
* RabbitMQ reviewed
* Format
* Format
* Polish
* Add comments
* Update parents as per spec proposal
* Cleanup
* Remove Operation enum
* muzzle
* Fix build
* Polish
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-10-13 09:16:58 +03:00
Trask Stalnaker
c739f7db6b
Remove unnecessary scopes ( #1351 )
2020-10-11 14:31:37 -07:00
Trask Stalnaker
1b51d4a6b1
Rename packages ( #1367 )
2020-10-11 13:54:35 -07:00
Trask Stalnaker
9605789726
Propagate full context ( #1350 )
...
* Propagate full context
* spotless
2020-10-09 12:58:42 +03:00
Ioannis Mavroukakis
020d445dd3
spotbugs upgrade and fixes for JMS1 tests ( #1346 )
...
* spotless upgrade and fixes for JMS1 tests
* includes missed bugs in KotlinCoroutineTests
* create spotBugs XML reports on CI, HTML locally
* use updatedCodeNarc rules with lowercase tolerance
* remove if and move bool to each property
* allow spotBugs gradle plugin to upgrade the spotbugs tool
* revert to original test
* exclude all kotlin source from spotbugs
* remove default location for spotBugs report
* do not pass null to a Span's attribute
2020-10-09 11:19:00 +03:00
Mateusz Rzeszutek
409530629f
Refactor all tests that use Config so that they don't fail locally ( #1310 )
...
* Refactor all tests that use Config so that they don't fail locally
* Use ConfigUtils in tests for all config-related things
* Fix spotless and codenarc
* Fix spotless
* PR comments: remove unnecessary config
2020-10-08 20:01:31 +03:00
Nikita Salnikov-Tarnovski
aa79224f32
Ported JMS 1.x tests to testcontainers ( #1327 )
...
* Ported JMS 1.x tests to testcontainers
* Polish
* Debug
* Fix test
* spotless
* Remove otel.trace.classes.exclude properties
* codenarc
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-10-06 09:05:51 +03: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
Trask Stalnaker
8954f222c0
Update to the latest opentelemetry-java 0.9.0-SNAPSHOT ( #1266 )
2020-09-26 20:44:28 -07:00
Sergei Malafeev
8b62c173ba
add operation name to jms span name ( #1179 )
...
* #983 add operation name to jms span name
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
* get rid of redundant method
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
2020-09-09 10:25:37 +09:00
Nikita Salnikov-Tarnovski
bc98955176
Update to latest otel-java snapshot ( #1057 )
...
* Update to latest otel-java snapshot
* Upgrade to working otel-java snapshot
* Update to latest otel-java snapshot
* Update to latest otel-java snapshot
2020-08-26 22:03:28 +03:00
Trask Stalnaker
e9b5bd48f7
Fix running single tests ( #1066 )
2020-08-19 21:17:30 -07:00
Anuraag Agrawal
5b43e328f5
Fix jms2 tests and use a separate source set for them instead of latestDepTest ( #1015 )
...
* Update JMS2 tests
* Finish
2020-08-16 18:00:41 +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
Sergei Malafeev
43e0141056
add some JMS attributes ( #963 )
2020-08-14 09:42:06 -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
275fab6ea5
Retry all tests ( #941 )
2020-08-11 00:20:47 -07:00
Trask Stalnaker
b5fbf90977
Extract instrumentation api module ( #884 )
2020-08-09 22:52:33 -07:00
Anuraag Agrawal
2ac65a67d5
Replace Spock retry with Gradle retry. ( #908 )
...
* Replace Spock retry with Gradle retry.
* Retry akka for real
* Warning
2020-08-06 17:59:40 +09:00
Trask Stalnaker
5dc2ca350a
Update config property prefix from ota to otel ( #841 )
...
* Update config property prefix from ota to otel
* more
* format
* more
2020-07-31 08:29:29 +03:00
Nikita Salnikov-Tarnovski
fcf4319aac
Faster tests ( #725 )
...
🎉
2020-07-22 10:10:34 -07:00
Helen Y
86c438b154
Remove final from local variables ( #732 )
...
* Remove final from local variables
2020-07-20 13:53:34 +09:00
Alexey Zhokhov
f3421e91a0
Remove Lombok ( #672 )
...
* Gradle 6.5.1.
* Skip download javadoc and sources automatically in IntelliJ IDEA.
* Added mavenLocal to repositories.
* Removed Lombok usage.
* Removed duplicated idea config.
* Code format.
* Removed useless usage of Objects.requireNonNull.
* Use instanceof to comparing objects.
* Code format.
* Code format.
* Fixes after merge.
* Fixed sneakyThrow exception.
* Code format.
2020-07-18 15:52:55 +03:00
Nikita Salnikov-Tarnovski
9f1ffbe38c
Remove attribute `span.origin.type` ( #712 )
2020-07-16 10:00:45 -07: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
Trask Stalnaker
10e917bfa9
Better JMS span names ( #626 )
2020-07-02 10:31:31 -07:00
Anuraag Agrawal
874b157fe5
Newline between license and package. ( #581 )
2020-06-25 13:31:16 -07:00
Tyler Benson
1b29184e7c
Make rootDir usage consistent ( DataDog/dd-trace-java#1518 )
2020-06-11 10:14:02 -07:00
Pontus Rydin
9568ba079b
Use Builder::setAttribute whenever possible ( #348 )
2020-04-27 13:51:34 -07:00
Trask Stalnaker
7f76929cd5
Rename resource name to span name ( #327 )
2020-04-16 12:13:42 -07:00
Trask Stalnaker
1f0cd54fd7
Remove copyright year from license header ( #322 )
...
* Update template
* Apply template
2020-04-15 11:24:44 -07:00
Trask Stalnaker
e8a451cbce
Remove unused service method ( #321 )
2020-04-15 10:17:04 -07:00
Trask Stalnaker
a333cfe536
Remove unused getComponentName ( #314 )
2020-04-14 13:29:33 -07:00
Trask Stalnaker
4fe685d916
Remove component attribute ( #291 )
2020-03-29 20:32:19 -07:00
Trask Stalnaker
570fa012c0
Remove service.name attribute ( #290 )
2020-03-29 20:29:15 -07:00
Trask Stalnaker
2e210683fd
Update to OpenTelemetry API/SDK 0.3.0 ( #286 )
...
* Update gradle dependencies and module name
* Replace Tracer.withSpan() with currentContextWith()
* Update inject to 0.3.0
* Update extract to 0.3.0
* More updates
* Remove distributedcontext package refs
* Update OpenTelemetry API interoperability
* No need to call setNoParent()
setParent(SpanContext.getInvalid()) should give the same result.
2020-03-28 19:38:51 -07:00
Trask Stalnaker
396baa69d6
Update OpenTelemetry API/SDK ( #257 )
...
* Update dependency version
* Change getTracerFactory to getTracerProvider
* Update some imports
* Change put to set
* Fix up bridge
* Update package names
* Update test SpanProcessor
* Remove null conditionals around setAttribute
* Update shading
* Update span context extraction
2020-03-20 14:13:55 -07:00
Trask Stalnaker
8700b2eb33
Remove span.type attribute ( #262 )
2020-03-20 13:05:00 -07:00
Trask Stalnaker
e028ed3f5c
Better span names for jms ( #240 )
2020-03-19 18:59:35 -07:00
Trask Stalnaker
2298885678
Merge tag 'v0.46.0' into dd-merge
2020-03-16 11:25:27 -07:00
Trask Stalnaker
08248e4f09
Fix link behavior ( #223 )
2020-03-10 15:08:22 -07:00
Trask Stalnaker
cba031ddcb
Rename hibernate modules ( #205 )
...
* Rename hibernate modules
* Update tracer name
* Change from gradle inheritance to composition
This will make it possible to have empty "grouping" modules, e.g.
instrumentation:hibernate.
* Introduce empty hibernate grouping module
2020-03-09 15:33:21 -07:00
Trask Stalnaker
b2db595430
Merge tag 'v0.45.0' into dd-merge
2020-03-05 21:49:39 -08:00
Trask Stalnaker
fa72243966
Change link behavior for consumers ( #198 )
2020-03-02 16:29:25 -08:00
Trask Stalnaker
701b282b17
Merge tag 'v0.44.0' into dd-merge
2020-02-29 14:30:12 -08:00
Trask Stalnaker
40e3932358
Add license headers ( #188 )
...
* Add spotless gradle plugin
* Add license headers
2020-02-27 13:24:42 -08:00
Trask Stalnaker
8ee04d54e9
Merge remote-tracking branch 'datadog/master' into dd-merge
2020-02-22 14:35:03 -08:00
Trask Stalnaker
d54f0cd31f
Make sure call depth thread local is reset ( #168 )
...
* Make sure CallDepthThreadLocalMap is always reset
* Re-order just for consistency
* Make call depth pattern more consistent
2020-02-18 13:49:15 -08:00
Trask Stalnaker
cf1623711e
Use links instead of overriding parent ( #158 )
...
Also, message receive span kind should be CLIENT.
2020-02-18 11:12:20 -08:00
Trask Stalnaker
215f611673
Update tracer names ( #151 )
2020-02-11 12:25:09 -08:00