Pavol Loffay
c931b1b85a
Add explicit names to metrics/trace SPI factories ( #1513 )
...
* Add explicit names to metrics/trace SPI factories
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
* Fix tests
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
2020-10-29 12:14:41 +02:00
Pavol Loffay
bdf2a91290
Rename printReferences gradle task to printMuzzleReferences ( #1517 )
...
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
2020-10-29 15:37:38 +09:00
Bogdan Drutu
21a1c65128
Remove inner class imports; avoid future imports by disabling in editorconfig ( #1489 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-26 19:30:51 -07:00
Anuraag Agrawal
a2dccf2316
Update to latest SDK snapshot. ( #1479 )
2020-10-26 19:29:46 -07: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
Sergei Malafeev
1674b46d4a
fix finding SpanExporterFactory by exporterName with underscore e.g. "otlp_span" ( #1404 )
...
* #1401 fix finding SpanExporterFactory by exporterName with underscore e.g. "otlp_span"
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
* #1401 change exporterName of "otlp_span" and "otlp_metric" only
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
2020-10-20 14:51:07 +03:00
Trask Stalnaker
57301e3fe7
Rename "integration" to "instrumentation" ( #1412 )
...
* Rename integration to instrumentation
* Revert doc changes, need to wait for release
* spotless
2020-10-19 14:36:30 +09:00
Pavol Loffay
f29763d6ef
Add SPI to configure additional bootstrap package prefixes ( #1380 )
...
This feature is useful when a large set of custom instrumentations is
using common classes from a custom package.
2020-10-16 10:27:14 -07:00
Nikita Salnikov-Tarnovski
15e0b2ff32
Run build without warnings ( #1387 )
2020-10-15 16:10:22 -07:00
Mateusz Rzeszutek
ee0e0a9697
Muzzle improvements: docs, javadocs, renamings and minor refactoring ( #1379 )
2020-10-14 16:49:51 -07:00
Trask Stalnaker
7ecc9bb37b
Rename "auto" to "javaagent" in modules ( #1370 )
2020-10-13 12:32:13 -07:00
Trask Stalnaker
1b51d4a6b1
Rename packages ( #1367 )
2020-10-11 13:54:35 -07:00
Mateusz Rzeszutek
59784a5b77
Muzzle should recognise mismatch on unimplemented abstract methods at runtime ( #1357 )
2020-10-09 15:03:32 -07:00
Pavol Loffay
3f5c644885
Add Prometheus metric exporter ( #1262 )
2020-10-09 12:06:51 -07:00
Mateusz Rzeszutek
409530629f
Refactor all tests that use Config so that they don't fail locally ( #1310 )
...
* Refactor all tests that use Config so that they don't fail locally
* Use ConfigUtils in tests for all config-related things
* Fix spotless and codenarc
* Fix spotless
* PR comments: remove unnecessary config
2020-10-08 20:01:31 +03:00
Ioannis Mavroukakis
9523f9ffe6
fix and/or ignore spotbugs errors ( #1325 )
2020-10-06 19:39:17 -07:00
Pavol Loffay
3952290511
Sort instrumentations before adding them to ByteBuddy ( #1326 )
...
* Control order of adding instrumentations to ByteBuddy
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
2020-10-06 11:14:13 -07:00
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