Commit Graph

5207 Commits

Author SHA1 Message Date
Nikita Salnikov-Tarnovski 3e4bb25e96
Update README.md (#1743)
Fix link
2020-11-23 20:17:43 +02:00
Trask Stalnaker 516242af70
Add doc about calling default methods from advice (#1737) 2020-11-23 15:50:12 +02:00
Trask Stalnaker d2f064dcd4
Add static keyword to make groovy inner classes nested (#1734)
* Add static keyword to make groovy inner classes nested

* Too much

* A bit less

* Spotless
2020-11-23 15:43:42 +02:00
Trask Stalnaker 79f76c78ad
Move java files to java source folder and groovy files to groovy source folder (#1735)
* Move java files to java source folder

* Move groovy files to groovy source folder

* Too much

* Move another one back

* Codenarc

* Move test resource to where test is

* Spotless
2020-11-23 15:42:04 +02:00
Trask Stalnaker 5f7d1706c2
Remove special CI build dir (#1738)
* Remove special CI build dir

* Add isCI directly to spotbugs.gradle
2020-11-23 15:41:45 +02:00
Trask Stalnaker 308a8f9b0f
Consistent equals implementations (#1736)
* Consistent equals implementations

* Use direct equals where previous behavior
2020-11-23 15:41:31 +02:00
Trask Stalnaker 19e85bbca7
Fix for no propagators being installed (#1730) 2020-11-22 09:56:18 -08:00
Nikita Salnikov-Tarnovski 3185abac10
Add example of creating custom vendor distribution (#1621) 2020-11-21 11:00:53 -08:00
Trask Stalnaker 081e142718
Rename grizzly-client instrumentation (#1709)
* Rename grizzly-client instrumentation
2020-11-21 10:51:45 -08:00
John Watson e9821e9cd1
Directly port the java-runtime-metrics module over from otel-java. (#1720)
* Directly port the java-runtime-metrics module over from otel-java.

* java 8 cleanups

* Make consistent with oshi module

* Bump mockito and assertj versions

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-11-21 10:51:03 -08:00
Trask Stalnaker e18a4d1038
Fix spring-webmvc testLatestDeps (#1723) 2020-11-21 09:21:14 +02:00
Ago Allikmaa e5f0779d1a
ByteBuddy tasks no longer resolve dependencies at config time. (#1715) 2020-11-20 19:24:52 -08:00
Sergei Malafeev 4b3bbf6612
add baggage propagator to default propagators (#1545) 2020-11-20 09:56:01 -08:00
Sergei Malafeev f0feefc4b2
update SystemMetrics according to spec update (#1705) 2020-11-20 09:54:31 -08:00
dependabot[bot] 2ba278489e
Bump nick-invision/retry from v2.1.0 to v2.2.0 (#1686)
Bumps [nick-invision/retry](https://github.com/nick-invision/retry) from v2.1.0 to v2.2.0.
- [Release notes](https://github.com/nick-invision/retry/releases)
- [Changelog](https://github.com/nick-invision/retry/blob/master/.releaserc.js)
- [Commits](https://github.com/nick-invision/retry/compare/v2.1.0...fb3bca3fb54f6488d7508c8d1eeb64b94efd5a93)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-20 15:12:45 +02:00
Trask Stalnaker 238e2ddca5
Rename propagation modules (#1706)
* Rename propagation modules

* Fix test
2020-11-20 15:05:30 +02:00
Trask Stalnaker 55a6a858f7
Rename opentelemetry-api instrumentation module (#1707) 2020-11-20 15:01:53 +02:00
Trask Stalnaker c3e1a321d2
Fix MongoDB testLatestDeps (#1703)
* Fix MongoDB testLatestDeps

* Codenarc
2020-11-20 09:34:25 +02:00
Anuraag Agrawal 7bfb6b6dbd
Update to SDK 0.11.0 (#1690) 2020-11-19 19:37:49 -08:00
Jeff Yemin d093a561b9
Report only known collection names in MongoClientTracer (#1625) (#1662)
* Report only known collection names in MongoClientTracer (#1625)

* Use allow-list of commands that are known to use collection name as the value of the command
* Special-case getMore command, which uses a different field for the collection name

* Add create, drop, and createIndexes to list of commands with collection name as their values
2020-11-19 16:26:27 -08:00
Trask Stalnaker 2738018d9d
Remove typed spans (#1696) 2020-11-19 13:28:36 -08:00
Jeff Yemin 65a6293714
Improve command scrubber in MongoClientTracer (#1587) (#1663)
* Improve command scrubber in MongoClientTracer (#1587)

* Don't scrub the command field value at all if it's a string
* Use JsonWriter to improve efficiency of the scrubber
* If available, user JsonWriter.Builder.maxLength to limit size of the query string
2020-11-19 13:21:29 -08:00
Nikita Salnikov-Tarnovski dca64662f6
Build and publish snapshot on merge (#1695) 2020-11-19 12:07:29 -08:00
Trask Stalnaker e092e87d6b
Remove disabled by default servlet instrumentation (#1684) 2020-11-19 11:22:02 -08:00
Trask Stalnaker d183692699
Enable checkstyle type var naming rule (#1666) 2020-11-19 11:00:31 -08:00
Vladimir Šor a4e6d9322d
Fix dependencies for testLatestDeps to work. (#1683) 2020-11-19 10:59:22 -08:00
Nikita Salnikov-Tarnovski bd52a5f428
Remove scala from runtime dependencies (#1694) 2020-11-19 20:05:02 +02:00
Trask Stalnaker 0eede40d06
Improve consistency of struts with existing tests (#1665)
* Improve consistency of struts with existing tests

* spotless
2020-11-19 19:19:39 +02:00
Nikita Salnikov-Tarnovski 95083614a8
Build and publish artifacts as a single step (#1679)
This avoids restoring gradle cache twice, thus speeding up the workflow
2020-11-19 17:20:17 +02:00
Trask Stalnaker 80b068b459
Instrument java.servlet.Filter directly (#1606)
* Instrument filter directly

* Remove some additional ignores

* Fix OncePerRequestFilter not being instrumented itself
2020-11-18 19:59:28 -08:00
Trask Stalnaker cecdfc2cd0
Update instrumentation names to be consistent (#1671)
* Update instrumentation names to be consistent

* Remove amqp from rabbitmq package name
2020-11-18 19:53:31 -08:00
Nikita Salnikov-Tarnovski 3c195f3273
Limit latest test version for Apache HttpClient 2.0 (#1676) 2020-11-18 14:57:58 +02:00
Anuraag Agrawal eab3697660
Make commits field non-required since we don't populate it for manual cherrypicks. (#1675) 2020-11-18 13:22:22 +02:00
Sergei Malafeev da9502ce84
add b3multi propagator (#1647)
* revert support for b3_single and b3 (multi) propagator

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

* add b3multi, default for b3 is single

Signed-off-by: Sergei Malafeev <sergei@malafeev.org>
2020-11-18 09:47:43 +02:00
Trask Stalnaker 2e51003900
Enable checkstyle overload method ordering rule for Google Java Style (#1656) 2020-11-17 14:41:14 -08:00
Mateusz Rzeszutek cea28356c6
Remove some no longer needed muzzleCheck() methods (#1660)
* Remove some no longer needed muzzleCheck() methods

And add muzzle references to log4j 2.13.2 instrumentation
2020-11-17 14:40:33 -08:00
Nikita Salnikov-Tarnovski a446d7ea22
Prevent bootstrap classes from being included into agent classloader (#1646) 2020-11-17 13:31:41 -08:00
Mateusz Rzeszutek 1a23ac3027
Standardize instrumentation names in InstrumentationModules (#1648)
* Standardize instrumentation names in InstrumentationModules

* rename gradle modules:
  * vertx-3.0 to vertx-web-3.0
  * spark-web-framework-2.3 to spark-2.3
* add JavaDoc describing the naming rules to InstrumentationModule
2020-11-17 13:30:28 -08:00
Vladimir Šor 3dbab606c7
Autoinstrumentation for Struts2 actions (#1628)
* Struts PoC

* Instrument ActionInvocation to get correct timings. Refactor to use latest o11y SDK and API.

* Fix license header.

* Revert accidental Gradle configuration change.

* First passing test for struts instrumentation.

* Cleanup

* Convert Struts test to HttpServerTest.

* Fix Spotless formatting issues.

* Manage scope properly in Struts advice. Use existing handlerSpan method to assert struts handler span detection. Make Struts controller behave similarly with other HttpServerTest implementations.

* Rename method.

* Update server span name when path params are used.

* Struts PoC

* Instrument ActionInvocation to get correct timings. Refactor to use latest o11y SDK and API.

* Fix license header.

* Revert accidental Gradle configuration change.

* First passing test for struts instrumentation.

* Cleanup

* Convert Struts test to HttpServerTest.

* Fix Spotless formatting issues.

* Manage scope properly in Struts advice. Use existing handlerSpan method to assert struts handler span detection. Make Struts controller behave similarly with other HttpServerTest implementations.

* Rename method.

* Update server span name when path params are used.

* Account for GStrings in asserted values.

* Use Groovy friendly Assert.

* Giving up on getting to work user-friendly assertion messages. Moving controller to a package, as ognl inside struts can't handle classes with no packagaes.

* Make codeNarc happy.

* Make spotless happy.

* Rename struts-2 to struts-2.3. Move autoinstrumentation to javaagent sub-folder to accommodate for library.

* Use tracer() instead of TRACER and other minor tweaks.

* Nicer way for asserting values returned from a method call.

* Fix formatting.
2020-11-17 20:45:49 +02:00
Nikita Salnikov-Tarnovski 0dc4760f8f
Generate opentelemetry-javaagent "-all" artifact during "assemble" (#1645)
* Generate opentelemetry-javaagent "-all" artifact during "assemble"

* Update javaagent/javaagent.gradle

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

* Update CONTRIBUTING.md

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-11-17 17:25:43 +02:00
Nikita Salnikov-Tarnovski ab53f0ba9f
Remove default aws credentials lookup (#1659)
It leads to a lot of warnings on any developer machine without AWS credentials configured. And CI, where AWS credentials actually matter, uses explicit env variables anyway.
2020-11-17 16:29:33 +02:00
Trask Stalnaker b35c0b28cc
Java 7 and CircleCI cleanup (#1654)
* Java 7 and CircleCI cleanup

* Bring back and increment version instead
2020-11-17 10:36:23 +02:00
Trask Stalnaker 6d5ec329d6
Enable checkstyle for google style guide (#1641) 2020-11-16 18:46:59 -08:00
dependabot[bot] 6e9ccfc39d
Bump nick-invision/retry from v1 to v2.1.0 (#1642)
Bumps [nick-invision/retry](https://github.com/nick-invision/retry) from v1 to v2.1.0.
- [Release notes](https://github.com/nick-invision/retry/releases)
- [Changelog](https://github.com/nick-invision/retry/blob/master/.releaserc.js)
- [Commits](https://github.com/nick-invision/retry/compare/v1...0bbc6bd3b0ad09abe4b1041bc3df6fc2446f4151)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-16 13:24:01 -08:00
Nikita Salnikov-Tarnovski f0a4049b52
Add support for Reactor Netty's HttpClient (#1601)
* Add support for Reactor Netty's HttpClient

* Format

* Update instrumentation/reactor-netty-0.9/src/main/java/io/opentelemetry/javaagent/instrumentation/reactor_netty/ReactorHttpClientInstrumentation.java

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>

* Convert to InstrumentationModule

* Cleanup

* Rename module

* Polish

* Format

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2020-11-16 12:07:51 +02:00
Anuraag Agrawal d435da4638
Update to Gradle 6.7 and use new toolchains feature for testing on Ja… (#1627)
* Update to Gradle 6.7 and use new toolchains feature for testing on Java versions.

* Update docs

* Add back sum

* Use GitHub test JDK for toolchain.

* Use maxJavaVersionForTests for default test version when set.

* Fix RMI

* Fix configs

* Go back to rule

* Extract variable for default Java version.
2020-11-16 10:29:36 +02:00
Anuraag Agrawal 9ac34bce67
Prepare a single test bootstrap jar at top level. (#1635)
* Prepare a single test bootstrap jar at top level.

* Apply suggestions from code review

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

* Add comment

* Use buildDir instead of build

* Testing SDK also in bootstrap

* Remove sdk from testing bootstrap loader

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2020-11-16 11:25:40 +09:00
Trask Stalnaker 8e48aa2025
Add problem statement (#1639) 2020-11-14 22:56:07 -08:00
Anuraag Agrawal 53529d3028
Use released 0.10.0 in smoke test containers. (#1634) 2020-11-14 15:27:28 -08:00
Pavol Loffay b4326d91ac
Add Bytebuddy agent builder customizer SPI (#1613) 2020-11-13 11:21:40 -08:00