Commit Graph

5256 Commits

Author SHA1 Message Date
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
Nikita Salnikov-Tarnovski f3559de4a3
Cap latest supported version for Spring Data JPA (#1522) 2020-10-29 10:24:27 +02:00
Anuraag Agrawal fd03a4b1e1
Replace ContextStore for context bridge with a custom context storage… (#1493)
* Replace ContextStore for context bridge with a custom context storage provider.

* Handle context mapping at storage layer.

* Cleanup

* Add interop test

* Small comment

* No threads

* Groovy
2020-10-29 15:42:50 +09: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
Nikita Salnikov-Tarnovski 4959b7eb34
Fix property name for latest Spring MVC (#1516)
Cap latest supported version for Spring Data JPA
2020-10-28 22:28:19 +02:00
Mateusz Rzeszutek 9bb13bd8f0
Fix Redisson latestDep tests (#1507)
* Fix Redisson latestDep tests

* spotless

* Add comment
2020-10-28 16:18:13 +01:00
Trask Stalnaker 58c78ec7d0
Fix test latest deps build (#1503) 2020-10-27 15:48:58 -07:00
Mateusz Rzeszutek 35dc9071ef
Log normalised full statement in Redis instrumentations (#1441)
* Log normalised full statement in Redis instrumentations (jedis, lettuce, redisson)
2020-10-27 14:29:47 -07:00
Trask Stalnaker f046e598c6
Add context root to the front of the route in the span name (#1418)
* Add application root to span name

* Reduce duplicate context lookups

* Use servlet path as route

* Test against jetty instrumentation

* Add JAX-RS context path test

* Fix JAX-RS 1.0 span names
2020-10-27 14:21:10 -07:00
Nikita Salnikov-Tarnovski dddd921f45
Fix publishing permissions (#1501) 2020-10-27 21:12:56 +02:00
Mateusz Rzeszutek d3c39228c6
Couchbase instrumentation should store normalized queries as db.statement (#1462)
* Couchbase instrumentation should store normalized queries as db.statement

* Fix inaccurate version comments
2020-10-27 18:15:27 +01:00
Sergei Malafeev d2813c838d
Add system metrics (#1309)
Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
2020-10-27 08:48:36 -07:00
Nikita Salnikov-Tarnovski 54a85f7501
More test fixes (#1495) 2020-10-27 16:56:39 +02:00
Nikita Salnikov-Tarnovski 39bdba7204
Fail PR check if workflow failed (#1498) 2020-10-27 16:56:13 +02:00
Anuraag Agrawal 1b91a7c279
Fix build breakage due to post-merge conflict. (#1496) 2020-10-27 14:12:49 +02:00
Jakub Wach 3a81c52d2b
Wrappers for AWS lambda tracing (#1471)
* wrappers for AWS lambda instrumentation

* code review changes

* code review changes
2020-10-27 09:55:31 +02:00
Trask Stalnaker 5bed579286
Apply spotless (#1492) 2020-10-27 09:38:32 +02: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
Nikita Salnikov-Tarnovski 459dbf6ac9
Building snapshot version needs all tags (#1484) 2020-10-26 18:55:34 +02:00
Mateusz Rzeszutek 01f40867ce
Apache Geode instrumentation should store normalized queries as db.statement (#1455)
* Apache Geode instrumentation should store normalized queries as db.statement

* spotless
2020-10-26 14:01:43 +02:00
Nikita Salnikov-Tarnovski 3db872e50f
Fix net.peer.* setting for Cassandra 4.+ (#1482) 2020-10-26 13:49:25 +02:00
Anuraag Agrawal 8650bd7bda
Copy in release build workflow from opentelemetry-java (#1450)
* Copy in release build workflow from opentelemetry-java

* Fixes

* spot
2020-10-26 09:24:02 +02:00
Trask Stalnaker 7244dbf188
Remove unnecessary overrides (#1477) 2020-10-25 21:46:14 -07:00
Trask Stalnaker 3565775b00
Format groovy (#1475)
* Apply Intellij format to groovy

* spotless
2020-10-26 11:47:12 +09:00
Nikita Salnikov-Tarnovski d033ed594f
Review our usage of gradle cache (#1474)
* Experiments

* Experiments

* Experiments

* Update nightly.yaml

Trying to populate remote cache

* Experiments

* Better cache and snapshot publishing in GHA

* Read-only remote cache for PRs
2020-10-25 22:06:21 +02: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
Vadim Shaigorodskiy 3cf2a3504f
Replace `print` with log messages. (#1447)
* Replace `print` with log messages.

* Add `slf4j` compile time dependency to the `javaagent-exporters.logging` module
* Replace `System.out.println` with log.debug messages

Fixes: #1328

* Replace `debug` with `info`

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* Use `getKey` to log key.

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2020-10-23 21:27:28 +03:00
Nikita Salnikov-Tarnovski 17576bba35
Increase connection timeout for http client tests (#1467) 2020-10-23 21:16:29 +03:00
Vadim Shaigorodskiy a0ad3e31c8
Replace `net.*`, `rpc.*`, `enduser.*` with constants (#1459) 2020-10-23 09:55:06 -07:00
Vadim Shaigorodskiy 96eb67de6f
Replace `"messaging.operation"` with the constant (#1457) 2020-10-23 09:54:33 -07:00
Nikita Salnikov-Tarnovski b683a6c417
Temporary fix for broken nightly build (#1454) 2020-10-22 21:15:47 +03:00
Mateusz Rzeszutek 50990a7c17
Cassandra instrumentations should store normalised CQL queries as db.statement (#1427)
* Move `DbSystem` to package `...instrumentation.api.db`
* Move `SqlNormalizer` to `javaagent-api`  package ...api.db.normalizer
* Refactor Cassandra tests so that they use testcontainers (and run on Java 11)
* Implement Cassandra statement normalization
2020-10-22 17:56:06 +02:00
Ioannis Mavroukakis 9b91236775
ensure all published artifacts have a groupId (#1438)
* ensure all published artifacts have a groupId

* put exporters in to the javaagent group

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-10-22 13:33:16 +03:00
Anuraag Agrawal 26e4200030
Remove mistaken inline = false from Armeria instrumentation (#1451) 2020-10-22 17:46:39 +09:00
dengliming 05830654d3
Update README.md (#1445) 2020-10-22 10:10:41 +03:00
Nikita Salnikov-Tarnovski 6438d1d8f9
Proper scope handling for Resteasy instrumentations. (#1442)
* Proper scope handling for Resteasy instrumentations.

* Format
2020-10-22 10:09:46 +03:00
Ago Allikmaa 6875faa3a0
Fix HttpURLConnection instrumentation on WebLogic (#1439) 2020-10-22 09:48:53 +03:00
Vadim Shaigorodskiy 9e8d663ba4
Remove apache httpclient version (#1446)
* Remove version from `apache-httpclient` instrumentation

Fixes: #1260

* Remove version from all instrumentation names and add instrumentation name to `spring-web`

Fixes: #1260
2020-10-22 14:22:44 +09:00
Nikita Salnikov-Tarnovski 7d77b2dc37
Prefer mavenCentral over jcenter (#1440)
* Prefer mavenCentral over jcenter

* Skip broken version for muzzle
2020-10-21 18:59:29 +03:00
Pavol Loffay 137df965ac
Make muzzle task depend on instrumentation project runtimeclasspath (#1408)
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
2020-10-21 11:46:48 +03:00
Nikita Salnikov-Tarnovski 9c97941580
Update build-grpc-smoke-dist.yaml (#1437)
Fix description
2020-10-21 11:45:37 +03:00
Anuraag Agrawal a6e0e27ad4
Remove usage of Contexts from grpc instrumentation. (#1426)
* Fix grpc instrumentation cannot be applied due to muzzle error and add smoke test.

* Add workflow for building smoke test image

* Revert debug logging

* Java versions
2020-10-21 09:58:45 +09:00
Mateusz Rzeszutek f077b23c9f
Lettuce 5.1 instrumentation should log normalised commands as db.statement (#1405) 2020-10-20 14:57:23 -07:00
Nikita Salnikov-Tarnovski a5475b23a4
Update grpc-netty version (#1428) 2020-10-20 14:56:30 -07:00
Trask Stalnaker 8954823b90
Fix span name populated by JAX-RS instrumentation (#1425)
* Fix span name populated by jaxrs instrumentation

* fix
2020-10-20 15:34:10 +03: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
Nikita Salnikov-Tarnovski a5aba2d8f5
Use proper case for muzzle skip version check (#1420) 2020-10-19 11:49:50 -07:00
Ioannis Mavroukakis 191370657a
capture mongodb database name as mongo-db.name attribute instead of client description (#1419) 2020-10-19 10:52:50 -07:00
Ioannis Mavroukakis df2b6638fe
ipv6 support for modified-URL-like (#1403)
* ipv6 support for modified-URL-like

* add a "pure" v6 address to the tests

* wrap the regex pattern

* individually comment the regex parts
2020-10-19 17:30:50 +03:00