Commit Graph

265 Commits

Author SHA1 Message Date
Anuraag Agrawal f2f3624d17
Inject span context into log4j2 2.13.2+ context. (#735) 2020-07-21 18:49:13 -07:00
Helen Y 86c438b154
Remove final from local variables (#732)
* Remove final from local variables
2020-07-20 13:53:34 +09:00
Anuraag Agrawal d8355c672d
Docs for writing new instrumentation... (#652)
* Docs for writing new instrumentation
2020-07-19 14:21:19 +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
Anuraag Agrawal 2dfb355332
Support user agent in khttp (#719) 2020-07-17 09:47:32 -07:00
Munir Abdinur 3662cee7ec
Create instrumentation-core apache-httpclient-4.0 (#694) 2020-07-16 20:00:26 -07:00
Nikita Salnikov-Tarnovski 9f1ffbe38c
Remove attribute `span.origin.type` (#712) 2020-07-16 10:00:45 -07:00
Nikita Salnikov-Tarnovski 0e2a85c6dd
Add support for WithSpan.kind() (#711) 2020-07-16 17:14:12 +03:00
Trask Stalnaker f2022556a7
Make sure that filter chain always runs (#705) 2020-07-16 07:22:38 +03: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
Trask Stalnaker 043d8ab836
Fix muzzle failure (#696)
* Fix muzzle failure

* comment
2020-07-15 06:30:59 +03:00
Munir Abdinur 53eca7bccc
[2] Create instrumentation-core:spring:spring-webflux-5.0-core (#639) 2020-07-13 09:44:41 -07: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 8fa37618a0
Kafka context propagation is configurable for consumer as well. (#656)
* Kafka context propagation is configurable for consumer as well.

`ota.kafka.client.propagation.enabled` configuration property now governs both injecting context on the producer side and reading context on the consumer side.

* Rename config property

* Revert "Rename config property"

This reverts commit 450ea8ffc7.
2020-07-10 21:46:55 +03:00
Min Kim ce14b394f7
Kubernetes java client instrumenting (#651)
* kubernetes java client support

* addressing review comments
2020-07-10 21:24:39 +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
Anuraag Agrawal 2ef6aac61c
Separate out core reactor instrumentation (#650)
* Separate out core reactor instrumentation
2020-07-09 14:48:15 +09:00
Nikita Salnikov-Tarnovski 763779e08a
Move servlet instrumentations around (#601) 2020-07-08 16:43:36 -07:00
Trask Stalnaker fedd805a44
Fix response header capture (#649) 2020-07-08 08:29:02 +03:00
Sergei Malafeev b78abac82c
#598 Rename "tags" to "attributes" (#645) 2020-07-07 21:03:41 -07:00
Anuraag Agrawal 8f3b7565b0
Shade AWS instrumentation library when using in agent (#644)
* Shade AWS instrumentation library when using in agent

* Cleanup and doc

* spotless
2020-07-08 12:36:55 +09: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
Sergei Malafeev 9a5954a8ff
#593 Remove HttpClientTest.READ_TIMEOUT_MS (#635)
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
2020-07-07 08:24:42 +03:00
Nikita Salnikov-Tarnovski d09fa8a943
propagate context across thread pools (#638)
* propagate context across thread pools

* Revert spotbugs plugin version bump
2020-07-07 07:23:45 +03:00
Anuraag Agrawal 924a8fd9b0
Remove unused classes from reactor instrumentation (#641) 2020-07-07 13:04:24 +09:00
Trask Stalnaker 4f48cf6565
Remove response -> request context store (#630)
* Simplify response to request context store

* Remove response to request context store

* Fix test
2020-07-05 14:39:38 +03:00
Trask Stalnaker 10e917bfa9
Better JMS span names (#626) 2020-07-02 10:31:31 -07: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
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
Trask Stalnaker b3dd5a020b
Simplify grizzly instrumentation, Part 2 (#618) 2020-06-30 20:02:19 -07:00
Trask Stalnaker e2a0504bb2
Simplify grizzly instrumentation, Part 1 (#604) 2020-06-30 17:44:11 -07:00
Richard Startin 9e28828cb5 Handle kafka tombstones (DataDog/dd-trace-java#1622) 2020-06-30 11:15:50 -07:00
Tyler Benson 4a943c8411 Use Spotless for formatting (DataDog/dd-trace-java#1619) 2020-06-30 11:15:48 -07:00
Richard Startin b558c50229 Add missing classloader matchers for expensive matchers (DataDog/dd-trace-java#1617) 2020-06-30 11:13:22 -07:00
Richard Startin cab03e0580 Remove anonymous class from spring webmvc-3.1 (DataDog/dd-trace-java#1611) 2020-06-30 11:13:21 -07:00
Laplie Anderson 45dc02d964 Fix Spring handler mapping affecting character encoding (DataDog/dd-trace-java#1595) 2020-06-30 11:13:20 -07: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 77654a44bc
Always translate HTTP status code to Status (#606)
* Translate HTTP status code to Status
2020-06-30 08:27:52 +09:00
Anuraag Agrawal be0c966854
Map gRPC status to OTel status. (#609) 2020-06-29 13:32:06 -07:00
Nikita Salnikov-Tarnovski 3418ebf6f7
More module renames (#610) 2020-06-29 13:28:39 -07:00
Trask Stalnaker f37c1abe11
Fix JerseyClient sporadic test failure (#603) 2020-06-29 08:07:29 +03:00
Trask Stalnaker 1411c38ba4
Fix khttp sporadic test failure (#591) 2020-06-28 12:08:06 -07:00
Nikita Salnikov-Tarnovski de1fb295cb
Now publish all instrumentations as well. (#565)
* Now publish all instrumentations as well.

Changed groupId to `io.opentelemetry.instrumentation`.
Removed `opentelemetry` from auto-exporters' artifactIds.
Some instrumentations will need moving around to have better names, e.g. servlets. Should I do it right away?

* Polish

* Unify names of published artifacts

* Renamed some modules

* Fix CI config

* Rename project-reactor back to reactor
2020-06-27 08:57:24 +03:00
Nikita Salnikov-Tarnovski bfd7f4428d
Propagate full Context while processing http server requests (#573)
* Propagate full Context while processing http server requests
2020-06-26 20:13:12 +03: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
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
Nikolay Martynov 84d4e24989 Upgradle gradle to 6.5 (DataDog/dd-trace-java#1589) 2020-06-23 14:08:46 -07:00