Open Telemetry Auto Instrumentation's minimal supported version is java 8. All jar files that we produce, unless noted otherwise, have bytecode compatible with java 8 runtime. Our test suite is executed against java 8, all LTS versions and the latest non-LTS version.
Some libraries that we auto-instrument may have higher minimal requirements. In this case we compile and test corresponding auto-instrumentation with higher java version as required by library. The resulting classes will have higher bytecode level, but as it matches library's java version, no runtime problem arise.
Executing ./gradlew instrumentation:test
will run tests for all supported
auto-instrumentations using that java version which runs the Gradle build
itself. These tests usually use the minimal supported version of the
instrumented library.
We run all tests on Java 11 by default, along with Java 8 and 15. To run on the later, set the
testJavaVersion
Gradle property to the desired major version, e.g., ./gradlew test -PtestJavaVersion=8
,
./gradlew test -PtestJavaVersion=15
. If you don't have a JDK of these versions
installed, Gradle will automatically download it for you.
This is done as part of the nightly build in order to catch when a new version of a library is released that breaks our instrumentation tests.
To run these tests locally, add -PtestLatestDeps=true
to your existing gradlew
command line.
Executing ./gradlew :instrumentation:<INSTRUMENTATION_NAME>:test --tests <GROOVY TEST FILE NAME>
will run only the selected test.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。