Commit Graph

162 Commits

Author SHA1 Message Date
dependabot[bot] 42ecfbd931
Bump byte-buddy-gradle-plugin from 1.12.10 to 1.12.16 in /gradle-plugins (#6657)
Bumps byte-buddy-gradle-plugin from 1.12.10 to 1.12.16.


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=net.bytebuddy:byte-buddy-gradle-plugin&package-manager=gradle&previous-version=1.12.10&new-version=1.12.16)](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-09-19 13:56:33 -07:00
dependabot[bot] 778ee6b5e0
Bump byte-buddy-dep from 1.12.10 to 1.12.16 in /gradle-plugins (#6661)
Bumps [byte-buddy-dep](https://github.com/raphw/byte-buddy) from 1.12.10
to 1.12.16.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/raphw/byte-buddy/releases">byte-buddy-dep's
releases</a>.</em></p>
<blockquote>
<h2>Byte Buddy 1.12.16</h2>
<ul>
<li>Fix Gradle release script to publish plugin.</li>
</ul>
<h2>Byte Buddy 1.12.15</h2>
<ul>
<li>Introduce ClassVisitorFactory which allows to translate to and from
class wrappers in a different ASM namespace.</li>
<li>Allow builders to change to ClassVisitors.</li>
<li>Add support for Android instrumentation from Gradle plugin.</li>
</ul>
<h2>Byte Buddy 1.12.14</h2>
<ul>
<li>Add <code>wrap</code> method to <code>DynamicType.Builder</code>
that allows for the representation of a dynamic type via a
<code>ClassVisitor</code>.</li>
<li>Add <code>ClassVisitorFactory</code> that allows to translate
between Byte Buddy's, the original, or other shaded representations of
ASM.</li>
<li>Fix visibility check for types in the default package.</li>
<li>Return correct value for types in the default package.</li>
</ul>
<h2>Byte Buddy 1.12.13</h2>
<ul>
<li>Avoid duplicate application of Byte Buddy Maven plugin.</li>
<li>Allow for class path discovery of <code>Plugin</code>s when using
Maven.</li>
<li>Fix build cache when using Byte Buddy Gradle plugin.</li>
<li>Allow <code>Plugin</code>s to define new types prior to
transformation.</li>
</ul>
<h2>Byte Buddy 1.12.12</h2>
<ul>
<li>Use correct annotation in Byte Buddy Gradle plugin.</li>
<li>Correctly resolve generified anonymous/local types that are declared
within a method.</li>
</ul>
<h2>Byte Buddy 1.12.11</h2>
<ul>
<li>Remove use of thread-local to guarantee Loom compatibility.</li>
<li>Allow usage of byte-buddy-parent as BOM for imports.</li>
<li>Add convenience for Maven to disable type validation on entry
point.</li>
<li>Allow Gradle plugin to consume pluginName property and discoverySet
to only load plugins in the plugin class loader.</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-dep's
changelog</a>.</em></p>
<blockquote>
<h3>22. August 2022: version 1.12.16</h3>
<ul>
<li>Fix Gradle release script to publish plugin.</li>
</ul>
<h3>22. August 2022: version 1.12.15</h3>
<ul>
<li>Introduce <code>ClassVisitorFactory</code> which allows to translate
to and from class wrappers in a different ASM namespace.</li>
<li>Allow builders to change to <code>ClassVisitors</code>.</li>
<li>Add support for Android instrumentation from Gradle plugin.</li>
</ul>
<h3>22. August 2022: version 1.12.14</h3>
<ul>
<li>Add <code>wrap</code> method to <code>DynamicType.Builder</code>
that allows for the representation of a dynamic type via a
<code>ClassVisitor</code>.</li>
<li>Add <code>ClassVisitorFactory</code> that allows to translate
between Byte Buddy's, the original, or other shaded representations of
ASM.</li>
<li>Fix visibility check for types in the default package.</li>
<li>Return correct value for types in the default package.</li>
</ul>
<h3>1. August 2022: version 1.12.13</h3>
<ul>
<li>Avoid duplicate application of Byte Buddy Maven plugin.</li>
<li>Allow for class path discovery of <code>Plugin</code>s when using
Maven.</li>
<li>Fix build cache when using Byte Buddy Gradle plugin.</li>
<li>Allow <code>Plugin</code>s to define new types prior to
transformation.</li>
</ul>
<h3>25. June 2022: version 1.12.12</h3>
<ul>
<li>Use correct annotation in Byte Buddy Gradle plugin.</li>
<li>Correctly resolve generified anonymous/local types that are declared
within a method.</li>
</ul>
<h3>22. June 2022: version 1.12.11</h3>
<ul>
<li>Remove use of thread-local to guarantee Loom compatibility.</li>
<li>Allow usage of <em>byte-buddy-parent</em> as BOM for imports.</li>
<li>Add convenience for Maven to disable type validation on entry
point.</li>
<li>Allow Gradle plugin to consume <em>pluginName</em> property and
<em>discoverySet</em> to only load plugins in the plugin class
loader.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="d6b51d39b9"><code>d6b51d3</code></a>
[maven-release-plugin] prepare release byte-buddy-1.12.16</li>
<li><a
href="a0a1d5ca4d"><code>a0a1d5c</code></a>
[release] Remove unused dependencies.</li>
<li><a
href="94a2fc3542"><code>94a2fc3</code></a>
[maven-release-plugin] prepare for next development iteration</li>
<li><a
href="9c44201282"><code>9c44201</code></a>
[maven-release-plugin] prepare release byte-buddy-1.12.15</li>
<li><a
href="7e749c54f4"><code>7e749c5</code></a>
[release] Improve readme and trigger new release.</li>
<li><a
href="09beea98d2"><code>09beea9</code></a>
Add missing semicolon.</li>
<li><a
href="ac15bfc205"><code>ac15bfc</code></a>
Add missing javadoc.</li>
<li><a
href="583251b5cf"><code>583251b</code></a>
Remove obsolete class.</li>
<li><a
href="94d7602dec"><code>94d7602</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/raphw/byte-buddy/issues/1317">#1317</a>
from LikeTheSalad/master</li>
<li><a
href="e48c26b358"><code>e48c26b</code></a>
Creating parent dir from parent file</li>
<li>Additional commits viewable in <a
href="https://github.com/raphw/byte-buddy/compare/byte-buddy-1.12.10...byte-buddy-1.12.16">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.12.10&new-version=1.12.16)](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-09-19 13:55:07 -07:00
Mateusz Rzeszutek 8b2b3281fe
Encapsulate logging (#6543)
* Encapsulate actual logging implementation better

* Apply suggestions from code review

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

* code review comments

* revert to the old slf4j package name

* spotless

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-09-12 13:22:26 -07:00
Lauri Tulmin 73b4b5b5c8
Update groovy and spock versions (#6521)
* Update groovy and spock versions

* testing-common shouldn't bundle junit api
2022-08-31 10:43:36 +03:00
Mateusz Rzeszutek 08f013f9d6
Update gradle to 7.5.1 (#6359)
* Update gradle to 7.5

* Bump to 7.5.1

* gradle 7.5.1 with jdk17

* spotless

* one more --add-opens

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
2022-08-12 12:03:43 +02:00
Trask Stalnaker 701ed54311
Use "class loader" instead of "classloader" consistently in docs and comments (#6236)
* Use "class loader" consistently instead of classloader

* Java comments too

* Fix bad merge
2022-06-30 14:57:07 -07:00
Trask Stalnaker d3be07eb1a
Better muzzle instrumentation exclusion (#6044)
* Better muzzle instrumentation exclusion

* set
2022-05-18 11:15:57 -07:00
Anuraag Agrawal 528360db8c
Update dependencies (#6007)
* Update dependencies

* Add maven to plugin repos

* Fix tests that fail with groovy 4.0.2 (#42)

Co-authored-by: Lauri Tulmin <tulmin@gmail.com>
2022-05-17 14:12:36 -07:00
Trask Stalnaker 9828aa5e12
Maybe fix (#5966)
* Make muzzle work

* Revert unrelated change

* Maybe fix

* fix

* Add comment
2022-05-04 10:34:38 -07:00
Trask Stalnaker 10d759e7c7
Update gradle in standalone modules (#5970) 2022-05-04 12:02:50 +03:00
Trask Stalnaker d17a0d7d9a
Instrument SpanKey directly (#5933)
* Instrument SpanKey directly

* feedback

* Make muzzle work

* Revert unrelated change
2022-05-03 14:56:33 -07:00
Mateusz Rzeszutek d919f84cf8
Merge javaagent-instrumentation-api into javaagent-extension-api (#5936)
* Merge javaagent-instrumentation-api into javaagent-extension-api

* remove some leftover references to javaagent-instrumentation-api

* add missing instrumentation-api to distro example
2022-04-28 20:11:15 -07:00
Anuraag Agrawal 7e428168ff
Update dependencies (#5777)
* Update dependencies

* Update licenses

* Exclude licenses from link check

* Exclude licenses from link check?
2022-04-08 20:00:53 +09:00
Trask Stalnaker 25856b8531
Muzzle CI experiment (#5594)
* Muzzle CI experiment

* Fix class loader leak

* --max-workers=4

* Concurrent jobs

* Update .github/workflows/muzzle.yml

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

* Simpler

* Add link to comment

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2022-03-18 09:57:02 -07:00
Lauri Tulmin 2ebe912fe4
GraphQL java instrumentation (#5583)
* GraphQL Java Initial Commit

* [WIP] First steps for GraphQL instrumentation, totally not ready

[skip ci]

* GraphQL Java instrumentation

* address review comments

* Apply suggestions from code review

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

* review feedback

* scope handling

* Apply suggestions from code review

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

* use spotless:off

* trigger build

* review comments

Co-authored-by: Jordie <xd@jrdie.nl>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-03-17 08:55:45 -07:00
Anuraag Agrawal 487a01eb3e
Update Gradle and build dependencies (#5531) 2022-03-09 09:09:20 -08:00
Anuraag Agrawal aeee5b4fae
Publish gradle-plugins to Maven Central (#5333)
* Publish gradle-plugins to Maven Central

* Update .github/workflows/release-gradle-plugins.yml

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-02-11 11:37:01 +09:00
Jordie 29702d537e
Spelling/grammar fix in MuzzleGradlePluginUtil.kt (#5142) 2022-01-17 10:33:41 -08:00
Trask Stalnaker eea7c0f1dc
Fix publishing gradle plugins (#5132) 2022-01-17 18:33:26 +01:00
Anuraag Agrawal a1274b7671
Mark recent gradlew executable (#5116) 2022-01-14 09:59:12 -08:00
Trask Stalnaker 00e0920913
Apply gradle github action everywhere (#5089) 2022-01-12 19:35:18 -08:00
Trask Stalnaker db8cd050a7
Add spotless to standalone subprojects (#5058)
* Update spotless version

* Add spotless to benchmark-overhead

* Add spotless to smoke-test images

* Add spotless to examples

* Apply spotless

* Resolve log4j conflict

* Apply spotless after upgrade
2022-01-10 12:46:52 -08:00
Anuraag Agrawal 478800e5de
Update byte buddy (#5037) 2022-01-07 20:30:08 +09:00
Anuraag Agrawal 46a885c4e8
Set bytebuddy task's classFileVersion (#5036) 2022-01-07 20:29:55 +09:00
Anuraag Agrawal 83c94e9554
Update Gradle and build dependencies (#4971) 2021-12-23 16:01:39 +02:00
Trask Stalnaker 47aacd3318
Add java.util.logging javaagent instrumentation (#4941)
* java.util.logging

* Update instrumentation/java-util-logging/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jul/JavaUtilLoggingInstrumentationModule.java

* sync

* Update instrumentation/java-util-logging/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jul/JavaUtilLoggingHelper.java

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

* Remove unused code

* Simplification

* Remove JBoss logger instrumentation

* Spotless

* Unroll

* Remove unused dependency

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-12-20 12:36:30 -08:00
Trask Stalnaker 08d626d3cc
Add muzzle option to override version limit (#4942) 2021-12-20 16:11:30 +02:00
Trask Stalnaker 9950c488c8
Fix example extension build (#4875)
* Fix example extension build

* Add CI to keep from breaking
2021-12-12 12:14:21 -08:00
Anuraag Agrawal 1f3b24a111
Update bytebuddy (#4864) 2021-12-10 17:33:04 +09:00
Anuraag Agrawal 458ebc5e55
Small cleanups to conventions projects. (#4839) 2021-12-09 14:55:09 -08:00
Anuraag Agrawal ca3919ea31
Update Gradle and build dependencies (#4808)
* Update Gradle and build dependencies

* Add spotless + Java 17 workaround

* Revert spotless for now

* Fix merge

* jvmTarget
2021-12-07 14:42:52 +09:00
Trask Stalnaker 3801bb38cc
Run muzzle check against OpenTelemetry API instrumentation (bridge) (#4797)
* Run muzzle check against bridge

* Simplify

* Renames
2021-12-06 11:58:01 -08:00
Nikita Salnikov-Tarnovski 99e82d70fa
Make gradle cache work when used from different locations (#4794) 2021-12-04 19:55:30 +02:00
Lauri Tulmin 8a33514551
update byte buddy to 1.11.22 (#4547) 2021-10-30 10:20:18 +03:00
Trask Stalnaker 37e24ec924
Sync gradle-plugins version with main project (#4248)
* Sync gradle-plugins version with main project

* More fixes

* Can rely on examples build against all branches now?

* Use common version.gradle.kts

* Update doc

* Simplify
2021-10-29 10:34:49 -07:00
Lauri Tulmin 17a85bbc22
Use byte-buddy-dep instead of byte-buddy (#4400)
* Use byte-buddy-dep instead of byte-buddy

* print stacktrace on examples failure

* try to fix gradle plugins

* try to fix extension build

* try to fix extension build

* try to fix extension build

* try to fix extension build

* try removing mavenLocal

* add mavenLocal plugin repository

* publish gradle-plugins to mavenLocal for examples ci build

* Fix bytebuddy exclusion
2021-10-19 13:46:48 -07:00
Nikita Salnikov-Tarnovski 2f5a40dda7
Prepare gradle plugins for release (#4419) 2021-10-19 10:37:16 +03:00
Lauri Tulmin 0cfc71c3c6
Support kafka streams 3 (#4236)
* Support kafka streams 3

* make thread local wider so it would work on all kafka-streams versions

* Move classes used by multiple instrumentations into bootstrap module to ensure that everybody uses the same copy of them

* spotless

* allow project as muzzle extra dependency

* add comment

* fix merge
2021-10-05 09:43:00 -07:00
Nikita Salnikov-Tarnovski f788d84e35
Remove muzzle from gradleplugins (#4183)
* Include gradle-plugins as a composite build

* Make gradle-plugins project independent from the main one

* Delete old ClassRef and friends

* Fixes

* Polish

* Polish

* Simplify
2021-09-24 15:59:03 +03:00
Mateusz Rzeszutek 2e74363bcd
Bump ByteBuddy's version to the latest one (#4194) 2021-09-23 17:37:27 +02:00
Mateusz Rzeszutek 74c1f55e35
Allow adding multiple ContextStore fields to one key class, part 3 (#4110) 2021-09-14 08:08:36 +02:00
Trask Stalnaker 62c604f2f5
Format java files in standalone projects (#4105) 2021-09-13 16:16:25 +09:00
Trask Stalnaker 7a2ddbd5b6
Bump gradle-plugins version to SNAPSHOT (#3995) 2021-08-30 09:02:03 -07:00
Trask Stalnaker 2b322cffcf
Bump gradle-plugins version (#3975)
* Bump gradle-plugins version

* Bump again for new release
2021-08-26 22:27:08 -07:00
Trask Stalnaker b7241cedd0
Support source sets output dirs in muzzle (#3980) 2021-08-26 22:09:59 -07:00
Trask Stalnaker 06bdd12d41
Bump gradle-plugins version (#3954) 2021-08-26 08:50:28 -07:00
Trask Stalnaker eb1a28cdba
Prepare for new gradle-plugins release (#3933)
* Prepare for new gradle-plugins release

* Fix to a real version
2021-08-25 13:30:44 -07:00
Trask Stalnaker 184aa37c71
Versioned helper resources, part 3 (#3891) 2021-08-23 16:45:49 -07:00
Mateusz Rzeszutek 421fec4cfe
Bump gradle-plugins to 0.4 (and fix one more thing in ReferencesPrinter) (#3818)
* Bump gradle-plugins to 0.4 (and fix one more thing in ReferencesPrinter)

* Use context class loader

* func -> action
2021-08-11 16:06:54 +02:00
Mateusz Rzeszutek bebb877017
Fix printMuzzleReferences gradle task (#3808)
* Fix printMuzzleReferences gradle task

* suppress SystemOut warnings

* bump gradle-plugins version
2021-08-10 12:10:29 -07:00
Nikita Salnikov-Tarnovski 32351d0bab
Publish muzze plugins to Gradle Plugin Portal only when manually requested. (#3763)
Restored publishing to Sonatype OSS repository on every change
2021-08-04 08:59:53 +03:00
Nikita Salnikov-Tarnovski 455574635f
Publish muzze plugins to Gradle Plugin Portal (#3720) 2021-08-03 16:49:27 +03:00
Nikita Salnikov-Tarnovski a167c5c2b1
Correctly use muzzleTooling configuration to allow for external additions (#3743) 2021-08-02 21:59:21 +03:00
Nikita Salnikov-Tarnovski b14e28513f
Muzzle classloading hell (#3708)
* Running muzzle check from the correct classloader

* Apply suggestions from code review

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

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2021-07-30 10:06:15 +03:00
Nikita Salnikov-Tarnovski 6a2ee3255a
Extract muzzle check plugin (#3657)
* Extract muzzle check plugin
2021-07-26 12:37:14 +03:00
Nikita Salnikov-Tarnovski c6f9bef90e
Use published muzzle generation plugin (#3639)
* Use published muzzle generation plugin
2021-07-22 11:46:49 +03:00
Nikita Salnikov-Tarnovski d71c63dbce
Use published muzzle code gen plugin (#3620) 2021-07-19 22:16:06 -07:00
Nikita Salnikov-Tarnovski 2077d23a62
Rename muzzle code gen plugin (#3592) 2021-07-15 20:29:50 -07:00
Nikita Salnikov-Tarnovski 6a9b3ae37f
More publishing fixes (#3591) 2021-07-15 21:50:47 +03:00
Nikita Salnikov-Tarnovski 1d4a1bfa73
Call correct tasks for publishing (#3586)
* Call correct tasks for publishing

* Don't close sonatype repo
2021-07-15 17:53:09 +03:00
Nikita Salnikov-Tarnovski d8dabf5c76
Publish gradle plugins to Sonatype (#3571)
* Publish gradle plugins to Sonatype

* Change artifact group
2021-07-15 14:07:10 +03:00
Nikita Salnikov-Tarnovski cbfd7e1a02
Trying to extract codegen plugin (#3521)
* Muzzle code generation moved to a separate plugin
* Restored old MuzzleCodeGenerationPlugin to use until the new one is published
* The simplest dependency management possible

Co-authored-by: Anuraag Agrawal <aanuraag@amazon.co.jp>
2021-07-14 17:08:47 +03:00