Skip to content

Commit 0bf8035

Browse files
committed
Merge remote-tracking branch 'upstream/main' into javahttpclient
2 parents d449cd3 + 9e7edab commit 0bf8035

File tree

11 files changed

+82
-21
lines changed

11 files changed

+82
-21
lines changed

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ permissions:
66
contents: read
77

88
jobs:
9-
required-jobs:
9+
common:
1010
uses: ./.github/workflows/build-common.yml
1111

1212
# test-latest-deps is intentionally not included in the release workflows
@@ -23,7 +23,7 @@ jobs:
2323
contents: write # for creating the release
2424
runs-on: ubuntu-latest
2525
needs:
26-
- required-jobs
26+
- common
2727
outputs:
2828
version: ${{ steps.create-github-release.outputs.version }}
2929
prior-version: ${{ steps.create-github-release.outputs.prior-version }}

CHANGELOG.md

+56-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,66 @@
44

55
### Migration notes
66

7+
- The `java.net.http.HttpClient` instrumentation package
8+
`io.opentelemetry.instrumentation.httpclient` was deprecated in favor of the new package name
9+
`io.opentelemetry.instrumentation.javahttpclient`
10+
11+
## Version 2.13.0 (2025-02-14)
12+
13+
### Migration notes
14+
715
- `io.opentelemetry.instrumentation.api.incubator.semconv.util.SpanNames` has been deprecated,
816
replaced by the stable `io.opentelemetry.instrumentation.api.semconv.util.SpanNames`
917
- In preparation for stabilizing HTTP library instrumentation, the classes and methods
1018
that were deprecated in the prior two releases have now been removed
11-
- The `java.net.http.HttpClient` instrumentation package
12-
`io.opentelemetry.instrumentation.httpclient` was deprecated in favor of the new package name
13-
`io.opentelemetry.instrumentation.javahttpclient`
19+
([#13135](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13135),
20+
[#13150](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13150))
21+
- Deprecated Dubbo instrumentation method was removed
22+
([#13076](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13076))
23+
24+
### 🌟 New javaagent instrumentation
25+
26+
- `jdk.httpserver` instrumentation
27+
([#13243](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13243))
28+
29+
### 🌟 New library instrumentation
30+
31+
- `jdk.httpserver` instrumentation
32+
([#13243](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13243))
33+
34+
### 📈 Enhancements
35+
36+
- Add database client metrics to Lettuce instrumentation
37+
([#13032](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13032))
38+
- Stabilize io.opentelemetry.instrumentation.api.semconv.util.SpanNames
39+
([#12487](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12487))
40+
- Implement ExtendedTextMapGetter in http server instrumentations
41+
([#13053](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13053))
42+
- Implement ExtendedTextMapGetter in kafka-clients instrumentation
43+
([#13068](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13068))
44+
- Scrub system property secrets from process resource attribute values
45+
([#13225](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13225))
46+
- Add database client metrics to AWS SDK 2.x DynamoDB instrumentation
47+
([#13283](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13283))
48+
- Add runtime metrics to Spring boot starter
49+
([#13173](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13173))
50+
51+
### 🛠️ Bug fixes
52+
53+
- Fix akka shutdown hanging
54+
([#13073](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13073))
55+
- Fix MalformedInputException on z/OS
56+
([#13042](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13042))
57+
- Fix scope leak in aws sdk instrumentation
58+
([#13129](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13129))
59+
- Fix MapConverter does not get initialized when `OTEL_SDK_DISABLED` is set to true
60+
([#13224](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13224))
61+
- Fix logback appender on android
62+
([#13234](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13234))
63+
- Fix Ktor 3 CallLogging and StatusPages don't have Trace IDs
64+
([#13239](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13239))
65+
- Fix Micrometer-bridge breaking Spring Actuator metrics
66+
([#13083](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13083))
1467

1568
## Version 2.12.0 (2025-01-17)
1669

conventions/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ dependencies {
6969
implementation("me.champeau.jmh:jmh-gradle-plugin:0.7.3")
7070
implementation("net.ltgt.gradle:gradle-errorprone-plugin:4.1.0")
7171
implementation("net.ltgt.gradle:gradle-nullaway-plugin:2.2.0")
72-
implementation("me.champeau.gradle:japicmp-gradle-plugin:0.4.5")
72+
implementation("me.champeau.gradle:japicmp-gradle-plugin:0.4.6")
7373

7474
testImplementation(enforcedPlatform("org.junit:junit-bom:5.11.4"))
7575
testImplementation("org.junit.jupiter:junit-jupiter-api")
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Comparing source compatibility of opentelemetry-instrumentation-annotations-2.13.0-SNAPSHOT.jar against opentelemetry-instrumentation-annotations-2.12.0.jar
1+
Comparing source compatibility of opentelemetry-instrumentation-annotations-2.14.0-SNAPSHOT.jar against opentelemetry-instrumentation-annotations-2.12.0.jar
22
No changes.

docs/apidiffs/current_vs_latest/opentelemetry-instrumentation-api.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Comparing source compatibility of opentelemetry-instrumentation-api-2.13.0-SNAPSHOT.jar against opentelemetry-instrumentation-api-2.12.0.jar
1+
Comparing source compatibility of opentelemetry-instrumentation-api-2.14.0-SNAPSHOT.jar against opentelemetry-instrumentation-api-2.12.0.jar
22
+++ NEW CLASS: PUBLIC(+) FINAL(+) io.opentelemetry.instrumentation.api.semconv.util.SpanNames (not serializable)
33
+++ CLASS FILE FORMAT VERSION: 52.0 <- n.a.
44
+++ NEW SUPERCLASS: java.lang.Object
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Comparing source compatibility of opentelemetry-spring-boot-autoconfigure-2.13.0-SNAPSHOT.jar against opentelemetry-spring-boot-autoconfigure-2.12.0.jar
1+
Comparing source compatibility of opentelemetry-spring-boot-autoconfigure-2.14.0-SNAPSHOT.jar against opentelemetry-spring-boot-autoconfigure-2.12.0.jar
22
No changes.
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Comparing source compatibility of opentelemetry-spring-boot-starter-2.13.0-SNAPSHOT.jar against opentelemetry-spring-boot-starter-2.12.0.jar
1+
Comparing source compatibility of opentelemetry-spring-boot-starter-2.14.0-SNAPSHOT.jar against opentelemetry-spring-boot-starter-2.12.0.jar
22
No changes.

examples/distro/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ buildscript {
1414
dependencies {
1515
classpath "com.diffplug.spotless:spotless-plugin-gradle:7.0.2"
1616
classpath "com.gradleup.shadow:shadow-gradle-plugin:8.3.6"
17-
classpath "io.opentelemetry.instrumentation:gradle-plugins:2.13.0-alpha-SNAPSHOT"
17+
classpath "io.opentelemetry.instrumentation:gradle-plugins:2.14.0-alpha-SNAPSHOT"
1818
}
1919
}
2020

@@ -30,8 +30,8 @@ subprojects {
3030
opentelemetrySdk : "1.47.0",
3131

3232
// these lines are managed by .github/scripts/update-version.sh
33-
opentelemetryJavaagent : "2.13.0-SNAPSHOT",
34-
opentelemetryJavaagentAlpha: "2.13.0-alpha-SNAPSHOT",
33+
opentelemetryJavaagent : "2.14.0-SNAPSHOT",
34+
opentelemetryJavaagentAlpha: "2.14.0-alpha-SNAPSHOT",
3535

3636
autoservice : "1.1.1",
3737
junit : "5.11.4"

examples/extension/build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ plugins {
1313
id "com.gradleup.shadow" version "8.3.6"
1414
id "com.diffplug.spotless" version "7.0.2"
1515

16-
id "io.opentelemetry.instrumentation.muzzle-generation" version "2.13.0-alpha-SNAPSHOT"
17-
id "io.opentelemetry.instrumentation.muzzle-check" version "2.13.0-alpha-SNAPSHOT"
16+
id "io.opentelemetry.instrumentation.muzzle-generation" version "2.14.0-alpha-SNAPSHOT"
17+
id "io.opentelemetry.instrumentation.muzzle-check" version "2.14.0-alpha-SNAPSHOT"
1818
}
1919

2020
group 'io.opentelemetry.example'
@@ -26,8 +26,8 @@ ext {
2626
opentelemetrySdk : "1.47.0",
2727

2828
// these lines are managed by .github/scripts/update-version.sh
29-
opentelemetryJavaagent : "2.13.0-SNAPSHOT",
30-
opentelemetryJavaagentAlpha: "2.13.0-alpha-SNAPSHOT",
29+
opentelemetryJavaagent : "2.14.0-SNAPSHOT",
30+
opentelemetryJavaagentAlpha: "2.14.0-alpha-SNAPSHOT",
3131

3232
junit : "5.11.4"
3333
]

smoke-tests-otel-starter/spring-boot-3/src/test/java/io/opentelemetry/spring/smoketest/OtelSpringStarterSmokeTest.java

+10-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ class OtelSpringStarterSmokeTest extends AbstractOtelSpringStarterSmokeTest {
2626

2727
@Override
2828
protected void assertAdditionalMetrics() {
29-
if (System.getProperty("org.graalvm.nativeimage.imagecode") != null) {
30-
// GraalVM native image does not support JFR
29+
if (!isFlightRecorderAvailable()) {
3130
return;
3231
}
3332

@@ -50,4 +49,13 @@ protected void assertAdditionalMetrics() {
5049
"io.opentelemetry.runtime-telemetry-java17", metric, AbstractIterableAssert::isNotEmpty);
5150
}
5251
}
52+
53+
private static boolean isFlightRecorderAvailable() {
54+
try {
55+
return (boolean)
56+
Class.forName("jdk.jfr.FlightRecorder").getMethod("isAvailable").invoke(null);
57+
} catch (ReflectiveOperationException exception) {
58+
return false;
59+
}
60+
}
5361
}

version.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
val stableVersion = "2.13.0-SNAPSHOT"
2-
val alphaVersion = "2.13.0-alpha-SNAPSHOT"
1+
val stableVersion = "2.14.0-SNAPSHOT"
2+
val alphaVersion = "2.14.0-alpha-SNAPSHOT"
33

44
allprojects {
55
if (findProperty("otel.stable") != "true") {

0 commit comments

Comments
 (0)