Commit Graph

5485 Commits

Author SHA1 Message Date
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
Pavol Loffay 5e568e6d06
Add classloading diagram to contributing docs (#1612) 2020-11-12 21:12:49 -08:00
Trask Stalnaker 55530ee03e
Better muzzle for external-annotations module (#1624) 2020-11-12 21:11:26 -08:00
Ago Allikmaa 995e2caee0
Update ByteBuddy to 1.10.18, adjust to new ByteBuddy gradle plugin (#1596)
* Adjust for use with ByteBuddy 1.10.18

* Fix language choices for ByteBuddy transformation.

* Remove no longer used MuzzleCodeGenerationPlugin$NoOp
2020-11-12 12:34:06 +02:00
Trask Stalnaker efe4110e27
Doc changes associated with PR #1412 (#1413)
Since doc change should wait until the next release is made.
2020-11-12 10:43:29 +02:00
David Denton d4d5cf8ad4
Add http4k to list of supported libraries (#1605)
* Add http4k to list of supported libraries

* Update with suggestions for link/note
2020-11-11 08:26:08 +02:00
Mateusz Rzeszutek 1765839d01
Simplify JDBC span names (#1533) 2020-11-10 13:34:54 -08:00
Mateusz Rzeszutek 402a0a1639
Remove Instrumenter.Default (#1610) 2020-11-10 12:42:29 -08:00
Nikita Salnikov-Tarnovski 7f012c585d
Update publish.gradle (#1611)
Do not automatically publish to Bintray after upload
2020-11-10 15:04:24 +02:00
Nikita Salnikov-Tarnovski d6c2de4389
Small cleanup (#1603)
* Small cleanup

* Format
2020-11-10 14:55:53 +02:00
Nikita Salnikov-Tarnovski 76f6b8aa49
Netty bug (#1604)
* Netty connection span leak

* Demonstrating Netty bug

* Format
2020-11-10 14:44:27 +02:00
Mateusz Rzeszutek 9d2db827b9
Refactor Instrumenters into InstrumentationModules - R, S, T, V (#1576) 2020-11-09 18:48:52 -08:00
Trask Stalnaker 087a9cbc4e
Fix dropwizard instrumentation (#1607)
* Fix dropwizard instrumentation

* Fix others too
2020-11-09 18:46:26 -08:00
Mateusz Rzeszutek 7f36dd1617
Refactor Instrumenters into InstrumentationModules - N, O, P (#1575) 2020-11-09 14:42:16 -08:00
Mateusz Rzeszutek ef58ec1770
Refactor Instrumenters into InstrumentationModules - K, L, M (#1563) 2020-11-09 14:41:55 -08:00
Mateusz Rzeszutek 0e83a5b56d
Refactor Instrumenters into InstrumentationModules - J (#1562) 2020-11-09 14:41:37 -08:00
Mateusz Rzeszutek aa3ba8d165
Refactor Instrumenters into InstrumentationModules - D, E, F, G, H (#1557) 2020-11-09 14:41:12 -08:00
Mateusz Rzeszutek d307ffc532
Refactor Instrumenters into InstrumentationModules - A, B, C (#1556)
* Refactor Instrumenters into InstrumentationModules - A, B, C

* Fixed some modules' names to match library/instrumentation gradle module

* Fix couchbase 2.6 muzzle
2020-11-09 15:42:41 +01:00
Jakub Wach 09fda6e52a
AWS lambda instrumentation - HTTP context propagation (#1536)
* AWS lambda instrumentation - HTTP context propagation

* code review, added tests for stream wrapper

* code review - recpects XRay propagation, tests added

* rebase to master
2020-11-09 15:59:33 +02:00
Trask Stalnaker 45d1a0811a
Publish lettuce-common (#1589) 2020-11-09 15:04:25 +02:00
TeeVenDick 6acce7c6df
Fix README.md link (#1590) 2020-11-09 15:04:08 +02:00
Trask Stalnaker 27ee234596
Add interoperability design doc (#1597) 2020-11-09 15:00:21 +02:00
Hasan Fehmi Danacı 0fc5dee893
Update Jrog link (#1583)
Obsolete link updated. Change jfrog folder "auto" => "instrumentation".
2020-11-09 11:49:50 +02:00