Commit Graph

543 Commits

Author SHA1 Message Date
Anuraag Agrawal 5bba5d8482
Update to latest snapshot (#1331)
* Update to latest snapshot

* Update to latest snapshot

* instrumentation-api

* spotless
2020-10-06 17:47:41 +09: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
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
Anuraag Agrawal f2194a928c
Update to latest snapshot. (#1304) 2020-10-04 19:41:10 -07:00
Mateusz Rzeszutek c7fc26188d
Remove instrumentation (and tooling) specific properties from Config (#1286) 2020-09-30 11:27:06 -07:00
Anuraag Agrawal 210c669643
Remove AgentSpecification (#1291) 2020-09-30 17:34:29 +09:00
Mateusz Rzeszutek 08f34d00b3
Allow vendor distribution to provide default configuration (#1243) 2020-09-29 15:02:16 -07:00
Mateusz Rzeszutek 9e591bb01a
Refactoring Config into @AutoValue POJO (#1254) 2020-09-28 22:08:45 -07:00
Trask Stalnaker 8954f222c0
Update to the latest opentelemetry-java 0.9.0-SNAPSHOT (#1266) 2020-09-26 20:44:28 -07:00
Pavol Loffay 8ed4ef55c8
Support otlp_span and otelp_metric exporter config names (#1253)
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2020-09-25 09:14:56 +09:00
Pavol Loffay a2fac7fdc1
Support multiple exporters via OTLP_EXPORTER config (#1242)
* Support multiple exporters via OTLP_EXPORTER config

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2020-09-23 15:17:52 -07:00
Pavol Loffay bb50fe7883
Fix package name in javaagent-tooling tests (#1244)
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2020-09-23 15:35:47 +03:00
Mateusz Rzeszutek 3d030288d2
Muzzle should fail on unimplemented abstract methods (#1193)
* Muzzle should fail on unimplemented abstract methods

* Muzzle should fail on unimplemented abstract methods

* Muzzle should fail on unimplemented abstract methods

* Muzzle should fail on unimplemented abstract methods

* Update javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/muzzle/Reference.java

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

* Muzzle should fail on unimplemented abstract methods

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-09-23 07:38:58 +03:00
Anuraag Agrawal 9635a5e84f
Force flush after finishing lambda function. (#1204)
* Force span flush after lambda invocation.

* Force flush after finishing lambda function.

* bleh

* Better revert

* Accessor

* OpenTelemetrySdkAccess
2020-09-17 14:26:24 +09:00
Mateusz Rzeszutek d95235476e
Logback MDC auto-instrumentation gets muzzled and does not work (#1208)
* Logback MDC auto-instrumentation gets muzzled and does not work

* Update instrumentation/logback/logback-1.0.0/auto/src/main/java/io/opentelemetry/instrumentation/auto/logback/v1_0_0/LoggingEventInstrumentation.java

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

* Logback MDC auto-instrumentation gets muzzled and does not work

Moved UnionMap to internal package

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-09-16 14:31:47 +03:00
Anuraag Agrawal 912a159c19
Update to latest SDK snapshot. (#1202) 2020-09-15 17:49:10 +09:00
Anuraag Agrawal a9f0e21bfe
Support injecting resources into classloader and use it in aws-sdk-2.… (#1172)
* Support injecting resources into classloader and use it in aws-sdk-2.2 instrumentation.

* Use URL for duplication check instead of reading content and inject URLs directly instead of reading to byte array first.

* Remove getResource
2020-09-15 17:38:20 +09:00
Trask Stalnaker 221deb1f98
Fix test logging (#1194) 2020-09-13 21:13:11 -07: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
Anuraag Agrawal 16b7f5b345
Move AgentClassLoader out of public API. (#1182)
* Move AgentClassLoader out of public API.

* Move tests too

* Keep auto-api on bootstrap classpath.
2020-09-10 14:56:20 +09:00
Jakub Wach 7080bdb9a4
spring mvc3 - proper span name in case of sec fail (#718) (#1122) 2020-09-09 10:08:28 +03:00
Anuraag Agrawal 5289520203
Fix groups / base name for javaagent artifacts (#1173) 2020-09-09 09:38:29 +03: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
Mateusz Rzeszutek 70a06ef086
Fix a bug when FieldBackedProvider uses a map and value is set to null (#1177) 2020-09-09 14:10:17 +09:00
Anuraag Agrawal 5c86bcc20d
Update SDK dependency to released 0.8.0 (#1162)
* Update SDK dependency to released 0.8.0

* Update exporter

* Fix fake-backend proto reference
2020-09-03 17:09:51 +09:00
Richard Startin a012143ac0 don't cache classloaders which can be skipped by name (DataDog/dd-trace-java#1732) 2020-09-01 10:31:24 -07:00
Tyler Benson e2aca0f378 Add muzzle reference detection for invokedynamic calls. (DataDog/dd-trace-java#1712) 2020-09-01 10:31:24 -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
Anuraag Agrawal 770502eed9
Merge exporter auto config into javaagent-tooling. (#1120)
* Merge exporter auto config into javaagent-tooling.

* Update javadoc
2020-08-30 11:07:48 +09:00
Nikita Salnikov-Tarnovski e20cba57c2
Telemetry auto version (#1112)
* Provide telemetry.auto.version

* Report instrumentation library version

* Rename class

* Format
2020-08-27 23:16:17 +03:00
Mateusz Rzeszutek 2203a37771
Log current thread id and name as span attribute (#1093) 2020-08-27 10:12:51 -07:00
Ying cfd111981b
create metricexporterfactory by default (#1098) 2020-08-26 19:59:20 -07: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 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 88eef8934e
Small ReferenceCreator cleanup (#972) 2020-08-16 10:13:10 -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 f46ba88c29
Rename library-api artifact to instrumentation-api (#969) 2020-08-13 22:43:39 -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 bf9c160570
Rename javaagent modules (#952) 2020-08-12 22:50:14 -07:00