Commit Graph

8811 Commits

Author SHA1 Message Date
Trask Stalnaker d27dd892ce
Don't fail-fast for testLatestDeps (#7992)
(similar to all of the other matrix builds)
2023-03-07 08:55:01 +02:00
Trask Stalnaker 6fbd4332ee
Add tylerbenson as maintainer emeritus (#7988)
Thanks for all your help bootstrapping this project, and for all of your
contributions to the original codebase!
2023-03-06 19:36:03 -08:00
Lauri Tulmin d24cf67741
Fix windows smoke tests (#7958)
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7963
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7964
2023-03-03 22:08:01 +02:00
Lauri Tulmin 36af04266a
Fix AbstractMethodError in logback instrumentation (#7967)
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7949
Replace wrapper class with JDK proxy to ensure that all methods are
implemented and delegated to the underlying event.
2023-03-03 08:32:50 -08:00
Lauri Tulmin dbb1b7ff03
Increase rocketmq request timeout (#7968)
Hopefully avoids exceptions like
`org.apache.rocketmq.shaded.io.grpc.StatusRuntimeException:
DEADLINE_EXCEEDED: deadline exceeded after...` in rocketmq 5 test setup.
2023-03-03 08:31:54 -08:00
dependabot[bot] 293ef46322
Bump com.gradle.common-custom-user-data-gradle-plugin from 1.8.2 to 1.9 (#7959)
Bumps com.gradle.common-custom-user-data-gradle-plugin from 1.8.2 to
1.9.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.gradle.common-custom-user-data-gradle-plugin&package-manager=gradle&previous-version=1.8.2&new-version=1.9)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-03 08:37:20 +00:00
dependabot[bot] a7aa12f630
Bump com.gradle.enterprise:com.gradle.enterprise.gradle.plugin from 3.12.1 to 3.12.4 (#7962)
Bumps com.gradle.enterprise:com.gradle.enterprise.gradle.plugin from
3.12.1 to 3.12.4.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.gradle.enterprise:com.gradle.enterprise.gradle.plugin&package-manager=gradle&previous-version=3.12.1&new-version=3.12.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-03 09:36:50 +02:00
dependabot[bot] cdb313f119
Bump com.gradle.enterprise from 3.12.2 to 3.12.4 (#7960)
Bumps com.gradle.enterprise from 3.12.2 to 3.12.4.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.gradle.enterprise&package-manager=gradle&previous-version=3.12.2&new-version=3.12.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-03 09:35:12 +02:00
Lauri Tulmin b926165fe1
Fix NPE in aws 2 when request instrumentation is suppressed (#7953)
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7903
2023-03-03 09:31:01 +02:00
Lauri Tulmin 1271a100ff
Fix gradle warning (#7956)
> Java toolchain auto-provisioning enabled, but no java toolchain
repositories declared by the build. Will rely on the built-in
repository. This behaviour has been deprecated and is scheduled to be
removed in Gradle 8.0. In order to declare a repository for java
toolchains, you must edit your settings script and add one via the
toolchainManagement block. See
https://docs.gradle.org/7.6.1/userguide/toolchains.html#sec:provisioning
for more details.

The sample at linked page mentions `repository("adoptium")` which looks
like what we would like to use, but apparently this is just a sample how
configuration might look like, `AdoptiumResolver` doesn't really exist.
The one that exists is https://github.com/gradle/foojay-toolchains
2023-03-03 09:30:39 +02:00
Lauri Tulmin 38f8a9c8a9
Don't run latest dep test suite during regular test run (#7954) 2023-03-03 09:20:35 +02:00
Felix Wong ee781f5710
Update Liberty versions (#7857)
Open Liberty version 20.0.0.x are out of support. This PR removes
20.0.0.x and adds 22.0.0.x.
2023-03-02 18:53:25 +02:00
Lauri Tulmin 7e05d321a4
Remove org.unbroken-dome.test-sets plugin (#7951)
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7911
2023-03-02 08:34:40 -08:00
Lauri Tulmin 143a47961e
Remove TODO (#7955)
I think this got solved a while ago
2023-03-02 08:32:49 -08:00
dependabot[bot] 96d44690b1
Bump org.owasp:dependency-check-gradle from 8.1.1 to 8.1.2 (#7935)
Bumps org.owasp:dependency-check-gradle from 8.1.1 to 8.1.2.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.owasp:dependency-check-gradle&package-manager=gradle&previous-version=8.1.1&new-version=8.1.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-02 09:33:43 +02:00
dependabot[bot] 7682c60226
Bump com.diffplug.spotless:spotless-plugin-gradle from 6.15.0 to 6.16.0 (#7936)
Bumps
[com.diffplug.spotless:spotless-plugin-gradle](https://github.com/diffplug/spotless)
from 6.15.0 to 6.16.0.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="c4d612d125"><code>c4d612d</code></a>
Published gradle/6.16.0</li>
<li><a
href="78e0049812"><code>78e0049</code></a>
Published lib/2.36.0</li>
<li><a
href="39c84f2852"><code>39c84f2</code></a>
speedup npm install step for npm based formatters (<a
href="https://github-redirect.dependabot.com/diffplug/spotless/issues/1590">#1590</a>
fixes <a
href="https://github-redirect.dependabot.com/diffplug/spotless/issues/1480">#1480</a>
and <a
href="https://github-redirect.dependabot.com/diffplug/spotless/issues/1582">#1582</a>)</li>
<li><a
href="8ebb896075"><code>8ebb896</code></a>
Merge remote-tracking branch 'upstream/main' into
1480-speedup-npm-install-st...</li>
<li><a
href="78ccbc9f48"><code>78ccbc9</code></a>
1480: make TimedLogger package-private (PR feedback)</li>
<li><a
href="671622803e"><code>6716228</code></a>
Add <code>equoIde</code> task to make eclipse setup easier (<a
href="https://github-redirect.dependabot.com/diffplug/spotless/issues/1523">#1523</a>)</li>
<li><a
href="2a54d84752"><code>2a54d84</code></a>
Update changelogs.</li>
<li><a
href="74f2ee85c5"><code>74f2ee8</code></a>
Merge branch 'main' into feat/equo-ide</li>
<li><a
href="2872741126"><code>2872741</code></a>
Handle JSON with Array as root (<a
href="https://github-redirect.dependabot.com/diffplug/spotless/issues/1585">#1585</a>)</li>
<li><a
href="e2f7f7670c"><code>e2f7f76</code></a>
Merge branch 'main' into JacksonJasonShouldHandleTopArray</li>
<li>Additional commits viewable in <a
href="https://github.com/diffplug/spotless/compare/gradle/6.15.0...gradle/6.16.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.diffplug.spotless:spotless-plugin-gradle&package-manager=gradle&previous-version=6.15.0&new-version=6.16.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-02 09:33:26 +02:00
Lauri Tulmin 7bda99424f
Update websphere smoke test images (#7948)
See output of
https://github.com/open-telemetry/opentelemetry-java-instrumentation/actions/runs/4247069738/jobs/7384671536
For websphere 8.5 the scripts that deploy the test application and
change the default port didn't run successfully. Upgrading the version
in the hope that this produces a working image.
2023-03-01 15:59:13 -08:00
Lauri Tulmin af612859a0
Convert jsf tests to test suites (#7928)
Part of
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7911
2023-03-01 13:18:54 -08:00
Aaron Ai 88352fb8d3
Support more semantic convention for RocketMQ trace (#7871)
Fixes #7858
2023-03-01 12:48:42 -08:00
Trask Stalnaker ac709f4957
Update to Gradle 7.6.1 (#7910)
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2023-03-01 11:27:26 -08:00
Lauri Tulmin f8927a45b2
Convert log4j test to test suites (#7942)
Part of
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7911
2023-03-01 11:26:15 -08:00
Lauri Tulmin 13c7617be1
Convert aws-sdk tests to test suites (#7943)
Part of
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7911
2023-03-01 11:25:53 -08:00
Lauri Tulmin 8c1b072682
Convert vaadin tests to test suites (#7944)
Part of
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7911
2023-03-01 11:24:46 -08:00
Lauri Tulmin 5fa02fd2ab
Add connection timeout to jodd http client tests (#7947) 2023-03-01 11:24:22 -08:00
Lauri Tulmin c721852d5f
Convert spring-jms tests to test suites (#7945)
Part of
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7911
2023-03-01 11:24:04 -08:00
Lauri Tulmin 0a9466523f
Convert finatra tests to test suites (#7946)
Part of
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7911
2023-03-01 11:23:43 -08:00
Lauri Tulmin dd32ff30f1
Improve compatibility with other agents (#7916)
Fixes the issue described in
https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/7887
Hopefully resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7594
We should not use cached `TypeDescription` for currently transformed
class as the cached description will not be the same as newly created
one if the class bytes were transformed. For example if another agent
adds an interface to the class then returning the cached description
that does not have that interface would result in bytebuddy removing
that interface, see
665a090c73/byte-buddy-dep/src/main/java/net/bytebuddy/dynamic/scaffold/TypeWriter.java (L5012)
2023-03-01 09:06:59 +02:00
Lauri Tulmin 6f037345e4
Convert hibernate tests to test suites (#7929)
Part of
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7911
2023-03-01 07:53:01 +02:00
Lauri Tulmin b91d42d22e
Convert play tests to test suites (#7931)
Part of
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7911
2023-03-01 07:52:43 +02:00
Lauri Tulmin 3cfec95d45
Conver vertx tests to test suites (#7932)
Part of
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7911
2023-03-01 07:52:25 +02:00
Lauri Tulmin 07f621caf7
Convert jms tests to test suites (#7933)
Part of
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7911
2023-03-01 07:51:15 +02:00
Lauri Tulmin 47090a8165
Update grpc smoke test image (#7926)
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7925
2023-03-01 07:50:37 +02:00
Lauri Tulmin de296bdd0d
Remove test-sets plugin from modules without test sets (#7930) 2023-03-01 07:49:49 +02:00
dependabot[bot] c6ad9d9840
Bump com.diffplug.spotless from 6.15.0 to 6.16.0 in /examples/extension (#7937)
Bumps com.diffplug.spotless from 6.15.0 to 6.16.0.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.diffplug.spotless&package-manager=gradle&previous-version=6.15.0&new-version=6.16.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 07:48:31 +02:00
dependabot[bot] 13c71718cf
Bump com.diffplug.spotless:spotless-plugin-gradle from 6.15.0 to 6.16.0 in /examples/distro (#7938)
Bumps
[com.diffplug.spotless:spotless-plugin-gradle](https://github.com/diffplug/spotless)
from 6.15.0 to 6.16.0.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="c4d612d125"><code>c4d612d</code></a>
Published gradle/6.16.0</li>
<li><a
href="78e0049812"><code>78e0049</code></a>
Published lib/2.36.0</li>
<li><a
href="39c84f2852"><code>39c84f2</code></a>
speedup npm install step for npm based formatters (<a
href="https://github-redirect.dependabot.com/diffplug/spotless/issues/1590">#1590</a>
fixes <a
href="https://github-redirect.dependabot.com/diffplug/spotless/issues/1480">#1480</a>
and <a
href="https://github-redirect.dependabot.com/diffplug/spotless/issues/1582">#1582</a>)</li>
<li><a
href="8ebb896075"><code>8ebb896</code></a>
Merge remote-tracking branch 'upstream/main' into
1480-speedup-npm-install-st...</li>
<li><a
href="78ccbc9f48"><code>78ccbc9</code></a>
1480: make TimedLogger package-private (PR feedback)</li>
<li><a
href="671622803e"><code>6716228</code></a>
Add <code>equoIde</code> task to make eclipse setup easier (<a
href="https://github-redirect.dependabot.com/diffplug/spotless/issues/1523">#1523</a>)</li>
<li><a
href="2a54d84752"><code>2a54d84</code></a>
Update changelogs.</li>
<li><a
href="74f2ee85c5"><code>74f2ee8</code></a>
Merge branch 'main' into feat/equo-ide</li>
<li><a
href="2872741126"><code>2872741</code></a>
Handle JSON with Array as root (<a
href="https://github-redirect.dependabot.com/diffplug/spotless/issues/1585">#1585</a>)</li>
<li><a
href="e2f7f7670c"><code>e2f7f76</code></a>
Merge branch 'main' into JacksonJasonShouldHandleTopArray</li>
<li>Additional commits viewable in <a
href="https://github.com/diffplug/spotless/compare/gradle/6.15.0...gradle/6.16.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.diffplug.spotless:spotless-plugin-gradle&package-manager=gradle&previous-version=6.15.0&new-version=6.16.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 07:48:09 +02:00
dependabot[bot] eba88c2718
Bump com.diffplug.spotless from 6.15.0 to 6.16.0 in /benchmark-overhead (#7939)
Bumps com.diffplug.spotless from 6.15.0 to 6.16.0.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.diffplug.spotless&package-manager=gradle&previous-version=6.15.0&new-version=6.16.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 07:47:38 +02:00
dependabot[bot] 40eacdc96f
Bump com.diffplug.spotless from 6.15.0 to 6.16.0 (#7934)
Bumps com.diffplug.spotless from 6.15.0 to 6.16.0.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.diffplug.spotless&package-manager=gradle&previous-version=6.15.0&new-version=6.16.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 07:47:16 +02:00
dependabot[bot] ab72e4279e
Bump io.opentelemetry.proto:opentelemetry-proto from 0.16.0-alpha to 0.19.0-alpha (#7909) 2023-02-27 20:06:33 -08:00
dependabot[bot] 5f5019840b
Bump org.owasp:dependency-check-gradle from 8.1.0 to 8.1.1 (#7920) 2023-02-27 22:30:50 +00:00
Lauri Tulmin b937dc478c
Assert user agent when it is present (#7918) 2023-02-27 20:46:39 +00:00
Domantas Petrauskas 2a20f5e5db
Make AggregationTemporality configurable for OtlpInMemoryMetricExporter (#7904)
References
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7902.

Not sure if system property name is the most appropriate or if any tests
are required for these changes.
2023-02-27 17:36:53 +00:00
Anurag Agarwal 7bb978d2da
HttpClient 4.0 java tests (#7912)
Converts apache-httpclient-4.0 unit tests in java. Version 4.0 was using
GuardedBy annotation which was interfering with the test cases, hence
the library version was shifted to 4.1.
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7195
2023-02-27 08:53:16 -08:00
dependabot[bot] 53353acf03
Bump org.springframework.boot:spring-boot-starter-web from 3.0.2 to 3.0.3 (#7896)
Bumps
[org.springframework.boot:spring-boot-starter-web](https://github.com/spring-projects/spring-boot)
from 3.0.2 to 3.0.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/spring-projects/spring-boot/releases">org.springframework.boot:spring-boot-starter-web's
releases</a>.</em></p>
<blockquote>
<h2>v3.0.3</h2>
<h2>🐞 Bug Fixes</h2>
<ul>
<li>ClassNotFoundException during AOT processing of Logback XML that
references a variable when defining a component's class <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34336">#34336</a></li>
<li>Logback configuration errors are not reported when running as a
native image <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34315">#34315</a></li>
<li>Dependency management for Spring LDAP includes
spring-ldap-core-tiger which no longer exists <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34299">#34299</a></li>
<li>Kotlin ConfigurationProperties default values are not picked up when
nativeRun is used <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34157">#34157</a></li>
<li>Maven Plugin's PropertiesMergingResourceTransformer closes
InputStream when it should not do so <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34072">#34072</a></li>
<li>Actuator Health web endpoint broken with Gson and Java 17 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34070">#34070</a></li>
<li>Manifests of jars built with Gradle do not have a Implementation
entries <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34059">#34059</a></li>
<li>Spies are not reset after test execution when using
<code>@SpyBean</code> <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34044">#34044</a></li>
<li>Using devtools with Reactive application results in slower restarts
<a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34036">#34036</a></li>
<li>spring-boot-dependencies manages mysql:mysql-connector-java which no
longer exists <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34021">#34021</a></li>
<li>Dependency management for Mongo's Java Driver is incomplete <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34019">#34019</a></li>
<li>jOOQ DefaultConfiguration does not use TransactionProvider <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/pull/33979">#33979</a></li>
<li>ObservationFilter beans are not registered automatically <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33968">#33968</a></li>
<li>Properties Migrator does not detect properties of Map type that are
marked as deprecated <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33963">#33963</a></li>
<li>Dependency management for some Angus Mail modules uses the wrong
artifact ID <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33947">#33947</a></li>
<li>ElasticsearchClientAutoConfiguration causes global ObjectMapper to
be overwritten <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33426">#33426</a></li>
</ul>
<h2>📔 Documentation</h2>
<ul>
<li>Updated documentation for <code>@ConfigurationProperties</code> bean
naming rules <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34192">#34192</a></li>
<li>Document additional configuration that is required for
spring.mvc.throw-exception-if-no-handler-found=true to be effective <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34190">#34190</a></li>
<li>Use Maven Central for release downloads in CLI installation
documentation <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34161">#34161</a></li>
<li>Update Customizing Sanitization documentation as built-in key-based
sanitization is no longer performed <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/pull/34051">#34051</a></li>
<li>Add Redis application properties example <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34041">#34041</a></li>
<li>Restore &quot;Use Jedis Instead of Lettuce&quot; how-to
documentation <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33995">#33995</a></li>
<li>Actuator section is missing from documentation overview <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33933">#33933</a></li>
<li>Add Javadoc since to OperationParameter.getAnnotation() <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33919">#33919</a></li>
</ul>
<h2>🔨 Dependency Upgrades</h2>
<ul>
<li>Upgrade to Byte Buddy 1.12.23 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34255">#34255</a></li>
<li>Upgrade to Caffeine 3.1.4 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34256">#34256</a></li>
<li>Upgrade to Dropwizard Metrics 4.2.16 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34258">#34258</a></li>
<li>Upgrade to Glassfish JAXB 4.0.2 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34259">#34259</a></li>
<li>Upgrade to Groovy 4.0.9 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34260">#34260</a></li>
<li>Upgrade to Hibernate 6.1.7.Final <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34261">#34261</a></li>
<li>Upgrade to Jackson Bom 2.14.2 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34262">#34262</a></li>
<li>Upgrade to Jaybird 4.0.9.java11 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34263">#34263</a></li>
<li>Upgrade to Jersey 3.1.1 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34264">#34264</a></li>
<li>Upgrade to jOOQ 3.17.8 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34265">#34265</a></li>
<li>Upgrade to Lettuce 6.2.3.RELEASE <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34266">#34266</a></li>
<li>Upgrade to Lombok 1.18.26 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34267">#34267</a></li>
<li>Upgrade to Micrometer 1.10.4 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34148">#34148</a></li>
<li>Upgrade to Micrometer Tracing 1.0.2 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34160">#34160</a></li>
<li>Upgrade to Native Build Tools Plugin 0.9.20 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34268">#34268</a></li>
<li>Upgrade to Neo4j Java Driver 5.4.0 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34344">#34344</a></li>
<li>Upgrade to Netty 4.1.89.Final <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34269">#34269</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="e0b5653031"><code>e0b5653</code></a>
Release v3.0.3</li>
<li><a
href="c42d7804ff"><code>c42d780</code></a>
Upgrade to Spring WS 4.0.2</li>
<li><a
href="15097e1e2d"><code>15097e1</code></a>
Upgrade to Spring Batch 5.0.1</li>
<li><a
href="525cba1b6f"><code>525cba1</code></a>
Upgrade to Neo4j Java Driver 5.4.0</li>
<li><a
href="f92b6ae542"><code>f92b6ae</code></a>
Merge branch '2.7.x' into 3.0.x</li>
<li><a
href="e871676236"><code>e871676</code></a>
Next development version (v2.7.10-SNAPSHOT)</li>
<li><a
href="40ec064de4"><code>40ec064</code></a>
Merge branch '2.7.x' into 3.0.x</li>
<li><a
href="c7dad423e4"><code>c7dad42</code></a>
Add .git-blame-ignore-revs for reformat commit</li>
<li><a
href="0b15962aca"><code>0b15962</code></a>
Merge branch '2.7.x' into 3.0.x</li>
<li><a
href="a5902d7a00"><code>a5902d7</code></a>
Update copyright year of changed files</li>
<li>Additional commits viewable in <a
href="https://github.com/spring-projects/spring-boot/compare/v3.0.2...v3.0.3">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.springframework.boot:spring-boot-starter-web&package-manager=gradle&previous-version=3.0.2&new-version=3.0.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-24 14:53:22 +02:00
Bryan Herbst ba9df3fea8
Make RxJava2 instrumentation Android-friendly (#7895)
Resolves #7894

Replace `MethodHandle` with older `java.lang.reflect.Field`, which is
supported on older Java versions.

Also enables animal sniffer for the RxJava2 instrumentation to prevent
regression.

---------

Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
2023-02-24 13:46:13 +02:00
dependabot[bot] cb095e6d0a
Bump me.champeau.jmh:jmh-gradle-plugin from 0.6.8 to 0.7.0 (#7897)
Bumps me.champeau.jmh:jmh-gradle-plugin from 0.6.8 to 0.7.0.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=me.champeau.jmh:jmh-gradle-plugin&package-manager=gradle&previous-version=0.6.8&new-version=0.7.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-24 13:45:35 +02:00
Lauri Tulmin 64eb58633f
Fix jaxrs annotation instrumentation on openliberty (#7890)
Hopefully resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7870
Jax-rs annotation instrumentation is only enabled when jax-rs api is
found in the class loader. This check does a `ClassLoader.getResource`
call for the resource name corresponding to class
`javax.ws.rs.container.AsyncResponse`. As far as I understand this
particular class is used only because it was added in jax-rs 2.0, any
other class added in jax-rs 2.0 could be used instead of it. On
openliberty we fail to find this class because it should be resolved
through bundle dynamic imports but we disable looking into dynamic
imports in
https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/internal/internal-eclipse-osgi-3.6/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/internal/osgi/EclipseOsgiInstrumentation.java
when we do the class presence check. Using a class in `javax.ws.rs.core`
package seems to work better as the import for that package is already
resolved by the time we make the `getResource` call.
2023-02-24 13:00:11 +02:00
Lauri Tulmin cbc616cbff
Fix kotlin coroutine context propagation (#7879)
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7837
`org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1` adds a second
`newCoroutineContext` that we shouldn't instrument. When we instrument
it the order of
[`KotlinContextElement`](https://github.com/open-telemetry/opentelemetry-java/blob/main/extensions/kotlin/src/main/java/io/opentelemetry/extension/kotlin/KotlinContextElement.java)
and user added `ThreadContextElement` gets reversed. If user added
`ThreadContextElement` changes opentelemetry context then these changes
will get overwritten by `KotlinContextElement`.
2023-02-24 12:31:43 +02:00
Lauri Tulmin fe263edecf
Fix vaadin14 latest dep test (#7893)
Looks similar to what we had for vaadin 16 recently. Pinning
https://www.npmjs.com/package/@types/node to 18.11.9
2023-02-23 20:39:08 -08:00
jason plumb 7e187f78e7
Add additional groovy classloaders to ignore list. (#7460)
Groovy apps that parse a lot of scripts can generate a lot of
classloaders that will ultimately end up causing the agent to cache a
LOT of memory. For example, some java code that uses the Gremlin groovy
script engine to dynamically create and execute scripts can reproduce
this:

```
    GremlinGroovyScriptEngine engine = new GremlinGroovyScriptEngine();
    Bindings bindings = new SimpleBindings();
    TinkerGraph graph = TinkerGraph.open();
    GraphTraversalSource g = graph.traversal();
    bindings.put("g", g);
    for (int i = 0; i < 100000; i++) {
      engine.eval("g.V(" + i + ")", bindings);
      if(i % 250 == 0) System.out.println("Iteration " + i);
    }
```

I have manually confirmed that ignoring the groovy classloaders (in this
PR) prevent the agent from exploding the cache and holding onto memory.
I could use another brain in deciding if there could be other unintended
consequences.
2023-02-23 09:39:54 -08:00
Phil fad7b24253
Add Jodd-Http instrumentation (#7868)
This PR resolves #7629 

This adds javaagent instrumentation for the
[jodd-http](https://http.jodd.org/) `HttpRequest`.
It creates `Http Client Spans` and `Http Client Metrics`, the lowest
supported version is `org.jodd:jodd-http:4.2.0` (most recent: `6.3.0`),
since this is the first version of the library supporting java 8, having
follow-redirect capability and `HttpRequest#overwriteHeader()` method.
The instrumented method's signature and return type `HttpRequest#send()`
has not been modified since, and therefore the instrumentation works for
all `jodd-http` versions above `4.2.0`.

Since this is my first contribution/instrumentation, I orientated myself
on the `apache-httpclient-5.0` instrumentation, but obviously I would be
glad to get some feedback on this

---------

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2023-02-23 15:54:13 +00:00