Commit Graph

6090 Commits

Author SHA1 Message Date
Trask Stalnaker 6efae9ad28
Remove duplicate method (#3032) 2021-05-19 11:56:34 -07:00
Lauri Tulmin 23a40d926c
Netty4.1: remove our handler when original handler is removed (#3026)
* Netty4.1: remove our handler when orignal handler is removed

* Update instrumentation/netty/netty-4.1/javaagent/src/test/groovy/ChannelPipelineTest.groovy

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

* disable epoll to see whether it makes any difference

* fix netty with epoll/kqueue native library

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-05-19 10:01:56 -07:00
Nikita Salnikov-Tarnovski 51b2f31c3c
Fix broken link (#3034)
* Fix broken link

* Update examples/distro/README.md

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

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-05-19 09:54:35 -07:00
Jakub Wach a360ea4ed3
agent config - small link fix (#3035) 2021-05-19 09:53:54 -07:00
Trask Stalnaker 9f7cfd27b3
Avoid loading advice classes in agent class loader, part 2 (#3031) 2021-05-19 09:53:27 -07:00
Lauri Tulmin 87bc1c69dc
Exclude failing netty version from muzzle (#3038) 2021-05-19 09:53:09 -07:00
Lauri Tulmin 42728c4b1f
Exclude broken spring-ws version from muzzle (#3037) 2021-05-19 19:05:31 +03:00
Nikita Salnikov-Tarnovski e3cf8ecf18
First POC for external extension loading (#2881)
* First POC for external extension loading

* Fix NPE

* Urlhandler

* Fix

* Polish

* Polish

* Urlhandler

* Trying Urlhandler

* Alternative way to load extensions

* Polish

* Add example extensions and smoke test for their usage

* Support for system property

* Polish

* Avoid doing remapping twice

* Polish after merge

* Update to latest changes in extentions api

* Polish

* No need for tooling

* Simplify

* Cleanup

* Better error handling

* Update to the latest API
2021-05-18 22:59:39 +03:00
Trask Stalnaker d1946f6774
Don't use type annotation style (#3023) 2021-05-18 10:23:09 -07:00
Mateusz Rzeszutek bb8f515083
Refactor TypeInstrumentation#transformers() method (#3019)
* Refactor TypeInstrumentation#transformers() method part 1

Add TypeInstrumentation and its implementations

* Refactor TypeInstrumentation#transformers() method part 2

Use the new method in all existing TypeInstrumentation implementations

* Drift

* Spotless

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-05-18 09:50:26 +02:00
Anuraag Agrawal f3191d9e00
Migrate MuzzlePlugin to Java (#3017) 2021-05-18 12:52:55 +09:00
Trask Stalnaker 1535834d46
Update Apache HttpClient 2.0 to Instrumenter API (#3012) 2021-05-17 17:15:10 -07:00
Lauri Tulmin 2675364897
Remove span isRecording check from servlet advice (#3022) 2021-05-18 08:51:24 +09:00
Trask Stalnaker 908970b0d0
Rename local variables in test assertions to improve some groovy assert messages (#3013) 2021-05-17 12:28:18 -07:00
Lauri Tulmin b4b102dbec
Enable http client connection failure tests (#2998) 2021-05-17 12:15:48 -07:00
Trask Stalnaker 500590e597
Add Java HttpClient to docs (#3001) 2021-05-17 12:13:30 -07:00
Trask Stalnaker e54a007dc1
Remove unnecessary method in test harness (#3016) 2021-05-17 12:12:56 -07:00
Trask Stalnaker 32399ea7a9
A small test cleanup (#3014) 2021-05-17 12:12:40 -07:00
Mateusz Rzeszutek 8be4148dea
Update examples/distro to 1.2.0 (#3020) 2021-05-17 12:12:17 -07:00
Nikita Salnikov-Tarnovski 3ecce72298
Replace embedded Redis server with testcontainers in tests (#3011)
* Replace embedded Redis server with testcontainers in tests

* Update instrumentation/lettuce/lettuce-5.0/javaagent/src/test/groovy/LettuceReactiveClientTest.groovy

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-05-17 09:57:13 +03:00
Trask Stalnaker bcfd6b4d67
Re-enable smoke tests in release build (#3006) 2021-05-16 22:05:04 -07:00
Trask Stalnaker 85522cb2ed
Avoid loading advice classes in agent class loader (#3008)
* Lettuce 5.0

* Lettuce 4.0

* Ratpack

* Cassandra 4.0

* Grizzly

* KHttp

* External annotations

* Test

* Jdbc

* Method instrumentation

* OTel annotations
2021-05-16 20:07:20 -07:00
Trask Stalnaker d6141dddc7
Update agent logger prefix (#3007) 2021-05-17 12:06:39 +09:00
Trask Stalnaker c24949eea9
Fix change log (#3000) 2021-05-17 12:06:18 +09:00
Mateusz Rzeszutek 9c1083b541
Muzzle code generation cleanup (#2985)
* Muzzle code generation cleanup

- remove hardcoded class names from MuzzleCodeGenerator (easier renaming in the future)
- store field/method descriptors in references instead of types/lists of types
- remove unnecessary primitive type comparison in ReferenceMatcher (comparing descriptors is enough)
- improve printMuzzleReferences output
2021-05-15 14:48:18 -07:00
Lauri Tulmin dea25f3b1b
Fix rabbitmq latest dep test (#3004) 2021-05-15 14:15:58 -07:00
Anuraag Agrawal 95c16c4a3c
Start migrating Muzzle plugin to Java (#2996) 2021-05-15 16:22:05 +09:00
Anuraag Agrawal fe41885ee6
Switch to colon notation for dependencies. (#2994)
* Switch to colon notation for dependencies.

* Even more cleanup

* Revert mistake
2021-05-15 15:31:06 +09:00
Trask Stalnaker ed8ffeaed1
Update change log (#2947)
* Update change log

* Update CHANGELOG.md

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

* Update CHANGELOG.md

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

* Move AWS Lambda timeout to breaking changes

* Update CHANGELOG.md

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

* Split out behavior changes section

* This week

* Add date

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2021-05-14 15:38:57 -07:00
Lauri Tulmin 406eabef20
Simplify servlet advice (#2972)
* Simplify servlet advice

* fix sampling

* Trigger Build

* use the same logic as previously, maybe this helps agains glassfish smoke-test failure
2021-05-14 18:49:32 +03:00
Anuraag Agrawal 615d51ad2a
Remove leftover references to bintray secrets. (#2991) 2021-05-14 18:18:25 +09:00
Anuraag Agrawal 81f9d1853f
Disable smoke tests in release build since we can't run them inline with other builds effectively. (#2990) 2021-05-14 16:04:03 +09:00
Anuraag Agrawal 3118bf2e49
Use GITHUB_TOKEN for ghcr.io push now that it's supported. (#2989) 2021-05-14 13:58:08 +09:00
dependabot[bot] c617a29e70
Bump actions/upload-release-asset from 1 to 1.0.2 (#2979)
Bumps [actions/upload-release-asset](https://github.com/actions/upload-release-asset) from 1 to 1.0.2.
- [Release notes](https://github.com/actions/upload-release-asset/releases)
- [Commits](https://github.com/actions/upload-release-asset/compare/v1...v1.0.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-14 13:15:19 +09:00
dependabot[bot] 3e4ea76149
Bump technote-space/workflow-conclusion-action from 1 to 2.1.6 (#2957)
Bumps [technote-space/workflow-conclusion-action](https://github.com/technote-space/workflow-conclusion-action) from 1 to 2.1.6.
- [Release notes](https://github.com/technote-space/workflow-conclusion-action/releases)
- [Changelog](https://github.com/technote-space/workflow-conclusion-action/blob/master/.releasegarc)
- [Commits](https://github.com/technote-space/workflow-conclusion-action/compare/v1...v2.1.6)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-13 20:21:21 -07:00
Anuraag Agrawal 4b1714c3f4
Update to Gradle 7.0 (#2983)
* Update to Gradle 7.0

* Fix scala

* Restore accidental

* Fix deprecations
2021-05-14 11:52:20 +09:00
dependabot[bot] c167731cec
Bump JasonEtco/create-an-issue from 2 to 2.5.0 (#2978)
Bumps [JasonEtco/create-an-issue](https://github.com/JasonEtco/create-an-issue) from 2 to 2.5.0.
- [Release notes](https://github.com/JasonEtco/create-an-issue/releases)
- [Commits](https://github.com/JasonEtco/create-an-issue/compare/v2...v2.5.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-13 13:38:34 -07:00
Trask Stalnaker 28d814c813
Add HTTP client error test (#2932) 2021-05-13 13:34:45 -07:00
Mateusz Rzeszutek a72a7838f0
Load InstrumentationModules using InstrumentationLoader (#2971)
* Load InstrumentationModules using InstrumentationLoader

* writing-instrumentation-module doc improvement

* spotless
2021-05-13 14:12:53 +02:00
Anuraag Agrawal a3be8e3613
More lazy Gradle configuration (#2973) 2021-05-13 16:24:40 +09:00
Trask Stalnaker 1b345e399c
Fix AgentClassLoader test (#2982) 2021-05-13 14:56:52 +09:00
Trask Stalnaker f413e5a3aa
Remove RequestDispatcherAdvice (#2942) 2021-05-12 21:37:48 -07:00
dependabot[bot] 02ac89c549
Bump gradle/wrapper-validation-action from 1 to 1.0.3 (#2963)
Bumps [gradle/wrapper-validation-action](https://github.com/gradle/wrapper-validation-action) from 1 to 1.0.3.
- [Release notes](https://github.com/gradle/wrapper-validation-action/releases)
- [Commits](https://github.com/gradle/wrapper-validation-action/compare/v1...v1.0.3)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-12 21:21:43 -07:00
Anuraag Agrawal 3edc4a7f77
Remove logging of context mismatch which will always be logged. (#2970) 2021-05-12 10:02:47 -07:00
Mateusz Rzeszutek 01a7f54197
Fix non-unique test case names (#2975) 2021-05-12 10:01:56 -07:00
dependabot[bot] 0b38133704
Bump docker/login-action from 1 to 1.9.0 (#2965)
Bumps [docker/login-action](https://github.com/docker/login-action) from 1 to 1.9.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v1...v1.9.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-12 09:30:05 -07:00
dependabot[bot] eefa76df2b
Bump actions/checkout from 2 to 2.3.4 (#2966)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 2.3.4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v2.3.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-12 09:29:57 -07:00
dependabot[bot] 53707960d7
Bump actions/create-release from 1 to 1.1.4 (#2964)
Bumps [actions/create-release](https://github.com/actions/create-release) from 1 to 1.1.4.
- [Release notes](https://github.com/actions/create-release/releases)
- [Commits](https://github.com/actions/create-release/compare/v1...v1.1.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-12 09:29:40 -07:00
Nikita Salnikov-Tarnovski b944a28b96
Fix workflow file (#2967) 2021-05-12 14:25:50 +03:00
Anuraag Agrawal 057d8861fa
Record HTTP server metrics in instrumenter API. (#2877)
* Record HTTP server metrics in instrumenter API.

* Fix

* Response attributes

* Start cleaning

* Docs

* Test

* Finish test

* Cleanups

* Cleanups
2021-05-12 17:49:12 +09:00