Bumps [org.springframework.boot:spring-boot-starter-web](https://github.com/spring-projects/spring-boot) from 3.0.2 to 3.0.3. <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.3</h2> <h2>🐞 Bug Fixes</h2> <ul> <li>ClassNotFoundException during AOT processing of Logback XML that references a variable when defining a component's class <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34336">#34336</a></li> <li>Logback configuration errors are not reported when running as a native image <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34315">#34315</a></li> <li>Dependency management for Spring LDAP includes spring-ldap-core-tiger which no longer exists <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34299">#34299</a></li> <li>Kotlin ConfigurationProperties default values are not picked up when nativeRun is used <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34157">#34157</a></li> <li>Maven Plugin's PropertiesMergingResourceTransformer closes InputStream when it should not do so <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34072">#34072</a></li> <li>Actuator Health web endpoint broken with Gson and Java 17 <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34070">#34070</a></li> <li>Manifests of jars built with Gradle do not have a Implementation entries <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34059">#34059</a></li> <li>Spies are not reset after test execution when using <code>@SpyBean</code> <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34044">#34044</a></li> <li>Using devtools with Reactive application results in slower restarts <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34036">#34036</a></li> <li>spring-boot-dependencies manages mysql:mysql-connector-java which no longer exists <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34021">#34021</a></li> <li>Dependency management for Mongo's Java Driver is incomplete <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34019">#34019</a></li> <li>jOOQ DefaultConfiguration does not use TransactionProvider <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/pull/33979">#33979</a></li> <li>ObservationFilter beans are not registered automatically <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33968">#33968</a></li> <li>Properties Migrator does not detect properties of Map type that are marked as deprecated <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33963">#33963</a></li> <li>Dependency management for some Angus Mail modules uses the wrong artifact ID <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33947">#33947</a></li> <li>ElasticsearchClientAutoConfiguration causes global ObjectMapper to be overwritten <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33426">#33426</a></li> </ul> <h2>📔 Documentation</h2> <ul> <li>Updated documentation for <code>@ConfigurationProperties</code> bean naming rules <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34192">#34192</a></li> <li>Document additional configuration that is required for spring.mvc.throw-exception-if-no-handler-found=true to be effective <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34190">#34190</a></li> <li>Use Maven Central for release downloads in CLI installation documentation <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34161">#34161</a></li> <li>Update Customizing Sanitization documentation as built-in key-based sanitization is no longer performed <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/pull/34051">#34051</a></li> <li>Add Redis application properties example <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34041">#34041</a></li> <li>Restore "Use Jedis Instead of Lettuce" how-to documentation <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33995">#33995</a></li> <li>Actuator section is missing from documentation overview <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33933">#33933</a></li> <li>Add Javadoc since to OperationParameter.getAnnotation() <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/33919">#33919</a></li> </ul> <h2>🔨 Dependency Upgrades</h2> <ul> <li>Upgrade to Byte Buddy 1.12.23 <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34255">#34255</a></li> <li>Upgrade to Caffeine 3.1.4 <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34256">#34256</a></li> <li>Upgrade to Dropwizard Metrics 4.2.16 <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34258">#34258</a></li> <li>Upgrade to Glassfish JAXB 4.0.2 <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34259">#34259</a></li> <li>Upgrade to Groovy 4.0.9 <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34260">#34260</a></li> <li>Upgrade to Hibernate 6.1.7.Final <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34261">#34261</a></li> <li>Upgrade to Jackson Bom 2.14.2 <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34262">#34262</a></li> <li>Upgrade to Jaybird 4.0.9.java11 <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34263">#34263</a></li> <li>Upgrade to Jersey 3.1.1 <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34264">#34264</a></li> <li>Upgrade to jOOQ 3.17.8 <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34265">#34265</a></li> <li>Upgrade to Lettuce 6.2.3.RELEASE <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34266">#34266</a></li> <li>Upgrade to Lombok 1.18.26 <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34267">#34267</a></li> <li>Upgrade to Micrometer 1.10.4 <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34148">#34148</a></li> <li>Upgrade to Micrometer Tracing 1.0.2 <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34160">#34160</a></li> <li>Upgrade to Native Build Tools Plugin 0.9.20 <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34268">#34268</a></li> <li>Upgrade to Neo4j Java Driver 5.4.0 <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34344">#34344</a></li> <li>Upgrade to Netty 4.1.89.Final <a href="https://github-redirect.dependabot.com/spring-projects/spring-boot/issues/34269">#34269</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
---|---|---|
.githooks | ||
.github | ||
benchmark-jfr-analyzer | ||
benchmark-overhead | ||
benchmark-overhead-jmh | ||
bom | ||
bom-alpha | ||
buildscripts | ||
conventions | ||
custom-checks | ||
dependencyManagement | ||
docs | ||
examples | ||
gradle/wrapper | ||
gradle-plugins | ||
instrumentation | ||
instrumentation-annotations | ||
instrumentation-annotations-support | ||
instrumentation-annotations-support-testing | ||
instrumentation-api | ||
instrumentation-api-semconv | ||
javaagent | ||
javaagent-bootstrap | ||
javaagent-extension-api | ||
javaagent-internal-logging-simple | ||
javaagent-tooling | ||
licenses | ||
muzzle | ||
opentelemetry-api-shaded-for-instrumenting | ||
opentelemetry-ext-annotations-shaded-for-instrumenting | ||
opentelemetry-instrumentation-annotations-shaded-for-instrumenting | ||
opentelemetry-instrumentation-api-shaded-for-instrumenting | ||
smoke-tests | ||
testing | ||
testing-common | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.markdownlint.yml | ||
CHANGELOG.md | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md | ||
RELEASING.md | ||
VERSIONING.md | ||
build.gradle.kts | ||
code-of-conduct.md | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
settings.gradle.kts | ||
version.gradle.kts |
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/actions/workflow/status/open-telemetry/opentelemetry-java-instrumentation/build.yml?branch=main&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/RtEedwTCR9tYPloxGNJYTTQU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oIVTiLjANm8GDsrWW35ScI3JY8Urv83tnkF8JR0yLvEt2hO/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
OpenTelemetry Instrumentation for Java
- About
- Getting Started
- Configuring the Agent
- Supported libraries, frameworks, and application servers
- Creating agent extensions
- Manually instrumenting
- Logger MDC auto-instrumentation
- Troubleshooting
- Contributing
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):
- Jason Plumb, Splunk
Approvers (@open-telemetry/java-instrumentation-approvers):
- Jack Berg, New Relic
- John Watson, Verta.ai
Maintainers (@open-telemetry/java-instrumentation-maintainers):
- Lauri Tulmin, Splunk
- Mateusz Rzeszutek, Splunk
- Trask Stalnaker, Microsoft
Emeritus maintainers:
- Nikita Salnikov-Tarnovski, Splunk
Learn more about roles in the community repository.
Thanks to all the people who already contributed!