OpenTelemetry auto-instrumentation and instrumentation libraries for Java
Go to file
dependabot[bot] 2586f18bf2
Bump spring-boot-starter-web from 2.5.2 to 3.0.1 (#7472)
Bumps
[spring-boot-starter-web](https://github.com/spring-projects/spring-boot)
from 2.5.2 to 3.0.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/spring-projects/spring-boot/releases">spring-boot-starter-web's
releases</a>.</em></p>
<blockquote>
<h2>v3.0.1</h2>
<h2>🐞 Bug Fixes</h2>
<ul>
<li>Fix typo in LocalDevToolsAutoConfiguration logging <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33615">#33615</a></li>
<li>No warning is given when <code>&lt;springProfile&gt;</code> is used
in a Logback <code>&lt;root&gt;</code> block <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33610">#33610</a></li>
<li>Auto-configure PropagationWebGraphQlInterceptor for tracing
propagation <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33542">#33542</a></li>
<li>WebClient instrumentation fails with IllegalArgumentException when
adapting to WebClientExchangeTagsProvider <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33483">#33483</a></li>
<li>Reactive observation auto-configuration does not declare order for
WebFilter <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33444">#33444</a></li>
<li>Web server fails to start due to &quot;Resource location must not be
null&quot; when attempting to use a PKCS 11 KeyStore <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33433">#33433</a></li>
<li>Actuator health endpoint for neo4j throws NoSuchElementException and
always returns Status.DOWN <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33428">#33428</a></li>
<li>Anchors in YAML configuration files throw
UnsupportedOperationException <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33404">#33404</a></li>
<li>ZipkinRestTemplateSender is not customizable <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33399">#33399</a></li>
<li>AOT doesn't work with Logstash Logback Encoder <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33387">#33387</a></li>
<li>Maven process-aot goal fails when release version is set in Maven
compiler plugin <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33382">#33382</a></li>
<li><code>DependsOnDatabaseInitializationPostProcessor</code>
re-declares bean dependencies at native image runtime <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33374">#33374</a></li>
<li><code>@SpringBootTest</code> now throws a NullPointerException
rather than a helpful IllegalStateException when
<code>@SpringBootConfiguration</code> is not found <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/pull/33371">#33371</a></li>
<li>bootBuildImage always trys to create a native image due to bootJar
always adding a META-INF/native-image/argfile to the jar <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33363">#33363</a></li>
</ul>
<h2>📔 Documentation</h2>
<ul>
<li>Improve gradle plugin tags documentation <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33617">#33617</a></li>
<li>Improve maven plugin tags documentation <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33616">#33616</a></li>
<li>Fix typo in tomcat accesslog checkExists doc <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33512">#33512</a></li>
<li>Documented Java compiler level is wrong <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/pull/33505">#33505</a></li>
<li>Fix typo in documentation <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/pull/33453">#33453</a></li>
<li>Update instead of replace environment in bootBuildImage
documentation <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/pull/33424">#33424</a></li>
<li>Update the reference docs to document the need to declare the
native-maven-plugin when using buildpacks to create a native image <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33422">#33422</a></li>
<li>Document that the shutdown endpoint is not intended for use when
deploying a war to a servlet container <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33410">#33410</a></li>
<li>Reinstate GraphQL testing documentaion <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33407">#33407</a></li>
<li>Description of <code>NEVER</code> in Sanitize Sensitive Values isn't
formatted correctly <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33398">#33398</a></li>
</ul>
<h2>🔨 Dependency Upgrades</h2>
<ul>
<li>Upgrade to AspectJ 1.9.19 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33586">#33586</a></li>
<li>Upgrade to Byte Buddy 1.12.20 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33587">#33587</a></li>
<li>Upgrade to Couchbase Client 3.4.1 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33588">#33588</a></li>
<li>Upgrade to Dropwizard Metrics 4.2.14 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33589">#33589</a></li>
<li>Upgrade to Elasticsearch Client 8.5.3 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33590">#33590</a></li>
<li>Upgrade to Hibernate 6.1.6.Final <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33591">#33591</a></li>
<li>Upgrade to HttpClient 4.5.14 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33592">#33592</a></li>
<li>Upgrade to HttpCore 4.4.16 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33593">#33593</a></li>
<li>Upgrade to Infinispan 14.0.4.Final <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33594">#33594</a></li>
<li>Upgrade to Jaybird 4.0.8.java11 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33595">#33595</a></li>
<li>Upgrade to Jetty 11.0.13 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33596">#33596</a></li>
<li>Upgrade to jOOQ 3.17.6 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33597">#33597</a></li>
<li>Upgrade to Kotlin 1.7.22 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33598">#33598</a></li>
<li>Upgrade to Lettuce 6.2.2.RELEASE <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33599">#33599</a></li>
<li>Upgrade to MongoDB 4.8.1 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33600">#33600</a></li>
<li>Upgrade to MSSQL JDBC 11.2.2.jre17 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33601">#33601</a></li>
<li>Upgrade to Native Build Tools Plugin 0.9.19 <a
href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33602">#33602</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="837947ca09"><code>837947c</code></a>
Release v3.0.1</li>
<li><a
href="5929d95604"><code>5929d95</code></a>
Merge branch '2.7.x'</li>
<li><a
href="b10b788cd8"><code>b10b788</code></a>
Next development version (v2.7.8-SNAPSHOT)</li>
<li><a
href="f588793445"><code>f588793</code></a>
Update copyright year of changed files</li>
<li><a
href="0254619782"><code>0254619</code></a>
Merge branch '2.7.x'</li>
<li><a
href="e4772cf3b7"><code>e4772cf</code></a>
Update copyright year of changed files</li>
<li><a
href="2e7ca6f82d"><code>2e7ca6f</code></a>
Warning if &lt;springProfile&gt; is used in phase 2 model elements</li>
<li><a
href="2ed512ddb5"><code>2ed512d</code></a>
Use model.deepMarkAsSkipped in SpringProfileModelHandler</li>
<li><a
href="532fed3147"><code>532fed3</code></a>
Increase couchbase connection timeout for tests</li>
<li><a
href="9562a2c2f1"><code>9562a2c</code></a>
Merge branch '2.7.x'</li>
<li>Additional commits viewable in <a
href="https://github.com/spring-projects/spring-boot/compare/v2.5.2...v3.0.1">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=2.5.2&new-version=3.0.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>
2022-12-28 12:15:13 +01:00
.githooks Use Spotless for formatting (DataDog/dd-trace-java#1619) 2020-06-30 11:15:48 -07:00
.github Update repo settings doc (#7439) 2022-12-16 10:52:50 -08:00
benchmark-jfr-analyzer Remove unshaded javax.annotation classes from bootstrap class loader (#4454) 2021-10-21 14:47:50 -07:00
benchmark-overhead Introduce markdown lint check (#7175) 2022-11-16 20:48:42 -08:00
benchmark-overhead-jmh Bump spring-boot-starter-web from 2.5.2 to 3.0.1 (#7472) 2022-12-28 12:15:13 +01:00
bom Update SDK version (#7223) 2022-11-18 18:13:39 +00:00
bom-alpha Update SDK version (#7223) 2022-11-18 18:13:39 +00:00
buildscripts Add OWASP dependency check (#6978) 2022-10-27 19:21:38 -07:00
conventions Bump byteBuddyVersion from 1.12.19 to 1.12.20 (#7430) 2022-12-15 22:33:09 +00:00
custom-checks Enable PrivateConstructorForUtilityClass errorprone check (#6427) 2022-08-10 11:30:22 +03:00
dependencyManagement Bump opentelemetry-aws-xray-propagator from 1.20.1-alpha to 1.21.0-alpha (#7432) 2022-12-16 10:55:54 +00:00
docs Correct link to OpenTelemetry schemas (#7453) 2022-12-20 16:51:02 +01:00
examples Bump mockito-core from 4.9.0 to 4.10.0 in /examples/distro (#7433) 2022-12-15 14:43:33 -08:00
gradle/wrapper Update gradle to 7.5.1 (#6359) 2022-08-12 12:03:43 +02:00
gradle-plugins Bump byteBuddyVersion from 1.12.19 to 1.12.20 (#7430) 2022-12-15 22:33:09 +00:00
instrumentation Limit cxf latest dep version (#7470) 2022-12-23 09:54:25 -08:00
instrumentation-annotations Stabilize annotations (#7046) 2022-11-08 08:46:11 -08:00
instrumentation-annotations-support Enable PrivateConstructorForUtilityClass errorprone check (#6427) 2022-08-10 11:30:22 +03:00
instrumentation-annotations-support-testing Add code attributes to several instrumentations (#6365) 2022-07-27 09:37:01 +02:00
instrumentation-api Add null check for the return value of `ReferenceQueue#remove()` (#7304) 2022-11-25 06:42:11 +01:00
instrumentation-api-semconv Fix connection pool timeouts unit (#7404) 2022-12-13 08:19:38 -08:00
javaagent More spotless (#7126) 2022-11-11 05:01:21 +00:00
javaagent-bootstrap Make java.sql classes available to the agent and extensions (#7038) 2022-11-03 11:42:28 -07:00
javaagent-extension-api Rename kafka propagation setting and clarify behavior (#6957) 2022-10-24 08:49:48 -07:00
javaagent-internal-logging-simple Update to slf4j 2.0.2 (#6774) 2022-10-06 01:28:53 +00:00
javaagent-tooling Remove remaining context class loader mentions (#7419) 2022-12-14 10:21:41 -08:00
licenses Bump opentelemetry-aws-xray-propagator from 1.20.1-alpha to 1.21.0-alpha (#7432) 2022-12-16 10:55:54 +00:00
muzzle Remove remaining context class loader mentions (#7419) 2022-12-14 10:21:41 -08:00
opentelemetry-api-shaded-for-instrumenting Upgrade to otel java 1.19.0 (#6757) 2022-10-12 09:19:37 -07:00
opentelemetry-ext-annotations-shaded-for-instrumenting Support new annotations (and change of instrumentation name for opentelemetry-annotations) (#6296) 2022-07-11 14:34:26 -07:00
opentelemetry-instrumentation-annotations-shaded-for-instrumenting Support new annotations (and change of instrumentation name for opentelemetry-annotations) (#6296) 2022-07-11 14:34:26 -07:00
opentelemetry-instrumentation-api-shaded-for-instrumenting Instrument SpanKey directly (#5933) 2022-05-03 14:56:33 -07:00
smoke-tests Bump quarkus-bom from 2.14.3.Final to 2.15.0.Final (#7422) 2022-12-15 08:24:59 -08:00
testing Bump armeria-junit5 from 1.20.3 to 1.21.0 (#7465) 2022-12-27 11:17:16 +02:00
testing-common Bump cglib from 3.2.5 to 3.3.0 (#7327) 2022-11-28 15:24:06 -08:00
.editorconfig Update .editorconfig for properties files (#3677) 2021-07-26 14:16:36 -07:00
.gitattributes Add task to generate license report into licenses folder. (#2239) 2021-02-12 17:20:08 +09:00
.gitignore Remove and ignore .attach_pid files (#5348) 2022-02-11 09:37:52 -08:00
.markdownlint.yml Introduce markdown lint check (#7175) 2022-11-16 20:48:42 -08:00
CHANGELOG.md Update version to 1.22.0-SNAPSHOT (#7409) 2022-12-13 21:24:28 +00:00
CONTRIBUTING.md Introduce markdown lint check (#7175) 2022-11-16 20:48:42 -08:00
LICENSE Update to standard LICENSE file for OpenTelemetry (#19) 2019-11-19 09:46:10 -08:00
README.md Add semantic conventions column to supported libraries doc (#6974) 2022-11-01 11:26:41 -07:00
RELEASING.md Add a release step (#7128) 2022-11-10 13:37:12 +02:00
VERSIONING.md Introduce markdown lint check (#7175) 2022-11-16 20:48:42 -08:00
build.gradle.kts Sync github actions (#5695) 2022-03-29 10:21:17 -07:00
code-of-conduct.md Add code-of-conduct file. (#2341) 2021-02-19 16:24:41 +09:00
gradle.properties Try to reduce CI failures due to maven central flakiness (#7164) 2022-11-14 18:55:53 -08:00
gradlew Update gradle to 7.5.1 (#6359) 2022-08-12 12:03:43 +02:00
gradlew.bat Update gradle to 7.5.1 (#6359) 2022-08-12 12:03:43 +02:00
settings.gradle.kts Extract a common JMS module before implementing Jakarta JMS instrumen… (#7377) 2022-12-12 10:22:00 -08:00
version.gradle.kts Update version to 1.22.0-SNAPSHOT (#7409) 2022-12-13 21:24:28 +00:00

README.md

<p align="center"> <strong> <a href="https://github.com/open-telemetry/opentelemetry-java-instrumentation#getting-started">Getting Started</a>   •   <a href="https://github.com/open-telemetry/community#special-interest-groups">Getting Involved</a>   •   <a href="https://github.com/open-telemetry/opentelemetry-java-instrumentation/discussions">Getting In Touch</a> </strong> </p> <p align="center"> <a href="https://github.com/open-telemetry/opentelemetry-java-instrumentation/actions/workflows/build.yml"> <img alt="Build Status" src="https://img.shields.io/github/workflow/status/open-telemetry/opentelemetry-java-instrumentation/Build?style=for-the-badge"> </a> <a href="https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases"> <img alt="GitHub release (latest by date including pre-releases)" src="https://img.shields.io/github/v/release/open-telemetry/opentelemetry-java-instrumentation?include_prereleases&style=for-the-badge"> </a> <img alt="Beta" src="https://img.shields.io/badge/status-beta-informational?style=for-the-badge&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAACQAAAAAQAAAJAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABigAwAEAAAAAQAAABgAAAAA8A2UOAAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAABK5JREFUSA2dVm1sFEUYfmd2b/f2Pkqghn5eEQWKrRgjpkYgpoRCLC0oxV5apAiGUDEpJvwxEQ2raWPU+Kf8INU/RtEedwTCR9tYPloxGNJYTTQUwYqJ1aNpaLH3sXu3t7vjvFevpSqt7eSyM+/czvM8877PzB3APBoLgoDLsNePF56LBwqa07EKlDGg84CcWsI4CEbhNnDpAd951lXE2NkiNknCCTLv4HtzZuvPm1C/IKv4oDNXqNDHragety2XVzjECZsJARuBMyRzJrh1O0gQwLXuxofxsPSj4hG8fMLQo7bl9JJD8XZfC1E5yWFOMtd07dvX5kDwg6+2++Chq8txHGtfPoAp0gOFmhYoNFkHjn2TNUmrwRdna7W1QSkU8hvbGk4uThLrapaiLA2E6QY4u/lS9ItHfvJkxYsTMVtnAJLipYIWtVrcdX+8+b8IVnPl/R81prbuPZ1jpYw+0aEUGSkdFsgyBIaFTXCm6nyaxMtJ4n+TeDhJzGqZtQZcuYDgqDwDbqb0JF9oRpIG1Oea3bC1Y6N3x/WV8Zh83emhCs++hlaghDw+8w5UlYKq2lU7Pl8IkvS9KDqXmKmEwdMppVPKwGSEilmyAwJhRwWcq7wYC6z4wZ1rrEoMWxecdOjZWXeAQClBcYDN3NwVwD9pGwqUSyQgclcmxpNJqCuwLmDh3WtvPqXdlt+6Oz70HPGDNSNBee/EOen+rGbEFqDENBPDbtdCp0ukPANmzO0QQJYUpyS5IJJI3Hqt4maS+EB3199ozm8EDU/6fVNU2dQpdx3ZnKzeFXyaUTiasEV/gZMzJMjr3Z+WvAdQ+hs/zw9savimxUntDSaBdZ2f+Idbm1rlNY8esFffBit9HtK5/MejsrJVxikOXlb1Ukir2X+Rbdkd1KG2Ixfn2Ql4JRmELnYK9mEM8G36fAA3xEQ89fxXihC8q+sAKi9jhHxNqagY2hiaYgRCm0f0QP7H4Fp11LSXiuBY2aYFlh0DeDIVVFUJQn5rCnpiNI2gvLxHnASn9DIVHJJlm5rXvQAGEo4zvKq2w5G1NxENN7jrft1oxMdekETjxdH2Z3x+VTVYsPb+O0C/9/auN6v2hNZw5b2UOmSbG5/rkC3LBA+1PdxFxORjxpQ81GcxKc+ybVjEBvUJvaGJ7p7n5A5KSwe4AzkasA+crmzFtowoIVTiLjANm8GDsrWW35ScI3JY8Urv83tnkF8JR0yLvEt2hO/0qNyy3Jb3YKeHeHeLeOuVLRpNF+pkf85OW7/zJxWdXsbsKBUk2TC0BCPwMq5Q/CPvaJFkNS/1l1qUPe+uH3oD59erYGI/Y4sce6KaXYElAIOLt+0O3t2+/xJDF1XvOlWGC1W1B8VMszbGfOvT5qaRRAIFK3BCO164nZ0uYLH2YjNN8thXS2v2BK9gTfD7jHVxzHr4roOlEvYYz9QIz+Vl/sLDXInsctFsXjqIRnO2ZO387lxmIboLDZCJ59KLFliNIgh9ipt6tLg9SihpRPDO1ia5byw7de1aCQmF5geOQtK509rzfdwxaKOIq+73AvwCC5/5fcV4vo3+3LpMdtWHh0ywsJC/ZGoCb8/9D8F/ifgLLl8S8QWfU8cAAAAASUVORK5CYII="> </p> <p align="center"> <strong> <a href="CONTRIBUTING.md">Contributing<a/>   •   <a href="docs/scope.md">Scope<a/> </strong> </p>

Getting Started   •   Getting Involved   •   Getting In Touch

Build Status GitHub release (latest by date including pre-releases) Beta

Contributing   •   Scope

OpenTelemetry Icon OpenTelemetry Instrumentation for Java

About

This project provides a Java agent JAR that can be attached to any Java 8+ application and dynamically injects bytecode to capture telemetry from a number of popular libraries and frameworks. You can export the telemetry data in a variety of formats. You can also configure the agent and exporter via command line arguments or environment variables. The net result is the ability to gather telemetry data from a Java application without code changes.

This repository also publishes standalone instrumentation for several libraries (and growing) that can be used if you prefer that over using the Java agent. Please see the standalone library instrumentation column on Supported Libraries. if you are looking for documentation on using those.

Getting Started

Download the latest version.

This package includes the instrumentation agent as well as instrumentations for all supported libraries and all available data exporters. The package provides a completely automatic, out-of-the-box experience.

Enable the instrumentation agent using the -javaagent flag to the JVM.

java -javaagent:path/to/opentelemetry-javaagent.jar \
     -jar myapp.jar

By default, the OpenTelemetry Java agent uses OTLP exporter configured to send data to OpenTelemetry collector at http://localhost:4317.

Configuration parameters are passed as Java system properties (-D flags) or as environment variables. See the configuration documentation for the full list of configuration items. For example:

java -javaagent:path/to/opentelemetry-javaagent.jar \
     -Dotel.resource.attributes=service.name=your-service-name \
     -Dotel.traces.exporter=zipkin \
     -jar myapp.jar

Configuring the Agent

The agent is highly configurable! Many aspects of the agent's behavior can be configured for your needs, such as exporter choice, exporter config (like where data is sent), trace context propagation headers, and much more.

Click here to see the detailed list of configuration environment variables and system properties.

Note: Config parameter names are very likely to change over time, so please check back here when trying out a new version! Please report any bugs or unexpected behavior you find.

Supported libraries, frameworks, and application servers

We support an impressively huge number of libraries and frameworks and a majority of the most popular application servers...right out of the box! Click here to see the full list and to learn more about disabled instrumentation and how to suppress unwanted instrumentation.

Creating agent extensions

Extensions add new features and capabilities to the agent without having to create a separate distribution or to fork this repository. For example, you can create custom samplers or span exporters, set new defaults, and embed it all in the agent to obtain a single jar file.

Manually instrumenting

For most users, the out-of-the-box instrumentation is completely sufficient and nothing more has to be done. Sometimes, however, users wish to add attributes to the otherwise automatic spans, or they might want to manually create spans for their own custom code.

For detailed instructions, see Manual instrumentation.

Logger MDC (Mapped Diagnostic Context) auto-instrumentation

It is possible to inject trace information like trace IDs and span IDs into your custom application logs. For details, see Logger MDC auto-instrumentation.

Troubleshooting

To turn on the agent's internal debug logging:

-Dotel.javaagent.debug=true

Note: These logs are extremely verbose. Enable debug logging only when needed. Debug logging negatively impacts the performance of your application.

Contributing

See CONTRIBUTING.md.

Triagers (@open-telemetry/java-instrumentation-triagers):

Approvers (@open-telemetry/java-instrumentation-approvers):

Maintainers (@open-telemetry/java-instrumentation-maintainers):

Emeritus maintainers:

Learn more about roles in the community repository.

Thanks to all the people who already contributed!