Commit Graph

8859 Commits

Author SHA1 Message Date
Ago Allikmaa a9788a22de
Provide ability to add HTTP server response headers, with Tomcat implementation (#7990)
This allows custom distributions of the agent to register
`HttpServerResponseCustomizer` implementations. When a supported HTTP
server instrumentation starts processing a response, the `onStart`
method of all registered implementations will be invoked with the
`Context` of the SERVER span, an instrumentation-specific response
object and `HttpServerResponseMutator` instance that allows appending
headers to that response.

The intent of this is to allow custom distributions to set a header
containing span context information, such as the trace and span IDs. As
such, the initial implementation only allows appending response headers
and nothing else.

The `HttpServerResponseCustomizer` and related classes are currently in
a subpackage of the `io.opentelemetry.javaagent.bootstrap` package in
`javaagent-extension-api`. This makes them get loaded in the bootstrap
classloader, thus directly accessible from instrumentations. I am not
aware if there is an elegant way to put it in the agent classloader
instead, yet have the same instance accessible from both
`AgentInstaller` and instrumentations.

This also includes Tomcat-specific implementation in order to be able to
demonstrate that it works, and add automated testing of this to
HttpServerTest including one implementation.
2023-03-13 17:46:39 +01:00
Lauri Tulmin 0ef4c0beb9
Don't wrap exceptions from logback appender (#8040) 2023-03-13 17:23:48 +01:00
Lauri Tulmin dedc4d312c
Improve pulsar instrumentation (#8007)
- use standard messaging span name
- replace `message.type` with experimental attribute
`messaging.pulsar.message.type`, `message.type` is from rpc semantic
conventions
- replace `net.sock.peer.addr` that was filled with broker url with
`net.peer.name` and `net.peer.port`
2023-03-13 17:22:11 +01:00
Jean Bisutti 2bd2bbcdee
Make the Spring autoconfiguration work with Spring Boot 3 (#8028)
This PR makes the Spring autoconfiguration work from Spring Boot 2.7.

[The way to declare autoconfiguration has indeed changed from Spring
Boot
2.7](https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.7-Release-Notes#building-jars-with-maven-shade-plugin-and-gradle-shadow-plugin).

A workaround is to use @EnableOpenTelemetry.
2023-03-13 17:15:19 +01:00
Lauri Tulmin c6adaa35de
Cache DbInfo in OpenTelemetryDataSource (#8025)
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7984
2023-03-13 13:10:11 +01:00
OpenTelemetry Bot 288c407d12
Update the OpenTelemetry SDK version to 1.24.0 (#8027)
Update the OpenTelemetry SDK version to `1.24.0`.

---------

Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2023-03-13 09:14:50 +01:00
Helen 468aa9e777
Convert Jetty 8.0 groovy to java (#7975)
related to
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7195
2023-03-11 11:24:35 +02:00
Helen 995baa8888
Convert Jetty 11 groovy to java (#7976)
related to
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7195
2023-03-11 11:23:37 +02:00
dependabot[bot] 8aff20e479
Bump org.mockito:mockito-core from 5.1.1 to 5.2.0 in /examples/distro (#8032)
Bumps [org.mockito:mockito-core](https://github.com/mockito/mockito)
from 5.1.1 to 5.2.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/mockito/mockito/releases">org.mockito:mockito-core's
releases</a>.</em></p>
<blockquote>
<h2>v5.2.0</h2>
<p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog
generated by <a
href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog
Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted
--></p>
<h4>5.2.0</h4>
<ul>
<li>2023-03-09 - <a
href="https://github.com/mockito/mockito/compare/v5.1.1...v5.2.0">25
commit(s)</a> by Andriy Redko, Iulian Dragos, Roberto Trunfio, Róbert
Papp, dependabot[bot], jfrantzius, tobiasbaum</li>
<li>Fixes 2933: IOUtils does not depend on platform encoding any more
[(<a
href="https://redirect.github.com/mockito/mockito/issues/2935">#2935</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2935">mockito/mockito#2935</a>)</li>
<li>Execution with mockito-inline fails on platforms with EBCDIC as
default encoding [(<a
href="https://redirect.github.com/mockito/mockito/issues/2933">#2933</a>)](<a
href="https://redirect.github.com/mockito/mockito/issues/2933">mockito/mockito#2933</a>)</li>
<li>Bump io.github.gradle-nexus:publish-plugin from 1.2.0 to 1.3.0 [(<a
href="https://redirect.github.com/mockito/mockito/issues/2932">#2932</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2932">mockito/mockito#2932</a>)</li>
<li>Bump versions.bytebuddy from 1.14.0 to 1.14.1 [(<a
href="https://redirect.github.com/mockito/mockito/issues/2931">#2931</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2931">mockito/mockito#2931</a>)</li>
<li>Bump com.diffplug.spotless from 6.15.0 to 6.16.0 [(<a
href="https://redirect.github.com/mockito/mockito/issues/2930">#2930</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2930">mockito/mockito#2930</a>)</li>
<li>Bump com.google.googlejavaformat:google-java-format from 1.15.0 to
1.16.0 [(<a
href="https://redirect.github.com/mockito/mockito/issues/2928">#2928</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2928">mockito/mockito#2928</a>)</li>
<li>Bump io.github.gradle-nexus:publish-plugin from 1.1.0 to 1.2.0 [(<a
href="https://redirect.github.com/mockito/mockito/issues/2924">#2924</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2924">mockito/mockito#2924</a>)</li>
<li>Feature 2921 generic types [(<a
href="https://redirect.github.com/mockito/mockito/issues/2923">#2923</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2923">mockito/mockito#2923</a>)</li>
<li>Bump com.github.ben-manes.versions from 0.45.0 to 0.46.0 [(<a
href="https://redirect.github.com/mockito/mockito/issues/2922">#2922</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2922">mockito/mockito#2922</a>)</li>
<li>Use generic type information in TypeBasedCandidateFilter to
circumvent type erasure [(<a
href="https://redirect.github.com/mockito/mockito/issues/2921">#2921</a>)](<a
href="https://redirect.github.com/mockito/mockito/issues/2921">mockito/mockito#2921</a>)</li>
<li>Make project relocatable by using relative paths in the OSGi test
task [(<a
href="https://redirect.github.com/mockito/mockito/issues/2920">#2920</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2920">mockito/mockito#2920</a>)</li>
<li>Cache misses due to OSGi tests referencing absolute paths [(<a
href="https://redirect.github.com/mockito/mockito/issues/2919">#2919</a>)](<a
href="https://redirect.github.com/mockito/mockito/issues/2919">mockito/mockito#2919</a>)</li>
<li>Bump versions.bytebuddy from 1.13.0 to 1.14.0 [(<a
href="https://redirect.github.com/mockito/mockito/issues/2918">#2918</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2918">mockito/mockito#2918</a>)</li>
<li>Bump gradle/wrapper-validation-action from 1.0.5 to 1.0.6 [(<a
href="https://redirect.github.com/mockito/mockito/issues/2917">#2917</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2917">mockito/mockito#2917</a>)</li>
<li>Bump com.diffplug.spotless from 6.14.1 to 6.15.0 [(<a
href="https://redirect.github.com/mockito/mockito/issues/2913">#2913</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2913">mockito/mockito#2913</a>)</li>
<li>Bump versions.bytebuddy from 1.12.23 to 1.13.0 [(<a
href="https://redirect.github.com/mockito/mockito/issues/2912">#2912</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2912">mockito/mockito#2912</a>)</li>
<li>Bump ru.vyarus.animalsniffer from 1.6.0 to 1.7.0 [(<a
href="https://redirect.github.com/mockito/mockito/issues/2911">#2911</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2911">mockito/mockito#2911</a>)</li>
<li>Bump org.codehaus.groovy:groovy from 3.0.14 to 3.0.15 [(<a
href="https://redirect.github.com/mockito/mockito/issues/2910">#2910</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2910">mockito/mockito#2910</a>)</li>
<li>Fixes <a
href="https://redirect.github.com/mockito/mockito/issues/2905">#2905</a>
: ThreadLocal classes can be mocked. [(<a
href="https://redirect.github.com/mockito/mockito/issues/2908">#2908</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2908">mockito/mockito#2908</a>)</li>
<li>StackOverflow while mocking a ThreadLocal on Mockito 5.1.1 [(<a
href="https://redirect.github.com/mockito/mockito/issues/2905">#2905</a>)](<a
href="https://redirect.github.com/mockito/mockito/issues/2905">mockito/mockito#2905</a>)</li>
<li>Fix most Gradle warnings in build [(<a
href="https://redirect.github.com/mockito/mockito/issues/2904">#2904</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2904">mockito/mockito#2904</a>)</li>
<li>Android CI improvements, improves <a
href="https://redirect.github.com/mockito/mockito/issues/2892">#2892</a>
[(<a
href="https://redirect.github.com/mockito/mockito/issues/2903">#2903</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2903">mockito/mockito#2903</a>)</li>
<li>Bump com.diffplug.spotless from 6.14.0 to 6.14.1 [(<a
href="https://redirect.github.com/mockito/mockito/issues/2902">#2902</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2902">mockito/mockito#2902</a>)</li>
<li>Bump versions.bytebuddy from 1.12.22 to 1.12.23 [(<a
href="https://redirect.github.com/mockito/mockito/issues/2901">#2901</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2901">mockito/mockito#2901</a>)</li>
<li>CI on Android API level 33 for Java 11 compatibility testing [(<a
href="https://redirect.github.com/mockito/mockito/issues/2899">#2899</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2899">mockito/mockito#2899</a>)</li>
<li>Bump kotlinVersion from 1.8.0 to 1.8.10 [(<a
href="https://redirect.github.com/mockito/mockito/issues/2897">#2897</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2897">mockito/mockito#2897</a>)</li>
<li>Bump com.github.ben-manes.versions from 0.44.0 to 0.45.0 [(<a
href="https://redirect.github.com/mockito/mockito/issues/2895">#2895</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2895">mockito/mockito#2895</a>)</li>
<li>Simplify and modernize Android Test module. [(<a
href="https://redirect.github.com/mockito/mockito/issues/2894">#2894</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2894">mockito/mockito#2894</a>)</li>
<li>Set up Android Github Action pipeline. Fixes <a
href="https://redirect.github.com/mockito/mockito/issues/2892">#2892</a>
[(<a
href="https://redirect.github.com/mockito/mockito/issues/2893">#2893</a>)](<a
href="https://redirect.github.com/mockito/mockito/pull/2893">mockito/mockito#2893</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="74c811a60a"><code>74c811a</code></a>
Make InjectMocks aware of generic types (<a
href="https://redirect.github.com/mockito/mockito/issues/2923">#2923</a>)</li>
<li><a
href="fc136e4373"><code>fc136e4</code></a>
Explicitly use UTF-8 in IOUtils (<a
href="https://redirect.github.com/mockito/mockito/issues/2935">#2935</a>)</li>
<li><a
href="94734709cd"><code>9473470</code></a>
Bump io.github.gradle-nexus:publish-plugin from 1.2.0 to 1.3.0 (<a
href="https://redirect.github.com/mockito/mockito/issues/2932">#2932</a>)</li>
<li><a
href="dddeb725b3"><code>dddeb72</code></a>
Bump versions.bytebuddy from 1.14.0 to 1.14.1 (<a
href="https://redirect.github.com/mockito/mockito/issues/2931">#2931</a>)</li>
<li><a
href="92ed60276c"><code>92ed602</code></a>
Bump com.google.googlejavaformat:google-java-format from 1.15.0 to
1.16.0 (<a
href="https://redirect.github.com/mockito/mockito/issues/2">#2</a>...</li>
<li><a
href="19ef24a19f"><code>19ef24a</code></a>
Bump com.diffplug.spotless from 6.15.0 to 6.16.0 (<a
href="https://redirect.github.com/mockito/mockito/issues/2930">#2930</a>)</li>
<li><a
href="8b96cc1ffe"><code>8b96cc1</code></a>
Bump io.github.gradle-nexus:publish-plugin from 1.1.0 to 1.2.0 (<a
href="https://redirect.github.com/mockito/mockito/issues/2924">#2924</a>)</li>
<li><a
href="4eb275c0db"><code>4eb275c</code></a>
Make project relocatable by using relative paths in the OSGi test task
(<a
href="https://redirect.github.com/mockito/mockito/issues/2920">#2920</a>)</li>
<li><a
href="d9373348aa"><code>d937334</code></a>
Bump com.github.ben-manes.versions from 0.45.0 to 0.46.0 (<a
href="https://redirect.github.com/mockito/mockito/issues/2922">#2922</a>)</li>
<li><a
href="60b0e7148b"><code>60b0e71</code></a>
Bump versions.bytebuddy from 1.13.0 to 1.14.0 (<a
href="https://redirect.github.com/mockito/mockito/issues/2918">#2918</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/mockito/mockito/compare/v5.1.1...v5.2.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.mockito:mockito-core&package-manager=gradle&previous-version=5.1.1&new-version=5.2.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-11 09:07:16 +02:00
dependabot[bot] 76b4cd954f
Bump com.google.protobuf:protobuf-java-util from 3.22.0 to 3.22.2 in /examples/distro (#8031)
Bumps com.google.protobuf:protobuf-java-util from 3.22.0 to 3.22.2.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.google.protobuf:protobuf-java-util&package-manager=gradle&previous-version=3.22.0&new-version=3.22.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-11 08:40:27 +02:00
dependabot[bot] f2ef5274b2
Bump com.google.protobuf:protobuf-java-util from 3.22.0 to 3.22.2 in /examples/extension (#8033)
Bumps com.google.protobuf:protobuf-java-util from 3.22.0 to 3.22.2.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.google.protobuf:protobuf-java-util&package-manager=gradle&previous-version=3.22.0&new-version=3.22.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-11 08:38:38 +02:00
dependabot[bot] 5d128d67bb
Bump com.google.protobuf:protobuf-java-util from 3.22.0 to 3.22.2 (#8029)
Bumps com.google.protobuf:protobuf-java-util from 3.22.0 to 3.22.2.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.google.protobuf:protobuf-java-util&package-manager=gradle&previous-version=3.22.0&new-version=3.22.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-11 08:36:59 +02:00
Lauri Tulmin f1411d1cb3
Share timer class used by messaging instrumentations (#8009)
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/4514
There is also a slightly different timer class in netty instrumentation
https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/netty/netty-common/library/src/main/java/io/opentelemetry/instrumentation/netty/common/internal/Timer.java
that I didn't touch.
2023-03-10 10:40:41 +02:00
Lauri Tulmin a793c247e6
Remove duplicate -Xmx from kafka memory options (#8022) 2023-03-09 22:02:33 +02:00
Mateusz Rzeszutek 0dccc3ad56
Fix NPE in the RabbitMQ instrumentation (#8021)
Fixes #8020
2023-03-09 17:15:27 +00:00
adamleantech 96fd1d7522
Add Baggage to logback MDC controlled by flag (#7892)
The intention here is to allow users of the java agent to set a VM flag
in order to be able to add values in the current Baggage context to MDC
for logback. It seemed unwise to turn this on by default - if the
application is configured to print all MDC contents (as it often the
case with JSON output) then baggage would be logged out by default which
may either bloat the logs or result in sensitive data being exposed
unitentionally.

Addresses #1391 and #6708

Note that this is my first contribution to this repo, I've done my best
to follow the existing approaches to things like testing but would
appreciate any feedback.

---------

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2023-03-09 08:03:56 -08:00
Lauri Tulmin bb1bc5d71e
Preserve span order (#8017)
On jdk8 tests occasionally fail when spans starting on the same
millisecond get reordered. As we eventually sort the spans by start time
we can't get the initial oder back when the start time is the same for
these spans. Hopefully preserving the initial order reduces such
flakiness.
2023-03-09 16:37:52 +02:00
Lauri Tulmin 67b6b6cc7c
Limit kafka memory usage (#8018) 2023-03-09 16:37:09 +02:00
Mateusz Rzeszutek 1649a90e29
Add protocol name&version to net attribute getters (#7994)
In preparation for
https://github.com/open-telemetry/opentelemetry-specification/pull/3272
2023-03-09 11:37:52 +00:00
Mateusz Rzeszutek 998e781009
Remove deprecated messaging.url attribute from messaging getter (#8008) 2023-03-09 11:41:51 +01:00
dependabot[bot] 4b0ff80914
Bump com.uber.nullaway:nullaway from 0.10.9 to 0.10.10 (#8012)
Bumps [com.uber.nullaway:nullaway](https://github.com/uber/NullAway)
from 0.10.9 to 0.10.10.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/uber/NullAway/blob/master/CHANGELOG.md">com.uber.nullaway:nullaway's
changelog</a>.</em></p>
<blockquote>
<h2>Version 0.10.10</h2>
<ul>
<li>Add command line option to skip specific library models. (<a
href="https://github-redirect.dependabot.com/uber/NullAway/issues/741">#741</a>)</li>
<li>Support for specific libraries/APIs:
<ul>
<li>Model Map.getOrDefault (<a
href="https://github-redirect.dependabot.com/uber/NullAway/issues/724">#724</a>)</li>
<li>Model Class.cast (<a
href="https://github-redirect.dependabot.com/uber/NullAway/issues/731">#731</a>)</li>
<li>Model Class.isInstance (<a
href="https://github-redirect.dependabot.com/uber/NullAway/issues/732">#732</a>)</li>
</ul>
</li>
<li>Internal code refactorings:
<ul>
<li>Refactor code to use Map.getOrDefault where possible (<a
href="https://github-redirect.dependabot.com/uber/NullAway/issues/727">#727</a>)</li>
<li>Break loops when result can no longer change (<a
href="https://github-redirect.dependabot.com/uber/NullAway/issues/728">#728</a>)</li>
</ul>
</li>
<li>Support for JSpecify's 0.3.0 annotation [experimental]
<ul>
<li>JSpecify: initial checks for generic type compatibility at
assignments (<a
href="https://github-redirect.dependabot.com/uber/NullAway/issues/715">#715</a>)</li>
<li>Add JSpecify checking for return statements (<a
href="https://github-redirect.dependabot.com/uber/NullAway/issues/734">#734</a>)</li>
</ul>
</li>
<li>NullAwayInfer/Annotator data serialization support [experimental]
<ul>
<li>Refactoring in symbol serialization (<a
href="https://github-redirect.dependabot.com/uber/NullAway/issues/736">#736</a>)</li>
<li>Refactoring tabSeparatedToString logic to prepare for serialization
version 3 (<a
href="https://github-redirect.dependabot.com/uber/NullAway/issues/738">#738</a>)</li>
<li>Update method serialization to exclude type use annotations and type
arguments (<a
href="https://github-redirect.dependabot.com/uber/NullAway/issues/735">#735</a>)</li>
</ul>
</li>
<li>Docs fix: -XepExcludedPaths was added in 2.1.3, not 2.13 (<a
href="https://github-redirect.dependabot.com/uber/NullAway/issues/744">#744</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="e593f11b32"><code>e593f11</code></a>
Prepare for release 0.10.10.</li>
<li><a
href="9b6d93fc9c"><code>9b6d93f</code></a>
Add command line option to skip specific library models. (<a
href="https://github-redirect.dependabot.com/uber/NullAway/issues/741">#741</a>)</li>
<li><a
href="49cda490fb"><code>49cda49</code></a>
Docs: <code>-XepExcludedPaths</code> was added in 2.1.3, not 2.13 (<a
href="https://github-redirect.dependabot.com/uber/NullAway/issues/744">#744</a>)</li>
<li><a
href="16923e56c5"><code>16923e5</code></a>
Serialization version 3: update method serialization to exclude type use
anno...</li>
<li><a
href="ff6b090760"><code>ff6b090</code></a>
Refactoring tabSeparatedToString logic to prepare for serialization
version 3...</li>
<li><a
href="1548c69a27"><code>1548c69</code></a>
Add JSpecify checking for return statements (<a
href="https://github-redirect.dependabot.com/uber/NullAway/issues/734">#734</a>)</li>
<li><a
href="457a129f41"><code>457a129</code></a>
Refactoring in symbol serialization (<a
href="https://github-redirect.dependabot.com/uber/NullAway/issues/736">#736</a>)</li>
<li><a
href="14d3693a6f"><code>14d3693</code></a>
JSpecify: initial checks for generic type compatibility at assignments
(<a
href="https://github-redirect.dependabot.com/uber/NullAway/issues/715">#715</a>)</li>
<li><a
href="a2efa6ec16"><code>a2efa6e</code></a>
Break loops when result can no longer change (<a
href="https://github-redirect.dependabot.com/uber/NullAway/issues/728">#728</a>)</li>
<li><a
href="de6e0149fa"><code>de6e014</code></a>
Model <code>Class.isInstance</code> (<a
href="https://github-redirect.dependabot.com/uber/NullAway/issues/732">#732</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/uber/NullAway/compare/v0.10.9...v0.10.10">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.uber.nullaway:nullaway&package-manager=gradle&previous-version=0.10.9&new-version=0.10.10)](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-09 09:15:34 +02:00
Lauri Tulmin 6c5351305c
`classLoaderOptimization` is not needed when matching by name (#8010) 2023-03-08 20:09:20 +02:00
Jean Bisutti ff73e9577c
Make the OpenTelemetry Logback appender work with GraalVM native images (#7989)
I have tried the [OpenTelemetry Logback
appender](https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/logback/logback-appender-1.0/library)
with GraalVM native images. The GraalVM configurations of this PR are
required to make it work.

It's my first GraalVM-related PR in this repo. In future works, adding
automatic tests with GraalVM on some [programmatic instrumentation
libraries](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/docs/supported-libraries.md#libraries--frameworks)
may be interesting.
2023-03-08 07:58:37 -08:00
Simone Giusso 1a7e0f3235
Instrumenting cassandra executeReactive method (#6441)
It follows the
[issue](https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/6395#issue-1323561263)
I opened some days ago.

The `executeReactive` method use the same processor used by
`executeAsync` (see
[here](65d2c19c40/core/src/main/java/com/datastax/dse/driver/internal/core/cql/reactive/CqlRequestReactiveProcessor.java (L53)))
and wrap the callback in the `DefaultReactiveResultSet` publisher.

Here I'm simply overriding the `executeReactive` method doing the same
thing: call the already instrumented `executeAsync` method and wrapping
the callback using the `DefaultReactiveResultSet` publisher.

~~I did an upgrade of the `java-driver-core` library to have
`TracingCqlSession.java` extending the `ReactiveSession`. I have to
probably rename the `cassandra-4.0` module in `cassandra-4.14` but I'll
let you confirm this.~~ -> Cassandra-4.4 is enough.

---------

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2023-03-08 07:55:00 -08:00
dependabot[bot] 583e2a76f8
Bump byteBuddyVersion from 1.14.0 to 1.14.1 (#8001)
Bumps `byteBuddyVersion` from 1.14.0 to 1.14.1.
Updates `net.bytebuddy:byte-buddy` from 1.14.0 to 1.14.1
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/raphw/byte-buddy/blob/master/release-notes.md">net.bytebuddy:byte-buddy's
changelog</a>.</em></p>
<blockquote>
<h2>Byte Buddy release notes</h2>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="5ef0fa6076"><code>5ef0fa6</code></a>
[maven-release-plugin] prepare release byte-buddy-1.14.1</li>
<li><a
href="bada1525a2"><code>bada152</code></a>
[release] Release new version</li>
<li><a
href="334128e2f8"><code>334128e</code></a>
Update Eclipse lifecycle mapping.</li>
<li><a
href="876d66702e"><code>876d667</code></a>
Add additional scope for Maven plugin.</li>
<li><a
href="665a090c73"><code>665a090</code></a>
Add checksums.</li>
<li><a
href="537c61344e"><code>537c613</code></a>
Increment internal byte buddy and add release notes.</li>
<li><a
href="8c6f8619a0"><code>8c6f861</code></a>
[maven-release-plugin] prepare for next development iteration</li>
<li>See full diff in <a
href="https://github.com/raphw/byte-buddy/compare/byte-buddy-1.14.0...byte-buddy-1.14.1">compare
view</a></li>
</ul>
</details>
<br />

Updates `net.bytebuddy:byte-buddy-dep` from 1.14.0 to 1.14.1
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/raphw/byte-buddy/blob/master/release-notes.md">net.bytebuddy:byte-buddy-dep's
changelog</a>.</em></p>
<blockquote>
<h2>Byte Buddy release notes</h2>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="5ef0fa6076"><code>5ef0fa6</code></a>
[maven-release-plugin] prepare release byte-buddy-1.14.1</li>
<li><a
href="bada1525a2"><code>bada152</code></a>
[release] Release new version</li>
<li><a
href="334128e2f8"><code>334128e</code></a>
Update Eclipse lifecycle mapping.</li>
<li><a
href="876d66702e"><code>876d667</code></a>
Add additional scope for Maven plugin.</li>
<li><a
href="665a090c73"><code>665a090</code></a>
Add checksums.</li>
<li><a
href="537c61344e"><code>537c613</code></a>
Increment internal byte buddy and add release notes.</li>
<li><a
href="8c6f8619a0"><code>8c6f861</code></a>
[maven-release-plugin] prepare for next development iteration</li>
<li>See full diff in <a
href="https://github.com/raphw/byte-buddy/compare/byte-buddy-1.14.0...byte-buddy-1.14.1">compare
view</a></li>
</ul>
</details>
<br />

Updates `net.bytebuddy:byte-buddy-agent` from 1.14.0 to 1.14.1
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/raphw/byte-buddy/blob/master/release-notes.md">net.bytebuddy:byte-buddy-agent's
changelog</a>.</em></p>
<blockquote>
<h2>Byte Buddy release notes</h2>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="5ef0fa6076"><code>5ef0fa6</code></a>
[maven-release-plugin] prepare release byte-buddy-1.14.1</li>
<li><a
href="bada1525a2"><code>bada152</code></a>
[release] Release new version</li>
<li><a
href="334128e2f8"><code>334128e</code></a>
Update Eclipse lifecycle mapping.</li>
<li><a
href="876d66702e"><code>876d667</code></a>
Add additional scope for Maven plugin.</li>
<li><a
href="665a090c73"><code>665a090</code></a>
Add checksums.</li>
<li><a
href="537c61344e"><code>537c613</code></a>
Increment internal byte buddy and add release notes.</li>
<li><a
href="8c6f8619a0"><code>8c6f861</code></a>
[maven-release-plugin] prepare for next development iteration</li>
<li>See full diff in <a
href="https://github.com/raphw/byte-buddy/compare/byte-buddy-1.14.0...byte-buddy-1.14.1">compare
view</a></li>
</ul>
</details>
<br />

Updates `net.bytebuddy:byte-buddy-gradle-plugin` from 1.14.0 to 1.14.1


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>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2023-03-08 08:58:59 +00:00
dependabot[bot] fba3df3b5a
Bump io.github.gradle-nexus.publish-plugin from 1.2.0 to 1.3.0 (#8002)
Bumps io.github.gradle-nexus.publish-plugin from 1.2.0 to 1.3.0.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=io.github.gradle-nexus.publish-plugin&package-manager=gradle&previous-version=1.2.0&new-version=1.3.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-08 09:48:58 +02:00
James Moessis 3f45f755a9
Spring Webflux Library Instrumentation (#7899)
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7436

* Created new Module `spring-webflux-5.3` which contains only
server-side library instrumentation
* Minimum supported version is 5.3 because there are various problems in
older versions of reactor and webflux that prevent a few of the tests
from passing.
* Moved existing `spring-webflux-5.0` (webclient instrumentation) into a
common `spring-webflux` folder next to the 5.3 (server) instrumentation.
Moved the README to the parent folder so the docs are cohesive between
client/server instrumentation.
* Implemented `WebFilter` which instruments the server-side 
* Depends on the `reactor-3.1` instrumentation to pass the context
around. Registers the react hook when it creates the `WebFilter`
* Tests using the standard HTTP server test suite

---------

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2023-03-08 08:43:46 +01:00
dependabot[bot] d6c3fdb9c4
Bump net.bytebuddy:byte-buddy-dep from 1.14.0 to 1.14.1 in /examples/distro (#8003)
Bumps
[net.bytebuddy:byte-buddy-dep](https://github.com/raphw/byte-buddy) from
1.14.0 to 1.14.1.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/raphw/byte-buddy/blob/master/release-notes.md">net.bytebuddy:byte-buddy-dep's
changelog</a>.</em></p>
<blockquote>
<h2>Byte Buddy release notes</h2>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="5ef0fa6076"><code>5ef0fa6</code></a>
[maven-release-plugin] prepare release byte-buddy-1.14.1</li>
<li><a
href="bada1525a2"><code>bada152</code></a>
[release] Release new version</li>
<li><a
href="334128e2f8"><code>334128e</code></a>
Update Eclipse lifecycle mapping.</li>
<li><a
href="876d66702e"><code>876d667</code></a>
Add additional scope for Maven plugin.</li>
<li><a
href="665a090c73"><code>665a090</code></a>
Add checksums.</li>
<li><a
href="537c61344e"><code>537c613</code></a>
Increment internal byte buddy and add release notes.</li>
<li><a
href="8c6f8619a0"><code>8c6f861</code></a>
[maven-release-plugin] prepare for next development iteration</li>
<li>See full diff in <a
href="https://github.com/raphw/byte-buddy/compare/byte-buddy-1.14.0...byte-buddy-1.14.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=net.bytebuddy:byte-buddy-dep&package-manager=gradle&previous-version=1.14.0&new-version=1.14.1)](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-08 07:55:24 +02:00
Lauri Tulmin b394bab2ce
Rework pulsar tests (#8000) 2023-03-08 07:48:59 +02:00
Lauri Tulmin a51535d08e
Test http client captured headers (#7993) 2023-03-07 20:05:29 +02:00
Lauri Tulmin 2b91879952
Rename pulsar package from v28 to v2_8 (#7999) 2023-03-07 17:03:48 +01:00
Tao Jiuming dc2c4f630a
[enhance][pulsar] add apache-pulsar client support (#5926)
Fix:
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/2107

Motivation:
Support apache pulsar client from version 2.8.0 to lastest.

---------

Co-authored-by: daojun <jmtao@streamnative.io>
2023-03-07 16:19:49 +02:00
dependabot[bot] deafc5f8cd
Bump gradle.plugin.com.github.johnrengelman:shadow from 7.1.2 to 8.0.0 (#7921)
Bumps gradle.plugin.com.github.johnrengelman:shadow from 7.1.2 to 8.0.0.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=gradle.plugin.com.github.johnrengelman:shadow&package-manager=gradle&previous-version=7.1.2&new-version=8.0.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-07 16:04:32 +02:00
Lauri Tulmin 05294de5e6
Disable generateLicenseReport task unless it is explicitly run (#7995)
After gradle 8 update gradle started complaining that other tasks depend
on `generateLicenseReport` output. Hopefully disabling this task during
regular builds fixes this.
2023-03-07 16:02:57 +02:00
Mateusz Rzeszutek a217e77290
Add HTTP client spans&metrics to Ktor entry in the supported libs doc (#7997)
See #7982
2023-03-07 16:02:40 +02:00
Alaksiej Ščarbaty 3b4aeebd6d
Ktor client instrumentation (#7982)
Client implementation for Ktor 2.0.
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/4972.

- Moved server instrumentation under `server` package
- Implemented a plugin for ktor `HttpClient`
2023-03-07 13:50:53 +01:00
dependabot[bot] 9a9a42b837
Bump io.quarkus.platform:quarkus-bom from 2.16.3.Final to 2.16.4.Final (#7974)
Bumps
[io.quarkus.platform:quarkus-bom](https://github.com/quarkusio/quarkus-platform)
from 2.16.3.Final to 2.16.4.Final.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="4d34799461"><code>4d34799</code></a>
[maven-release-plugin] prepare release 2.16.4.Final</li>
<li><a
href="96101cf3a3"><code>96101cf</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/quarkusio/quarkus-platform/issues/778">#778</a>
from metacosm/2.16</li>
<li><a
href="50bae2c2ed"><code>50bae2c</code></a>
Update to Quarkus 2.16.4.Final</li>
<li><a
href="3ddee572e2"><code>3ddee57</code></a>
Update QOSDK to 5.1.1, skipping failing tests for now</li>
<li><a
href="e241821a11"><code>e241821</code></a>
Update QOSDK to 5.1.0</li>
<li><a
href="00b4468063"><code>00b4468</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/quarkusio/quarkus-platform/issues/775">#775</a>
from Naros/debezium-2.1.2-upgrade-2.16</li>
<li><a
href="e4a62d3077"><code>e4a62d3</code></a>
Upgrade to Debezium 2.1.2.Final</li>
<li><a
href="6a7cd63b3e"><code>6a7cd63</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/quarkusio/quarkus-platform/issues/774">#774</a>
from loicmathieu/gcp-1-4-0</li>
<li><a
href="05b61d3147"><code>05b61d3</code></a>
Upgrade to Google Cloud Services 1.4</li>
<li><a
href="03ed71ad15"><code>03ed71a</code></a>
[maven-release-plugin] prepare for next development iteration</li>
<li>See full diff in <a
href="https://github.com/quarkusio/quarkus-platform/compare/2.16.3.Final...2.16.4.Final">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=io.quarkus.platform:quarkus-bom&package-manager=gradle&previous-version=2.16.3.Final&new-version=2.16.4.Final)](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-07 12:15:37 +01:00
dependabot[bot] 5597602ada
Bump org.jetbrains.kotlin.jvm from 1.8.0 to 1.8.10 (#7717)
Bumps org.jetbrains.kotlin.jvm from 1.7.22 to 1.8.10.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.jetbrains.kotlin.jvm&package-manager=gradle&previous-version=1.7.22&new-version=1.8.10)](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-07 12:14:53 +01:00
dependabot[bot] f2e2019713
Bump io.quarkus from 2.16.3.Final to 2.16.4.Final (#7961)
Bumps io.quarkus from 2.16.3.Final to 2.16.4.Final.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=io.quarkus&package-manager=gradle&previous-version=2.16.3.Final&new-version=2.16.4.Final)](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-07 12:08:44 +01:00
dependabot[bot] 6f5d0ce68f
Bump gradle.plugin.com.github.johnrengelman:shadow from 7.1.2 to 8.0.0 in /examples/distro (#7922)
Bumps gradle.plugin.com.github.johnrengelman:shadow from 7.1.2 to 8.0.0.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=gradle.plugin.com.github.johnrengelman:shadow&package-manager=gradle&previous-version=7.1.2&new-version=8.0.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-07 12:51:43 +02:00
dependabot[bot] 166d9714ed
Bump com.github.johnrengelman.shadow from 7.1.2 to 8.1.0 in /examples/extension (#7923)
Bumps com.github.johnrengelman.shadow from 7.1.2 to 8.1.0.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.github.johnrengelman.shadow&package-manager=gradle&previous-version=7.1.2&new-version=8.1.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-07 12:51:13 +02:00
dependabot[bot] c3749f16f9
Bump org.springframework.boot:spring-boot-starter-web from 3.0.3 to 3.0.4 (#7973)
Bumps
[org.springframework.boot:spring-boot-starter-web](https://github.com/spring-projects/spring-boot)
from 3.0.3 to 3.0.4.
<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.4</h2>
<h2>🐞 Bug Fixes</h2>
<ul>
<li>Maven plugin uses timezone-local timestamps when outputTimestamp is
used <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34430">#34430</a></li>
<li>org.springframework.boot.web.embedded.jetty.GracefulShutdown uses
the wrong class to create its logger <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34419">#34419</a></li>
<li><code>@ConfigurationProperties</code> with initialized nested record
properties values no longer bind <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34407">#34407</a></li>
<li>Custom ConfigDataLocationResolver/ConfigDataLoader fails in 3.0.x
when combined with spring-boot-devtools <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34372">#34372</a></li>
<li>defaultTracingObservationHandler is not ordered as documented <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/pull/34216">#34216</a></li>
<li>Spring Boot 3 does not provide a configuration property for
configuring red metrics custom tag keys <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34194">#34194</a></li>
</ul>
<h2>📔 Documentation</h2>
<ul>
<li>Document support for Gradle 8 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34462">#34462</a></li>
<li>Update Batch documentation <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/pull/34437">#34437</a></li>
<li>Add link to Failover starter <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34422">#34422</a></li>
<li>Fix typo in external-config.adoc <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34414">#34414</a></li>
<li>Fix typo <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/pull/34398">#34398</a></li>
<li>Use plugins DSL consistently in Spring Boot Gradle Plugin docs <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34391">#34391</a></li>
</ul>
<h2>🔨 Dependency Upgrades</h2>
<ul>
<li>Upgrade to Couchbase Client 3.4.3 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34445">#34445</a></li>
<li>Upgrade to Dropwizard Metrics 4.2.17 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34446">#34446</a></li>
<li>Upgrade to Jetty 11.0.14 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34447">#34447</a></li>
<li>Upgrade to Reactor Bom 2022.0.4 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34444">#34444</a></li>
<li>Upgrade to Spring Data Bom 2022.0.3 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34439">#34439</a></li>
<li>Upgrade to Spring Framework 6.0.6 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34440">#34440</a></li>
<li>Upgrade to Spring Kafka 3.0.4 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34441">#34441</a></li>
</ul>
<h2>❤️ Contributors</h2>
<p>Thank you to all the contributors who worked on this release:</p>
<p><a
href="https://github.com/1993heqiang"><code>@​1993heqiang</code></a>, <a
href="https://github.com/anandmnair"><code>@​anandmnair</code></a>, <a
href="https://github.com/dalbani"><code>@​dalbani</code></a>, <a
href="https://github.com/fmbenhassine"><code>@​fmbenhassine</code></a>,
<a href="https://github.com/izeye"><code>@​izeye</code></a>, <a
href="https://github.com/jongwooo"><code>@​jongwooo</code></a>, and <a
href="https://github.com/ttddyy"><code>@​ttddyy</code></a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="16218bcb52"><code>16218bc</code></a>
Release v3.0.4</li>
<li><a
href="4370757fb2"><code>4370757</code></a>
Use Java 17 in Maven integration tests</li>
<li><a
href="5c43e42839"><code>5c43e42</code></a>
Merge branch '2.7.x' into 3.0.x</li>
<li><a
href="95cd0f2435"><code>95cd0f2</code></a>
Test Boot's Maven Plugin against Maven 3.9.0</li>
<li><a
href="e998303282"><code>e998303</code></a>
Upgrade to Spring Data Bom 2022.0.3</li>
<li><a
href="77932d92ea"><code>77932d9</code></a>
Merge branch '2.7.x' into 3.0.x</li>
<li><a
href="ac27c3cf7d"><code>ac27c3c</code></a>
Upgrade to Gradle Enterprise Gradle plugin 3.12.4</li>
<li><a
href="6a95f44f67"><code>6a95f44</code></a>
Merge branch '2.7.x' into 3.0.x</li>
<li><a
href="68a1dd3a76"><code>68a1dd3</code></a>
Document support for Gradle 8</li>
<li><a
href="03dd666818"><code>03dd666</code></a>
Merge branch '2.7.x' into 3.0.x</li>
<li>Additional commits viewable in <a
href="https://github.com/spring-projects/spring-boot/compare/v3.0.3...v3.0.4">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.3&new-version=3.0.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-07 10:41:27 +01:00
Lauri Tulmin 0e15a47e93
Upgrade to gradle 8.0.2 (#7978) 2023-03-07 10:29:26 +02:00
Trask Stalnaker a7dc2ef5a6
Fix CodeQL build (#7991)
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2023-03-07 10:14:26 +02:00
Lauri Tulmin 46861382e8
Check that extracting extension jar doesn't escape designated directory (#7908)
Mostly to appease code scanners.
2023-03-07 09:00:56 +02:00
Mateusz Rzeszutek dc12a5fca8
Add utility for tracking HTTP resends to instrumentation-api (#7986)
Extracted from #7652 - I figured this'll be useful on its own in some of
the POCs/prototypes that we'll make
2023-03-07 09:00:19 +02:00
Lauri Tulmin 160ce88aca
Set smoke test image tag before workflow branches (#7979)
Resolves
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7969
2023-03-07 08:56:36 +02:00
Lauri Tulmin 1da7d55989
Increase rocketmq request timeout (#7987)
Same as
https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/7968
2023-03-07 08:56:08 +02:00
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