Bumps [maven-plugin-annotations](https://github.com/apache/maven-plugin-tools) from 3.6.4 to 3.7.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/apache/maven-plugin-tools/releases">maven-plugin-annotations's releases</a>.</em></p> <blockquote> <h2>3.7.0</h2> <h2>Bug</h2> <ul> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-298">MPLUGIN-298</a>] - The plugin descriptor generated by plugin:descriptor does not consider @ see javadoc taglets</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-394">MPLUGIN-394</a>] - Report-Mojo doesn't respect input encoding</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-403">MPLUGIN-403</a>] - Generating site reports for plugin results in NoSuchMethodError</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-404">MPLUGIN-404</a>] - JDK Requirements in plugin-info.html: Consider property "maven.compiler.release"</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-420">MPLUGIN-420</a>] - Parameters documentation inheriting @ since from Mojo can be confusing</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-428">MPLUGIN-428</a>] - Don't emit warning for missing javadoc URL of primitives</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-429">MPLUGIN-429</a>] - Don't emit warning for missing javadoc URI if no javadoc sources are configured</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-438">MPLUGIN-438</a>] - Parameter description should be taken from annotated item</li> </ul> <h2>New Feature</h2> <ul> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-9">MPLUGIN-9</a>] - Add link to javadoc in configuration description page for user defined types of Mojos.</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-396">MPLUGIN-396</a>] - Allow only @ Deprecated annotation without @ deprecated javadoc tag</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-400">MPLUGIN-400</a>] - add system requirements history section</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-402">MPLUGIN-402</a>] - report: allow to generate usage section in plugin-info.html with <!-- raw HTML omitted -->true<!-- raw HTML omitted --></li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-419">MPLUGIN-419</a>] - Allow @ Parameter on setters methods</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-423">MPLUGIN-423</a>] - Extract plugin report into its own plugin</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-427">MPLUGIN-427</a>] - report: Expose generics information of Collection and Map types</li> </ul> <h2>Improvement</h2> <ul> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-297">MPLUGIN-297</a>] - plugin-info.html should contain a better Usage section</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-390">MPLUGIN-390</a>] - Do not overwrite generate files with no content change</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-393">MPLUGIN-393</a>] - Upgrade to JUnit 5 and @ Inject annotations</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-398">MPLUGIN-398</a>] - Support for java 20 - ASM 9.4</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-405">MPLUGIN-405</a>] - Don't print empty Memory, Disk Space in System Requirements</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-408">MPLUGIN-408</a>] - simplification in helpmojo build</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-411">MPLUGIN-411</a>] - Get rid of plexus-compiler-manager from tests</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-412">MPLUGIN-412</a>] - Use Maven core artifacts in provided scope</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-417">MPLUGIN-417</a>] - report and descriptor goal need to evaluate Javadoc comments differently</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-433">MPLUGIN-433</a>] - Allow to reference aggregator javadoc from plugin report</li> </ul> <h2>Task</h2> <ul> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-378">MPLUGIN-378</a>] - Detect legacy/javadoc Mojo definitions, warn to use Java 5 annotations</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-389">MPLUGIN-389</a>] - Update level to Java 8</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-391">MPLUGIN-391</a>] - Deprecate scripting support for mojos</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-406">MPLUGIN-406</a>] - Deprecate requirements parameter in report Mojo</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-407">MPLUGIN-407</a>] - Remove duplicate code from PluginReport</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-409">MPLUGIN-409</a>] - Prepare for Doxia (Sitetools) 2.0.0</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-430">MPLUGIN-430</a>] - Fix documentation for maven-plugin-report-plugin</li> <li>[<a href="https://issues.apache.org/jira/browse/MPLUGIN-431">MPLUGIN-431</a>] - Remove deprecated items from new maven-plugin-report-plugin</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
|---|---|---|
| .. | ||
| agent-extension | ||
| agent-instrumenter | ||
| bootstrap | ||
| maven-plugin | ||
| test-app | ||
| README.md | ||
| build.gradle.kts | ||
README.md
OpenTelemetry Java static instrumenter
Structure
Agent instrumenter
Module enhancing OpenTelemetry Java Agent for static instrumentation. The modified agent can instrument and save a new JAR with all relevant instrumentations applied and necessary helper class-code included.
Generate a new application jar containing the static instrumentation
Execute the following command line with your application jar name and the desired output folder of the new jar:
java -javaagent:opentelemetry-static-agent.jar -cp <your-app.jar> io.opentelemetry.contrib.staticinstrumenter.agent.main.Main <output-folder>
The opentelemetry-static-agent.jar agent needs to be both attached (-javaagent:) and run as the
main method (io.opentelemetry.contrib.staticinstrumenter.agent.main.Main class).
The generated jar will keep the name of your non-instrumented jar.
Run the instrumented application
Execute the following command line:
java -cp <output-folder>/<your-app.jar><file-separator>no-inst-agent.jar <your-main-class-with-package-name>
<file-separator> is : on UNIX systems and ; on Windows systems.
Maven 3 plugin
Maven 3 plugin running the static instrumentation agent during the package phase. Packaged archive
contains statically instrumented class code.
| Parameter | Description |
|---|---|
| artifactName | Name of the artifact to instrument. If not provided, the plugin will instrument all the project artifacts. |
| outputFolder | Path to the folder where the plugin will generate the instrumented artifacts. |
| suffix | Suffix added to the generated artifact. The default value is -instrumented. |
<plugin>
<groupId>io.opentelemetry.contrib</groupId>
<artifactId>static-instrumentation-maven-plugin</artifactId>
<version>...</version>
<configuration>
<artifactName>...</artifactName>
<outputFolder>...</outputFolder>
<suffix>...</suffix>
</configuration>
<executions>
<execution>
<goals>
<goal>instrument</goal>
</goals>
</execution>
</executions>
</plugin>
Component owners
- Jakub Wach, Splunk
- Anna Nosek, Splunk
Learn more about component owners in component_owners.yml.