Mateusz Rzeszutek
50c8ab499d
Remove no longer needed helperClassNames() methods ( #1755 )
2020-11-24 20:50:32 -08:00
Trask Stalnaker
a5a36bd203
Use namespace for attributes put into user classes ( #1739 )
...
* Use namespace for attributes put into user classes
* Add dependency to remove duplication
2020-11-24 12:07:10 -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
Trask Stalnaker
d2f064dcd4
Add static keyword to make groovy inner classes nested ( #1734 )
...
* Add static keyword to make groovy inner classes nested
* Too much
* A bit less
* Spotless
2020-11-23 15:43:42 +02:00
Trask Stalnaker
308a8f9b0f
Consistent equals implementations ( #1736 )
...
* Consistent equals implementations
* Use direct equals where previous behavior
2020-11-23 15:41:31 +02:00
Trask Stalnaker
d183692699
Enable checkstyle type var naming rule ( #1666 )
2020-11-19 11:00:31 -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
cea28356c6
Remove some no longer needed muzzleCheck() methods ( #1660 )
...
* Remove some no longer needed muzzleCheck() methods
And add muzzle references to log4j 2.13.2 instrumentation
2020-11-17 14:40:33 -08:00
Nikita Salnikov-Tarnovski
f0a4049b52
Add support for Reactor Netty's HttpClient ( #1601 )
...
* Add support for Reactor Netty's HttpClient
* Format
* Update instrumentation/reactor-netty-0.9/src/main/java/io/opentelemetry/javaagent/instrumentation/reactor_netty/ReactorHttpClientInstrumentation.java
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
* Convert to InstrumentationModule
* Cleanup
* Rename module
* Polish
* Format
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2020-11-16 12:07:51 +02:00
Nikita Salnikov-Tarnovski
76f6b8aa49
Netty bug ( #1604 )
...
* Netty connection span leak
* Demonstrating Netty bug
* Format
2020-11-10 14:44:27 +02:00
Trask Stalnaker
087a9cbc4e
Fix dropwizard instrumentation ( #1607 )
...
* Fix dropwizard instrumentation
* Fix others too
2020-11-09 18:46:26 -08:00
Mateusz Rzeszutek
7f36dd1617
Refactor Instrumenters into InstrumentationModules - N, O, P ( #1575 )
2020-11-09 14:42:16 -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
Anuraag Agrawal
dfda406fee
Migrates to using a context when span is started ( #1525 )
...
* Return Context when starting span to preserve baggage.
Co-authored-by: Marcin Grzejszczak <marcin.grzejszczak@gmail.com>
* Use bridge
Co-authored-by: Marcin Grzejszczak <marcin.grzejszczak@gmail.com>
2020-10-29 13:50:54 +02:00
Nikita Salnikov-Tarnovski
54a85f7501
More test fixes ( #1495 )
2020-10-27 16:56:39 +02:00
Trask Stalnaker
7244dbf188
Remove unnecessary overrides ( #1477 )
2020-10-25 21:46:14 -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
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
John Bley
b34fd49682
Instrument Netty addTask to ensure complete coverage of async Runnables ( #1348 )
...
Newer versions of Netty introduce variants like execute(Runnable, boolean) which
aren't covered by the core execute(Runnable) instrumentation. Fortunately they all
flow through to addTask(Runnable), which allows us to carry the context through properly.
2020-10-09 11:43:33 -07:00
Trask Stalnaker
9605789726
Propagate full context ( #1350 )
...
* Propagate full context
* spotless
2020-10-09 12:58:42 +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
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
Nikita Salnikov-Tarnovski
beb1901f5f
Review semantic convention for Http Client spans ( #1214 )
...
* Review semantic convention for Http Client spans
* Polish
* Update instrumentation/google-http-client-1.19/src/test/groovy/AbstractGoogleHttpClientTest.groovy
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-09-18 17:52:08 +03:00
Jakub Wach
e8b54885c4
Enhance AWS DynamoDB instrumentation ( #1191 )
2020-09-18 10:48:56 +03:00
Nikita Salnikov-Tarnovski
7e41b516ee
Review semantic convention for Http Server spans ( #1207 )
...
* Review semantic convention for Http Server spans
* Polish
2020-09-16 09:52:11 +03:00
Nikita Salnikov-Tarnovski
fd07525744
Reactor bugs ( #1189 )
...
* Demonstrating bugs with Project Reactor and Reactor Netty support
* Intermediate kinda working state
* Seems to work
* Format
* Always use context active during subscription
* Fix muzzle
* Format
* Test fix
* Ignore failing test for now
* Add attribution and links to borrowed code
* Fix hook reset
* Polish
* Revert "Ignore failing test for now"
This reverts commit 1867995a
* Polish
* Fixes #1103
2020-09-15 09:57:03 +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
Helen Y
c4c4558b09
More refactoring ( #1040 )
2020-08-19 15:43:48 -07:00
Trask Stalnaker
5d2ae07797
Use startScope() on all HttpClientTracers ( #971 )
2020-08-18 16:59:30 -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
5bce79df36
Remove unnecessary getVersion overrides ( #1004 )
2020-08-16 10:13:35 -07: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
Trask Stalnaker
4062d1c9b4
Remove maxJavaVersionForTests from netty-4.0 ( #1006 )
2020-08-15 21:28:25 -07:00
Helen Y
bb235a0aa3
Update package name for tracers ( #991 )
2020-08-14 21:07:18 -07: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
Trask Stalnaker
d85cce0f62
Remove annotation instrumentation vertx dependency ( #917 )
...
* Remove annotation instrumentation vertx dependency
* Remove annotation testing dependency
2020-08-08 20:36:27 -07:00
Helen Y
1fcb807590
Refactor HttpClient typed Decorators to Tracers ( #893 )
...
* initial work
* Change OkHttp decorators to tracers
* Change AkkaHttpClient decorator to tracer
* Change ClientDecorator to GrizzlyClientTracer
* Change NettyClientDecorator to Tracer
* Change netty3.8 client decorator to tracer
* Update netty4.1 client decorator to tracer
* Override startScope in child tracers when applicable
* Change KHttpDecorator to tracer
* Change HttpUrlConnectionDecorator to tracer
* Fix muzzle validation failure for grizzly client
* Fix a ratpack client test failure
* Address feedback
* Update delegate for setPeer
* Remove nested try
* Remove unnecessary null check
* Remove asserts
* Add a comment for overriding startSpan(String spanName)
* Remove an irrelevant comment
* Throw an exception when getSetter is null
* Change onPeerConnection to static
* Change getSetter() to be abstract
2020-08-06 17:14:19 -07:00
Nikita Salnikov-Tarnovski
46dfa263af
Remove HttpServerTestAdvice ( #897 )
...
* Remove HttpServerTestAdvice
* Trying to fix
2020-08-06 13:05:55 +03: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
303d8f427f
Add response generic parameter to HttpServerTracer ( #870 )
2020-08-03 12:52:55 -07:00
Frank Spitulski
adab0efcd6
feat(tags): http ( #827 )
...
flavour, user agent, client ip
2020-07-29 23:57:12 -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
Nikita Salnikov-Tarnovski
e9215c739f
Temporary workaround for https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/787 ( #814 )
2020-07-27 20:41:58 +03:00
Nikita Salnikov-Tarnovski
91fde9a915
Update server span ( #774 )
...
* Change name on SERVER spans
* Change name on SERVER spans
* Fixes
* Fixes
* Update instrumentation/spring-webmvc-3.1/src/main/java/io/opentelemetry/auto/instrumentation/springwebmvc/DispatcherServletInstrumentation.java
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-07-24 07:46:50 +03: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
9b6b5e621f
Remove http server decorator ( #701 )
...
* Ratpack migrated from ServerDecorator
* Finatra migrated from ServerDecorator
* Play 2.3 migrated from ServerDecorator
* Play 2.4 migrated from ServerDecorator
* Play 2.6 migrated from ServerDecorator
* Polish
* Polish
* Organize imports
* Relax muzzle checks
* Ratpack version 1.4 is now supported
* Fix muzzle failures on Play
2020-07-17 20:14:19 +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
Nikita Salnikov-Tarnovski
3a4470f800
Server spans ( #634 )
...
* Milestone 1
* Netty 4.1 done
* Netty 4.0 done
* Netty 3.8 done
* All tests pass
* Test fix
* Last proper server tracers done
* Format fix
* Tests fixed
* Polish
* Polish
2020-07-07 13:48:51 +03:00
Anuraag Agrawal
1aae2bd7f0
Add extension point for HTTP client decorators to return headers gene… ( #623 )
...
* Add extension point for HTTP client decorators to return headers generically instead of only user agent.
2020-07-02 14:29:21 +09:00
Nikita Salnikov-Tarnovski
3418ebf6f7
More module renames ( #610 )
2020-06-29 13:28:39 -07:00
Nikita Salnikov-Tarnovski
fc2d679259
Propagate context ( #572 )
...
* First cut on propagating full Context instead of just Span
* First cut on propagating full Context instead of just Span
* Polish
* Polish
* Format
2020-06-26 08:18:14 +03:00
Anuraag Agrawal
874b157fe5
Newline between license and package. ( #581 )
2020-06-25 13:31:16 -07:00
Anuraag Agrawal
918d3913e3
Populate user-agent in HTTP clients. ( #540 )
2020-06-22 21:13:12 -07:00
Tyler Benson
1b29184e7c
Make rootDir usage consistent ( DataDog/dd-trace-java#1518 )
2020-06-11 10:14:02 -07:00
Brian Devins-Suresh
6727764123
Netty 3.8 had the wrong version in the config property ( DataDog/dd-trace-java#1423 )
2020-05-14 11:50:30 -07:00
Nikolay Martynov
c63b4fd9a3
Add scopes to http server response ( DataDog/dd-trace-java#1408 )
2020-05-14 11:49:44 -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
a333cfe536
Remove unused getComponentName ( #314 )
2020-04-14 13:29:33 -07:00
Trask Stalnaker
bf5b009ef8
Remove unused code ( #319 )
...
* Remove unused/deprecated code
* Remove unused code
* Remove unused return value
* Remove unnecessary throws clauses
* Remove unused code
* Remove default attribute value
* Remove unused code
* Remove unused code
* Remove unused code
* Remove unused constants
* Remove unused constant
* Remove unused parameter
* Remove unused PostMatchHook
* Remove unused constants
2020-04-14 12:29:24 -07:00
Trask Stalnaker
d24159c8d2
Merge tag 'v0.48.0' into dd-merge
2020-04-12 15:20:10 -07:00
Trask Stalnaker
c545ffa3c2
Merge tag 'v0.47.0' into dd-merge
2020-04-06 13:26:15 -07:00
Trask Stalnaker
4fe685d916
Remove component attribute ( #291 )
2020-03-29 20:32:19 -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
8fa84cb77b
Remove remaining resource.name attributes ( #278 )
...
* Remove resource.name validation from ignored tests
* Remove resource.name from test spans
* Remove unused parameter
* Change servlet dispatcher attribute name
2020-03-23 09:51:57 -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
4921fecdb1
Update instrumentation package names, K-Z ( #255 )
2020-03-19 22:19:22 -07:00
Trask Stalnaker
11566b7e5e
Better span names for netty ( #247 )
2020-03-19 19:01:32 -07:00
Trask Stalnaker
a8f86d154f
Follow common childOf verification convention ( #251 )
2020-03-19 14:09:47 -07:00
Trask Stalnaker
2298885678
Merge tag 'v0.46.0' into dd-merge
2020-03-16 11:25:27 -07:00
Trask Stalnaker
cecabe522a
Make tests pass on Windows ( #217 )
2020-03-12 19:42:21 -07:00
Han Zhang
5b1218cdb8
Update instrumentation to be compliant with HTTP semantic conventions ( #227 )
...
* Update HTTP client-side span names
* Add query and fragment to http.url for HTTP client spans
* Add query and fragment to http.url for HTTP server spans
* Update HTTP server span names to be the matched route or resource
* Use net.peer.* instead of peer.* attributes
2020-03-12 18:49:52 -07:00
Trask Stalnaker
d3a931384d
Add grouping modules ( #220 )
...
* Add mongo grouping module
* Add play and play-ws grouping modules
* Add netty grouping module
* Add jaxrs grouping module
* Add jaxrs-client grouping module
* Add jedis grouping module
* Add log4j grouping module
* Add couchbase grouping module
* Add aws-sdk grouping module
* Add apache-httpclient grouping module
2020-03-10 15:56:41 -07:00