Commit Graph

5441 Commits

Author SHA1 Message Date
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
Trask Stalnaker bc507ced12
Fix play span name (#1416) 2020-10-19 17:23:30 +03:00
Jamal Fanaian 69ea2f7491
Add operation and collection attributes for MongoDB spans (#1398)
* Add mongodb attributes for operation and collection

* Switch to using SemanticAttributes.MONGODB_COLLECTION

* Remove unused imports

* Fix import order

* Fix formatting

* Update tests to keep more readable closure syntax

* Run spotlessApply
2020-10-19 09:20:46 +03:00
Trask Stalnaker 9e37231662
Remove MoreAttributes (#1417) 2020-10-19 14:38:26 +09: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
Nikita Salnikov-Tarnovski 29ec067ef5
Actually use requested number of versions to test muzzle (#1396) 2020-10-16 11:16:04 -07:00
Trask Stalnaker 6a4d3fca58
Update exporter property names to reflect 0.9.0 release (#1399) 2020-10-16 10:52:59 -07: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
Anuraag Agrawal 30e75c6d6d
Add server interceptor to end in javaagent because they are run in reverse order. (#1383) 2020-10-14 16:50:14 -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
Nikita Salnikov-Tarnovski 34d6cc5f60
Update ga-requirements.md (#1378)
Check off already done things.
2020-10-13 10:09:15 +03:00
Nikita Salnikov-Tarnovski f23ad29187
Messaging convention reviewed (#1297)
* Kafka reviewed

* Kafka Streams reviewed

* JMS reviewed

* RabbitMQ reviewed

* Format

* Format

* Polish

* Add comments

* Update parents as per spec proposal

* Cleanup

* Remove Operation enum

* muzzle

* Fix build

* Polish

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-10-13 09:16:58 +03:00
Trask Stalnaker 480147307a
Revert broken png file (#1377) 2020-10-12 20:13:37 -07:00
Trask Stalnaker 6218f6a998
Fix running tests locally (#1365) 2020-10-11 22:52:16 -07:00