Commit Graph

30 Commits

Author SHA1 Message Date
dependabot[bot] c1b69ed7ff
Bump net.bytebuddy:byte-buddy-agent from 1.12.22 to 1.12.23 (#729) 2023-02-06 14:41:31 -08:00
jack-berg 6453d874e9
Jfr streaming version (#721)
Resolves #707. Builds on #716. 

Turns out this wasn't a good first issue because there was some gradle
buildSrc work needed to add a file with the version that the source code
could read. Lifted the source for this from
[opentelemetry-java](https://github.com/open-telemetry/opentelemetry-java/blob/main/buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts#L144-L165).

---------

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2023-02-02 08:27:25 -06:00
dependabot[bot] 5a1f1e0719
Bump byte-buddy-agent from 1.12.21 to 1.12.22 (#688) 2023-01-16 19:54:32 -08:00
dependabot[bot] e3e1a6643d
Bump byte-buddy-agent from 1.12.20 to 1.12.21 (#675)
Bumps [byte-buddy-agent](https://github.com/raphw/byte-buddy) from
1.12.20 to 1.12.21.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/raphw/byte-buddy/releases">byte-buddy-agent's
releases</a>.</em></p>
<blockquote>
<h2>Byte Buddy 1.12.21</h2>
<ul>
<li>Create a Gradle source set for each JVM build automatically to
reduce boilerplate.</li>
<li>Fix Gradle plugin class loading to use correct class loader.</li>
<li>Use updated release plugin to avoid outdated timestamp in jar.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/raphw/byte-buddy/blob/master/release-notes.md">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="adb0638f70"><code>adb0638</code></a>
[maven-release-plugin] prepare release byte-buddy-1.12.21</li>
<li><a
href="f326a3e909"><code>f326a3e</code></a>
[release] Release new version</li>
<li><a
href="5ffe97cd98"><code>5ffe97c</code></a>
Correct class loading and use maybe create for configuration.</li>
<li><a
href="a070a5d19f"><code>a070a5d</code></a>
Avoid class loader creation if not needed.</li>
<li><a
href="cf84b72bd6"><code>cf84b72</code></a>
Adjust plugin to configure implicit source set.</li>
<li><a
href="deae823591"><code>deae823</code></a>
Minor refactoring.</li>
<li><a
href="283c195c26"><code>283c195</code></a>
Avoid skipping Gradle plugin if no transformations are explicitly
configured.</li>
<li><a
href="a305b20987"><code>a305b20</code></a>
Add missing checksums.</li>
<li><a
href="db03b3b7f5"><code>db03b3b</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/raphw/byte-buddy/issues/1381">#1381</a>
from 0dinD/fix-gitignore-build-dir</li>
<li><a
href="4a7fbb1ef8"><code>4a7fbb1</code></a>
Fix .gitignore rule for Gradle build directory</li>
<li>Additional commits viewable in <a
href="https://github.com/raphw/byte-buddy/compare/byte-buddy-1.12.20...byte-buddy-1.12.21">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=net.bytebuddy:byte-buddy-agent&package-manager=gradle&previous-version=1.12.20&new-version=1.12.21)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually 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-01-06 16:24:07 -06:00
dependabot[bot] f937962e6c
Bump byte-buddy-agent from 1.12.19 to 1.12.20 (#647)
Bumps [byte-buddy-agent](https://github.com/raphw/byte-buddy) from
1.12.19 to 1.12.20.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/raphw/byte-buddy/releases">byte-buddy-agent's
releases</a>.</em></p>
<blockquote>
<h2>Byte Buddy 1.12.20</h2>
<ul>
<li>Avoid stack overflow error when type variable cannot be resolve
during error message generation.</li>
<li>Allow dumping error message to file when remote attach fails.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/raphw/byte-buddy/blob/master/release-notes.md">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="f04e2e41a2"><code>f04e2e4</code></a>
[maven-release-plugin] prepare release byte-buddy-1.12.20</li>
<li><a
href="a421cf6671"><code>a421cf6</code></a>
[release] Release new version</li>
<li><a
href="fc5a461d6f"><code>fc5a461</code></a>
[release] Release new version</li>
<li><a
href="810dcb131d"><code>810dcb1</code></a>
Avoid default encoding.</li>
<li><a
href="40e57d6639"><code>40e57d6</code></a>
Avoid method not supported in Java 5.</li>
<li><a
href="44f4ad2666"><code>44f4ad2</code></a>
Change comment.</li>
<li><a
href="a55ed2ccbe"><code>a55ed2c</code></a>
Add property that allows dumping an error message to a file location for
the ...</li>
<li><a
href="c912dcf40c"><code>c912dcf</code></a>
Avoid stack overflow when type variables cannot be found.</li>
<li><a
href="d3145c8365"><code>d3145c8</code></a>
Avoid current.year option for substitution.</li>
<li><a
href="f78056f870"><code>f78056f</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.12.19...byte-buddy-1.12.20">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=net.bytebuddy:byte-buddy-agent&package-manager=gradle&previous-version=1.12.19&new-version=1.12.20)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually 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>
2022-12-15 12:29:23 -08:00
Trask Stalnaker fa630d187d
Add more linting (#611) 2022-11-22 08:44:28 -08:00
dependabot[bot] 1d77c0859b
Bump byte-buddy-agent from 1.12.18 to 1.12.19 (#610)
Bumps [byte-buddy-agent](https://github.com/raphw/byte-buddy) from
1.12.18 to 1.12.19.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/raphw/byte-buddy/releases">byte-buddy-agent's
releases</a>.</em></p>
<blockquote>
<h2>Byte Buddy 1.12.19</h2>
<ul>
<li>Avoid possible lock through circular class loading of
<code>TypeDescription</code> subtypes.</li>
<li>Avoid access error when using unsafe API on Java 17 with an active
security manager.</li>
<li>Close URL class loader used in Gradle plugin.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/raphw/byte-buddy/blob/master/release-notes.md">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="c93425a1e9"><code>c93425a</code></a>
[maven-release-plugin] prepare release byte-buddy-1.12.19</li>
<li><a
href="b1f4e9b4ee"><code>b1f4e9b</code></a>
[release] New release</li>
<li><a
href="8d17e3a2a3"><code>8d17e3a</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/raphw/byte-buddy/issues/1359">#1359</a>
from eyalkoren/protection-domain</li>
<li><a
href="c57139e69c"><code>c57139e</code></a>
Using explicit ProtectionDomain in dynamically loaded classes</li>
<li><a
href="ff8be9a91b"><code>ff8be9a</code></a>
Attempt cloning protection domain from accessible object to avoid
security ma...</li>
<li><a
href="6fe45f76ef"><code>6fe45f7</code></a>
Make s in message optional.</li>
<li><a
href="9023501243"><code>9023501</code></a>
Fix scope of summary variable.</li>
<li><a
href="02091f13f4"><code>02091f1</code></a>
Update codeql-analysis.yml</li>
<li><a
href="628b6a90c5"><code>628b6a9</code></a>
Close class loader in Gradle plugin, if possible.</li>
<li><a
href="9a81856525"><code>9a81856</code></a>
Remove unused import.</li>
<li>Additional commits viewable in <a
href="https://github.com/raphw/byte-buddy/compare/byte-buddy-1.12.18...byte-buddy-1.12.19">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=net.bytebuddy:byte-buddy-agent&package-manager=gradle&previous-version=1.12.18&new-version=1.12.19)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually 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>
2022-11-18 12:29:21 +01:00
Jean Bisutti 2567feb3ed
Add explanations to the runtime attach readme (#524)
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2022-10-14 09:01:02 -07:00
dependabot[bot] d2a9cfef87
Bump byte-buddy-agent from 1.12.17 to 1.12.18 (#511) 2022-10-11 10:58:56 -07:00
Jean Bisutti 31708918e8
Fix no Class in opentelemetry-runtime-attach jar (#509)
Fix #508
2022-10-11 10:57:59 -07:00
dependabot[bot] 6aad3a2f52
Bump byte-buddy-agent from 1.11.18 to 1.12.17 (#462) 2022-09-22 10:48:25 -07:00
Trask Stalnaker 3baf42a87b
Update to gradle 7.5.1 (#415)
* Update to gradle 7.5.1

* Update to 7.5.1

* Fix

* Fix
2022-09-05 16:22:16 +02:00
Trask Stalnaker da6dd00ea1
Update SDK to 1.17.0 (#420)
* Update SDK to 1.17.0

* Fix
2022-08-19 10:42:42 -07:00
Jean Bisutti ca6187a177
Prevent the runtime attachment from launching multiple times (#409) 2022-07-26 07:18:23 +02:00
Trask Stalnaker 46ac85edd7
Remove hardcoded agent version (#392) 2022-07-12 09:14:15 -07:00
Jean Bisutti 5bef441779
Improve exception handling and documentation of runtime attachment (#388) 2022-07-12 09:13:25 -07:00
Trask Stalnaker 7d19e674f3
Add @jeanbisutti as a runtime attach component owner (#391)
* Add @jeanbisutti as a runtime attach component owner

* Fix link

* Fix link
2022-07-11 10:22:46 -07:00
Trask Stalnaker 1f959cdd7f
Move runtime attach modules under single top-level directory (#385)
* Move runtime attach modules under single top-level directory

* Fix link

* Fix link
2022-07-11 08:43:01 -07:00
Jean Bisutti 4645beca88
Fix "Class path contains multiple SLF4J bindings" during runtime atta… (#380)
* Fix "Class path contains multiple SLF4J bindings" during runtime attachment

* Update runtime-attach/build.gradle.kts

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

* Renaming

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-07-08 10:44:40 -07:00
Jean Bisutti bdfa232a04
Remove logger from runtime attachment (#371)
* Remove logger from runtime attachment

* Update runtime-attach/src/main/java/io/opentelemetry/contrib/attach/RuntimeAttach.java

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-06-21 10:56:59 -07:00
Jean Bisutti f925f74f9d
Fix "URI is not hierarchical" during runtime attachment (#359)
* Fix "java.lang.IllegalArgumentException: URI is not hierarchical" during runtime attachment

* Fix build issue

* Fiw file creation and deletion

* Add null checks

* Only delete jar file on JVM exit

* Fix merge

* Fix spotless

* Remove null checks

* Spotless

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-06-17 15:34:26 -07:00
Jean Bisutti 658daade55
Runtime attachment additions (#354)
* Add tests on runtime attachment

* Add log when agent is disabled with otel.javaagent.enabled property or OTEL_JAVAAGENT_ENABLED environment variable

* Do not try to attach if agent is already attached

* Do not try to attach if attachment is not asked for the main thread

* Add log if an unexpected issue has happened during attachment

* Add javadoc

* Add information to the Readme

* Format javadoc

* Fix mistake in Readme

* Update runtime-attach/build.gradle.kts

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

* Update runtime-attach/README.md

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

* Update runtime-attach/src/main/java/io/opentelemetry/contrib/attach/RuntimeAttach.java

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

* Update runtime-attach/src/main/java/io/opentelemetry/contrib/attach/RuntimeAttach.java

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

* Update runtime-attach/src/main/java/io/opentelemetry/contrib/attach/RuntimeAttach.java

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

* Update runtime-attach/build.gradle.kts

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

* Replace triple ``` by single `

* Log at debug level in shouldAttach() method

* Log at warn level if the runtime attachment is not requested from main thread

* Logger name in lower case as in OTel agent

* Add space in class Javadoc

* Add space in Readme

* Update Javadoc of method

* Update runtime-attach/src/main/java/io/opentelemetry/contrib/attach/RuntimeAttach.java

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

* Don't attach if attachment is not requested from the main method

* Inline local variable

* Move opentelemetry-javaagent to dependency management

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-06-17 13:13:17 -07:00
Trask Stalnaker e345310597
Sync github actions, including release workflow (#274)
* Sync github actions, other than release actions

* Add release workflow

* Remove nebula

* fix

* Add missing workflow

* Fix link

* more

* Updates

* Sentence case

* more
2022-03-29 10:21:24 -07:00
Trask Stalnaker 36eae59bce
Use relative links (#273) 2022-03-25 14:11:19 +09:00
Trask Stalnaker 383582cfa6
Add more component owners (#172)
* Add more component owners

* Fix the build
2022-01-07 14:18:25 -08:00
Anuraag Agrawal 6ed9ba70d1
Fail build on warnings (#170)
* Fail build on warnings

* Update dependencyManagement/build.gradle.kts

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-01-07 16:15:27 +09:00
Anuraag Agrawal 85c6cf0429
Fix errorprone warnings (#158) 2021-12-23 15:23:02 +09:00
Nikita Salnikov-Tarnovski 858dbae93b
Controlling programmatic attach of the javaagent with configuration (#110)
* Controlling programmatic attach of the javaagent with configuration

* Spotless
2021-10-11 16:37:33 +09:00
Trask Stalnaker b5d88e223c
Update spotless config and add .editorconfig (#100)
* Update spotless config and add .editorconfig

* spotlessApply
2021-09-27 17:16:23 +09:00
Nikita Salnikov-Tarnovski 69f9a20bc3
Allowing programmatic attach of Javaagent (#95) 2021-09-24 13:26:29 -07:00