Trask Stalnaker
b5fbf90977
Extract instrumentation api module ( #884 )
2020-08-09 22:52:33 -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
Trask Stalnaker
1c43615de7
Fix tests on newly released grpc version 1.31.0 ( #839 )
2020-07-29 23:22:04 -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
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
d96a771dd0
Update to otel-java 0.6.0 ( #662 )
...
* Working against otel-java 0.6.0-SNAPSHOT
* Muzzle fix
* Better comment
* Now works with otel-java 0.6.0
* Fix muzzle
2020-07-11 09:10:28 +03:00
Nikita Salnikov-Tarnovski
b77fb267f3
Gradle warnings ( #659 )
...
* More gradle warnings fixes
* Disable javadoc where it is definitely not needed
* Polish
2020-07-10 07:57:54 +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
Anuraag Agrawal
be7841ca33
Use gRPC Status for thrown exceptions too and remove redundant legacy… ( #615 )
...
* Use gRPC Status for thrown exceptions too and remove redundant legacy status attributes.
2020-07-01 12:22:09 +09:00
Anuraag Agrawal
be0c966854
Map gRPC status to OTel status. ( #609 )
2020-06-29 13:32:06 -07:00
Anuraag Agrawal
874b157fe5
Newline between license and package. ( #581 )
2020-06-25 13:31:16 -07:00
Nikita Salnikov-Tarnovski
9a52f6708e
Gradle dependencies cleanup ( #556 )
...
* Bootstrap fixed
* Tooling fixed
* Testing fixed
* All instrumentation tests pass
* All tests pass
* Fix test
* Muzzle workaround
* Muzzle fix
* Update instrumentation/trace-annotation/trace-annotation.gradle
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-06-24 12:01:14 +03:00
Trask Stalnaker
82a1b35828
Update otel api instrumentation module name ( #551 )
...
* Update otel api instrumentation module name
* Remove vbeta subpackage
Co-authored-by: Nikita Salnikov-Tarnovski <gnikem@gmail.com>
2020-06-22 16:42:55 +03:00
Tyler Benson
1b29184e7c
Make rootDir usage consistent ( DataDog/dd-trace-java#1518 )
2020-06-11 10:14:02 -07:00
Trask Stalnaker
35d4f61854
Remove printlns that were accidentally committed ( #459 )
2020-05-31 06:30:38 +03:00
Tyler Benson
3bb17e1c3c
Remove deprecated usage from internal instrumentation ( DataDog/dd-trace-java#1441 )
2020-05-26 11:54:55 -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
64b9585306
Fix gRPC Context shading ( #297 )
2020-03-31 15:30:42 -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
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
2298885678
Merge tag 'v0.46.0' into dd-merge
2020-03-16 11:25:27 -07:00
Trask Stalnaker
0ae9ed8a48
Prevent DNS lookup by gRPC instrumentation ( #224 )
2020-03-10 14:53:04 -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
Pontus Rydin
d3246121cc
Made gRPC instrumenter compliant with semantic conventions ( #202 )
...
* Added service name and corrected span name
* Support peer address for clients
* Added server peer address resolution
* Added constants for new tag names
* Cosmetic change
* Fixed muzzle issue
* Better handling of addresses
* Addressed PR comments
2020-03-03 10:01:26 -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
f4011b63e3
Capture gRPC messages as events instead of child spans ( #185 )
...
* Capture gRPC messages as events
* Rename verification method to avoid conflicts
It's common to have a 'name' test parameter/field which then causes
conflicts with verification method of the same name 'name'.
2020-02-27 11:18:30 -08:00
Trask Stalnaker
215f611673
Update tracer names ( #151 )
2020-02-11 12:25:09 -08:00
Trask Stalnaker
faec4901d2
Set span kind and remove prior "span.kind" attribute ( #132 )
...
* Set span kind in instrumentation
* Do not set span kind attribute
* Validate span kind in tests
* Remove unused constants
2020-02-05 15:12:33 -08:00
Trask Stalnaker
2b11b37d0f
Remove trace-api artifact ( #116 )
...
* Remove unused Trace annotations
* Remove Trace annotation from benchmark code
* Remove Trace annotation from instrumentation tests
* Remove Trace annotation from smoke tests
* Remove Trace annotation from agent tests
* Remove Trace annotation from testing tests
* Remove Trace annotation from hystrix tests
* Remove Trace annotation from netty tests
* Remove Trace annotation from webflux tests
* Remove Trace annotation from reactor tests
* Remove unnecessary conditional
* Remove Trace annotation from trace annotation instrumentation
* Remove Trace annotation from akka http tests
* Remove Trace annotation from java concurrent tests
* Delete Trace annotation
* Move classes out of trace-api
* Remove trace-api artifact
* Move trace-api classes to better packages
2020-02-01 13:07:51 -08:00
Pontus Rydin
d22f38b320
Changed names of getters and removed instrumentationNames() ( #112 )
2020-01-31 10:33:24 -08:00
Trask Stalnaker
e4b8c579b2
Change netty-*, play-*, rabbitmq, ratpack, rmi, jms instrumentation to use OpenTelemetry API directly ( #102 )
...
* Fix gRPC conversion to OpenTelemetry API
* Fix Akka conversion to OpenTelemetry API
* Convert JMS to use OpenTelemetry API directly
* Convert Netty 4.0 to use OpenTelemetry API directly
* Convert Netty 4.1 to use OpenTelemetry API directly
* Convert Play 2.4 to use OpenTelemetry API directly
* Convert Play 2.6 to use OpenTelemetry API directly
* Convert Play WS 1 to use OpenTelemetry API directly
* Convert Play WS 2 to use OpenTelemetry API directly
* Convert Play WS 2.1 to use OpenTelemetry API directly
* Convert RabbitMQ to use OpenTelemetry API directly
* Convert Ratpack to use OpenTelemetry API directly
* Convert RMI to use OpenTelemetry API directly
2020-01-29 11:19:23 -08:00
Trask Stalnaker
819ca7c256
Simplify directory/module structure ( #77 )
...
* Move things up a directory
* Scripted mass update
find -type f -name "*.gradle" | xargs sed -i 's/:java-agent:/:/g'
* Remove plugin version now that it's in root module
* Update java-agent and instrumentation configs
* Misc
2020-01-22 13:55:47 -08:00