Commit Graph

309 Commits

Author SHA1 Message Date
Mateusz Rzeszutek d89ce818ef
Implement MDC auto-instrumentation for log4j2 (#1200)
* Implement MDC auto-instrumentation for log4j2

* Implement MDC auto-instrumentation for log4j2 2.7

* Implement MDC auto-instrumentation for log4j2

* Implement MDC auto-instrumentation for log4j2

* Implement MDC auto-instrumentation for log4j2

* Implement MDC auto-instrumentation for log4j1

* Implement MDC auto-instrumentation for log4j2
2020-09-18 17:53:43 +03:00
Mateusz Rzeszutek bc8224f88f
Implement MDC auto-instrumentation for log4j1 (#1211) 2020-09-17 12:07:12 +03:00
Anuraag Agrawal 01ec2ad6a7
Add initial baseline instrumentation for AWS lambda runtime. (#1192)
* Add initial baseline instrumentation for AWS lambda runtime.

* narc

* Cleanup

* docs

* Remove sentence which is redundant with every manual instrumentation we provide.
2020-09-14 12:57:51 +09:00
Mateusz Rzeszutek 9566315914
Support RESTeasy 4.0 version in unit tests (#1082)
* Support RESTeasy 4.0 version in unit tests

* Split jaxrs-2.0 into jaxrs-2.0-common and jaxrs-2.0-testing (similar to e.g. play)
* Support newest RESTEasy version in unit tests

* Apply suggestions from code review

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

* Support RESTeasy 4.0 version in unit tests - code review follow-up

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-09-11 07:21:16 +03:00
Anuraag Agrawal 266b8b927d
Split out artifact for javaagent SPI. (#1187)
* Split out artifact for javaagent SPI.

* Fix test - exporters are loaded by test and should not be on the classpath

* Fix
2020-09-11 07:09:04 +03:00
Sergei Malafeev f0eaa5f0fa
JDK 11 HttpClient instrumentation (#1121)
* JDK 11 HttpClient instrumentation

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* get rid of semicolon

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* trace sync request

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* get rid of unnecessary gradle options

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* wip

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* end span when future completed

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* remove unneeded check

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* get rid of repeated test code

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* get rid of unneeded code

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* remove semicolon

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* implement review comments

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* Update instrumentation/httpclient/src/main/java/io/opentelemetry/instrumentation/auto/httpclient/HttpClientInstrumentation.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

* Update instrumentation/httpclient/src/main/java/io/opentelemetry/instrumentation/auto/httpclient/HttpClientInstrumentation.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

* Update instrumentation/httpclient/src/test/groovy/JdkHttpClientTest.groovy

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

* rename to java-httpclient

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* remove unused

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* follow redirects

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

* remove semicolon

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-09-10 16:04:52 +09:00
dengliming 4959aa735f
Rename spring instrumentation modules (#1125) 2020-09-10 08:41:25 +09:00
John Bley 030e9fe107
Properly track causality of kotlin suspend functions (#1168)
* Initial work on kotlin suspend functions.

Introduce new instrumentation to capture kotlin suspended coroutines
and track/update Context appropriately.  Add high-concurrency test
showing the issue and that it is solved.

* spotlessApply

* Fix spelling of continuation.

* Fix kotlin style

* Add kotlin dependencies to muzzle

* Fix muzzle in another package that pulls in java-concurrent.

* Use runBlocking instead of a sleep to finish test

* Clarify and improve comments on how/why

* Move kotlin coroutines instrumentation to top-level instrumentation module

* Properly build muzzle check for kotlin-coroutines

* Merge kotlin-testing into regular src/test rather than separate module

* Clean up attach/detach logic

* Tighten bounds and skipVersions on kotlin muzzle

* Rename fields and clean up attach logic

* Clean up types/side-effect code

* spotlessApply

* Enhance muzzle testing to properly test latest kotlin.
Required updating a few kotlin-y things to latest version to properly resolve the jvm
variant of their new multiplatform stuff.
2020-09-09 14:11:00 +09:00
Anuraag Agrawal 7202d105ba
Auto instrumentation for logback event wrapping. (#1180) 2020-09-09 14:10:02 +09:00
Anuraag Agrawal d21db7b0a6
Add a logback appender that can be added to a config to export context IDs (#1165)
* Add a logback appender that exports IDs.

* Progress

* Finish

* NOTICE
2020-09-04 14:41:41 +09:00
Tyler Benson 9f4c1ae578 Separate out Scala ForkJoinPool instrumentation from java_concurrent (DataDog/dd-trace-java#1687) 2020-09-01 10:31:23 -07:00
Tyler Benson d7d46b2ef9 Add instrumentation for Guava ListenableFutures context propagation (DataDog/dd-trace-java#1665) 2020-09-01 10:31:23 -07:00
dengliming 8415a908b5
Add support for redisson instrumentation (#1132) 2020-08-31 18:05:50 -07:00
Nikita Salnikov-Tarnovski c0cd7ca23b
Removing some gralde warnings (#1094) 2020-08-26 19:58:55 -07:00
Munir Abdinur d58eca23f8
move instrumentation-core:spring project to instrumentation (#1092) 2020-08-25 15:32:01 +09:00
Nikita Salnikov-Tarnovski 753d99658a
More attempts to fix cache misses (#1074) 2020-08-20 15:28:29 +03:00
Nikita Salnikov-Tarnovski 090cdd782b
Better local caching via burrunan/gradle-cache-action (#1054)
* Better local caching via burrunan/gradle-cache-action

* Add cached debug

* Fix yaml

* Don't push to remote cache during PR

* Polish
2020-08-19 22:00:06 +03:00
dengliming 9aa64abf63
Add version suffix for akka-context-propagation module. (#1055) 2020-08-19 16:35:19 +03:00
Anuraag Agrawal 1b9b8b49b6
Separate out testing module for mongo. (#1041)
* Separate out testing module for mongo.

* Newline
2020-08-18 14:55:56 +09:00
Anuraag Agrawal b507a2b803
Separate out shared test sources for couchbase/play-ws to another pro… (#1029)
* Separate out shared test sources for couchbase/play-ws to another project.

* git add missing files.

* Rename
2020-08-18 13:25:29 +09:00
Trask Stalnaker 6a07b173af
Rename auto exporters module (#1022) 2020-08-17 21:04:13 -07:00
Anuraag Agrawal d636364d39
Remove elasticsearch-transport-2.0 (#1024) 2020-08-17 10:51:28 -07:00
Trask Stalnaker 14ff14f2b1
Remove thread utils module (#1017)
* Remove thread-utils module

* No need for extra thread pool
2020-08-17 11:10:48 +03:00
Trask Stalnaker 4169a76fda
Remove unused / uncompilable slf4j-mdc module (#1008) 2020-08-15 21:28:07 -07:00
Anuraag Agrawal 3072efc90f
Use property to control build cache push instead of CI env variable s… (#998)
* Use property to control build cache push instead of CI env variable since many builds have that set.

* Check env instead.
2020-08-15 19:55:41 +03:00
Anuraag Agrawal 50a7ff6562
Use opentelemetry-java-instrumentation-gradle-test1 for build cache. (#996) 2020-08-15 17:50:28 +09:00
Nikita Salnikov-Tarnovski f6ec1f5cc8
Add S3 cache (#982) 2020-08-14 20:46:48 +03:00
Trask Stalnaker f46ba88c29
Rename library-api artifact to instrumentation-api (#969) 2020-08-13 22:43:39 -07:00
Trask Stalnaker bf9c160570
Rename javaagent modules (#952) 2020-08-12 22:50:14 -07:00
Trask Stalnaker 1816eb9cbe
Rename annotations module to external-annotations (#951) 2020-08-12 22:49:50 -07:00
Nikita Salnikov-Tarnovski a222676a3e
Improved smoke tests (#934)
* Preping smoke tests

* Improved smoke tests

* Make it work in Linux

* Add workflow to run tests on PR

* Build Smoke tests

* Fix PR workflow trigger

* Fix smoke test apps trigger

* Disable smoke tests in CircleCI and let them run in Github Actions only

* Fix smoke test apps docker image names

* Polish
2020-08-12 12:34:14 +03:00
Trask Stalnaker b5fbf90977
Extract instrumentation api module (#884) 2020-08-09 22:52:33 -07:00
Trask Stalnaker 2c786ab1a1
Fix WithSpan annotation instrumentation (#929) 2020-08-09 21:46:50 -07:00
Trask Stalnaker 0eda3dbd01
Avoid ClassCastException on direct SDK access (#931) 2020-08-09 11:16:04 -07:00
Nikita Salnikov-Tarnovski 3b68c82f90
Extract Akka context propagation into separate module (#911) 2020-08-07 20:24:26 -07:00
Munir Abdinur 03dce2ab2a
Create exporter starters (#815) 2020-07-27 22:19:30 -07:00
Trask Stalnaker 6508ffc889
Remove logging instrumentation (#803) 2020-07-27 18:56:25 +03:00
Trask Stalnaker 3a24611d4a
Rename kubernetes module (#804) 2020-07-27 10:46:17 +03:00
Anuraag Agrawal c3299fac30
Add instrumentation for Armeria (server) (#756)
* Add instrumentation for Armeria (server)

* Spotless

* Use end timestamp too and fix auto test by not using ClassRule

* Reduce number of less useful lambdas and add reference to useful lambda.

* Cleanup

* README

* Move package to v1_0

* No storage
2020-07-27 15:54:07 +09:00
Anuraag Agrawal f2f3624d17
Inject span context into log4j2 2.13.2+ context. (#735) 2020-07-21 18:49:13 -07:00
Anuraag Agrawal d8355c672d
Docs for writing new instrumentation... (#652)
* Docs for writing new instrumentation
2020-07-19 14:21:19 +09:00
Munir Abdinur 6d47692cd0
Add spring-autoconfigure project (#661) 2020-07-17 22:36:58 -07: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
Munir Abdinur 3662cee7ec
Create instrumentation-core apache-httpclient-4.0 (#694) 2020-07-16 20:00:26 -07:00
Munir Abdinur 53eca7bccc
[2] Create instrumentation-core:spring:spring-webflux-5.0-core (#639) 2020-07-13 09:44:41 -07:00
Min Kim ce14b394f7
Kubernetes java client instrumenting (#651)
* kubernetes java client support

* addressing review comments
2020-07-10 21:24:39 +03:00
Munir Abdinur 556baecd55
[3.2] Create spring-webmvc-3.1-core project (#648)
* [3.2] create spring-webmvc-3.1-core project

* rebase and fix conflicts

* renamed project and removed instrumentation:spring-webmv-3.1 -> instrumentation-core:spring-webmvc-3.1 dependency

* update tracer

* ws

* Update instrumentation-core/spring/spring-webmvc-3.1/src/main/java/io/opentelemetry/instrumentation/springwebmvc/SpringWebMvcServerTracer.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

* Update spring-webmvc-3.1.gradle

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-07-10 19:45:40 +03:00
Anuraag Agrawal 2ef6aac61c
Separate out core reactor instrumentation (#650)
* Separate out core reactor instrumentation
2020-07-09 14:48:15 +09:00
Munir Abdinur c79be44de2
[1] Create spring-core project in instrumentation-core/spring (#640) 2020-07-08 20:48:54 -07:00
Nikita Salnikov-Tarnovski 763779e08a
Move servlet instrumentations around (#601) 2020-07-08 16:43:36 -07:00