Skip to content

Commit 03766b2

Browse files
committed
Merge branch 'main' of github.com:open-telemetry/opentelemetry-java-instrumentation into indy-migration-3
2 parents 0627a7d + 2d555ad commit 03766b2

File tree

17 files changed

+160
-29
lines changed

17 files changed

+160
-29
lines changed

benchmark-overhead-jmh/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ otelJava {
1313
}
1414

1515
dependencies {
16-
jmhImplementation("org.springframework.boot:spring-boot-starter-web:3.4.5")
16+
jmhImplementation("org.springframework.boot:spring-boot-starter-web:3.4.6")
1717
}
1818

1919
tasks {

docs/contributing/running-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Java versions
44

5-
Open Telemetry Auto Instrumentation's minimal supported version is java 8.
5+
OpenTelemetry Auto Instrumentation's minimal supported version is java 8.
66
All jar files that we produce, unless noted otherwise, have bytecode
77
compatibility with the java 8 runtime. Our test suite is executed against
88
java 8, all LTS versions and the latest non-LTS version.

instrumentation/apache-httpclient/apache-httpclient-5.2/library/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ public class ApacheHttpClientConfiguration {
4747
this.openTelemetry = openTelemetry;
4848
}
4949

50-
// creates a new http client builder for constructing http clients with open telemetry instrumentation
50+
// creates a new http client builder for constructing http clients with opentelemetry instrumentation
5151
public HttpClientBuilder createBuilder() {
5252
return ApacheHttpClientTelemetry.builder(openTelemetry).build().newHttpClientBuilder();
5353
}
5454

55-
// creates a new http client with open telemetry instrumentation
55+
// creates a new http client with opentelemetry instrumentation
5656
public HttpClient newHttpClient() {
5757
return ApacheHttpClientTelemetry.builder(openTelemetry).build().newHttpClient();
5858
}

instrumentation/jmx-metrics/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ local [MBeans](https://docs.oracle.com/javase/tutorial/jmx/mbeans/index.html)
66
available within the instrumented application. The required MBeans and corresponding metrics can be described using a YAML configuration file. The individual metric configurations allow precise metric selection and identification.
77

88
The selected JMX metrics are reported using the Java Agent internal SDK. This means that they share the configuration and metric exporter with other metrics collected by the agent and are controlled by the same properties, for example `otel.metric.export.interval` or `otel.metrics.exporter`.
9-
The Open Telemetry resource description for the metrics reported by JMX Metric Insight will be the same as for other metrics exported by the SDK, while the instrumentation scope will be `io.opentelemetry.jmx`.
9+
The OpenTelemetry resource description for the metrics reported by JMX Metric Insight will be the same as for other metrics exported by the SDK, while the instrumentation scope will be `io.opentelemetry.jmx`.
1010

1111
To control the time interval between MBean detection attempts, one can use the `otel.jmx.discovery.delay` property, which defines the number of milliseconds to elapse between the first and the next detection cycle. JMX Metric Insight may dynamically adjust the time interval between further attempts, but it guarantees that the MBean discovery will run perpetually.
1212

instrumentation/jmx-metrics/library/src/main/java/io/opentelemetry/instrumentation/jmx/engine/MetricDef.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import java.util.List;
99

1010
/**
11-
* A class providing a complete definition on how to create an Open Telemetry metric out of the JMX
11+
* A class providing a complete definition on how to create an OpenTelemetry metric out of the JMX
1212
* system: how to extract values from MBeans and how to model, name and decorate them with
1313
* attributes using OpenTelemetry Metric API. Objects of this class are immutable.
1414
*/

instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/internal/instrumentation/web/SpringWebInstrumentationAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* Configures {@link RestTemplate} for tracing.
2020
*
21-
* <p>Adds Open Telemetry instrumentation to RestTemplate beans after initialization.
21+
* <p>Adds OpenTelemetry instrumentation to RestTemplate beans after initialization.
2222
*
2323
* <p>This class is internal and is hence not for public use. Its APIs are unstable and can change
2424
* at any time.

instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/internal/instrumentation/webflux/SpringWebfluxInstrumentationAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* Configures {@link WebClient} for tracing.
2020
*
21-
* <p>Adds Open Telemetry instrumentation to WebClient beans after initialization.
21+
* <p>Adds OpenTelemetry instrumentation to WebClient beans after initialization.
2222
*
2323
* <p>This class is internal and is hence not for public use. Its APIs are unstable and can change
2424
* at any time.

instrumentation/spring/spring-boot-autoconfigure/src/main/javaSpring3/io/opentelemetry/instrumentation/spring/autoconfigure/internal/instrumentation/web/RestClientInstrumentationAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/**
2121
* Configures {@link RestClient} for tracing.
2222
*
23-
* <p>Adds Open Telemetry instrumentation to {@link RestClient} beans after initialization.
23+
* <p>Adds OpenTelemetry instrumentation to {@link RestClient} beans after initialization.
2424
*
2525
* <p>This class is internal and is hence not for public use. Its APIs are unstable and can change
2626
* at any time.

instrumentation/vertx/vertx-web-3.0/javaagent/build.gradle.kts

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,45 +20,59 @@ dependencies {
2020
testInstrumentation(project(":instrumentation:jdbc:javaagent"))
2121
}
2222

23+
val testLatestDeps = findProperty("testLatestDeps") as Boolean
24+
2325
testing {
2426
suites {
2527
val version3Test by registering(JvmTestSuite::class) {
2628
dependencies {
2729
implementation(project(":instrumentation:vertx:vertx-web-3.0:testing"))
2830

29-
implementation("io.vertx:vertx-web:3.0.0")
30-
implementation("io.vertx:vertx-jdbc-client:3.0.0")
31-
implementation("io.vertx:vertx-codegen:3.0.0")
32-
implementation("io.vertx:vertx-docgen:3.0.0")
31+
val version = if (testLatestDeps) "3.+" else "3.0.0"
32+
implementation("io.vertx:vertx-web:$version")
33+
implementation("io.vertx:vertx-jdbc-client:$version")
34+
implementation("io.vertx:vertx-codegen:$version")
35+
implementation("io.vertx:vertx-docgen:$version")
3336
}
3437
}
3538

36-
val latestDepTest by registering(JvmTestSuite::class) {
39+
val version41Test by registering(JvmTestSuite::class) {
3740
dependencies {
3841
implementation(project(":instrumentation:vertx:vertx-web-3.0:testing"))
3942

40-
implementation("io.vertx:vertx-web:4.+")
41-
implementation("io.vertx:vertx-jdbc-client:4.+")
42-
implementation("io.vertx:vertx-codegen:4.+")
43+
val version = if (testLatestDeps) "4.+" else "4.1.0"
44+
implementation("io.vertx:vertx-web:$version")
45+
implementation("io.vertx:vertx-jdbc-client:$version")
46+
implementation("io.vertx:vertx-codegen:$version")
47+
}
48+
}
49+
50+
val version5Test by registering(JvmTestSuite::class) {
51+
dependencies {
52+
implementation(project(":instrumentation:vertx:vertx-web-3.0:testing"))
53+
54+
val version = if (testLatestDeps) "latest.release" else "5.0.0"
55+
implementation("io.vertx:vertx-web:$version")
56+
implementation("io.vertx:vertx-jdbc-client:$version")
57+
implementation("io.vertx:vertx-codegen:$version")
4358
}
4459
}
4560
}
4661
}
4762

48-
val testLatestDeps = findProperty("testLatestDeps") as Boolean
49-
5063
tasks {
51-
if (testLatestDeps) {
52-
// disable regular test running and compiling tasks when latest dep test task is run
53-
named("test") {
64+
named("compileVersion5TestJava", JavaCompile::class).configure {
65+
options.release.set(11)
66+
}
67+
val testJavaVersion =
68+
gradle.startParameter.projectProperties.get("testJavaVersion")?.let(JavaVersion::toVersion)
69+
?: JavaVersion.current()
70+
if (!testJavaVersion.isCompatibleWith(JavaVersion.VERSION_11)) {
71+
named("version5Test", Test::class).configure {
5472
enabled = false
5573
}
5674
}
5775

58-
named("latestDepTest") {
59-
enabled = testLatestDeps
60-
}
61-
6276
check {
6377
dependsOn(testing.suites)
6478
}

0 commit comments

Comments
 (0)