Skip to content

Commit a87bb01

Browse files
otelbot[bot]laurit
andauthored
Update the OpenTelemetry SDK version to 1.50.0 (open-telemetry#13834)
Co-authored-by: otelbot <[email protected]> Co-authored-by: Lauri Tulmin <[email protected]>
1 parent 982d800 commit a87bb01

File tree

49 files changed

+1247
-138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1247
-138
lines changed

.fossa.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,9 @@ targets:
766766
- type: gradle
767767
path: ./
768768
target: ':instrumentation:opentelemetry-api:opentelemetry-api-1.47:javaagent'
769+
- type: gradle
770+
path: ./
771+
target: ':instrumentation:opentelemetry-api:opentelemetry-api-1.50:javaagent'
769772
- type: gradle
770773
path: ./
771774
target: ':instrumentation:pekko:pekko-actor-1.0:javaagent'

dependencyManagement/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
data class DependencySet(val group: String, val version: String, val modules: List<String>)
66

77
// this line is managed by .github/scripts/update-sdk-version.sh
8-
val otelSdkVersion = "1.49.0"
8+
val otelSdkVersion = "1.50.0"
99
val otelContribVersion = "1.46.0-alpha"
1010
val otelSdkAlphaVersion = otelSdkVersion.replaceFirst("(-SNAPSHOT)?$".toRegex(), "-alpha$1")
1111

examples/distro/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ subprojects {
2727
ext {
2828
versions = [
2929
// this line is managed by .github/scripts/update-sdk-version.sh
30-
opentelemetrySdk : "1.49.0",
30+
opentelemetrySdk : "1.50.0",
3131

3232
// these lines are managed by .github/scripts/update-version.sh
3333
opentelemetryJavaagent : "2.16.0-SNAPSHOT",

examples/extension/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ version '1.0'
2323
ext {
2424
versions = [
2525
// this line is managed by .github/scripts/update-sdk-version.sh
26-
opentelemetrySdk : "1.49.0",
26+
opentelemetrySdk : "1.50.0",
2727

2828
// these lines are managed by .github/scripts/update-version.sh
2929
opentelemetryJavaagent : "2.16.0-SNAPSHOT",

instrumentation/opentelemetry-api/opentelemetry-api-1.27/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/opentelemetryapi/v1_27/ApplicationOpenTelemetry127.java

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,22 @@ private static ApplicationMeterFactory getMeterFactory(String className) {
120120
}
121121

122122
private static ApplicationLoggerFactory getLoggerFactory() {
123-
// this class is defined in opentelemetry-api-1.47
123+
// this class is defined in opentelemetry-api-1.50
124124
ApplicationLoggerFactory loggerFactory =
125125
getLoggerFactory(
126-
"io.opentelemetry.javaagent.instrumentation.opentelemetryapi.v1_47.incubator.logs.ApplicationLoggerFactory147Incubator");
126+
"io.opentelemetry.javaagent.instrumentation.opentelemetryapi.v1_50.incubator.logs.ApplicationLoggerFactory150Incubator");
127+
if (loggerFactory == null) {
128+
// this class is defined in opentelemetry-api-1.50
129+
loggerFactory =
130+
getLoggerFactory(
131+
"io.opentelemetry.javaagent.instrumentation.opentelemetryapi.v1_50.logs.ApplicationLoggerFactory150");
132+
}
133+
if (loggerFactory == null) {
134+
// this class is defined in opentelemetry-api-1.47
135+
loggerFactory =
136+
getLoggerFactory(
137+
"io.opentelemetry.javaagent.instrumentation.opentelemetryapi.v1_47.incubator.logs.ApplicationLoggerFactory147Incubator");
138+
}
127139
if (loggerFactory == null) {
128140
// this class is defined in opentelemetry-api-1.42
129141
loggerFactory =

instrumentation/opentelemetry-api/opentelemetry-api-1.31/javaagent/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ configurations.configureEach {
1919
force("io.opentelemetry:opentelemetry-api:1.31.0")
2020
}
2121
}
22+
if (name == "testRuntimeClasspath" || name == "noopTestRuntimeClasspath") {
23+
exclude(group = "io.opentelemetry", module = "opentelemetry-api-incubator")
24+
}
2225
}
2326

2427
testing {

instrumentation/opentelemetry-api/opentelemetry-api-1.32/javaagent/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ configurations.configureEach {
2020
force("io.opentelemetry:opentelemetry-api:1.32.0")
2121
}
2222
}
23-
if (name == "testRuntimeClasspath") {
23+
if (name == "testRuntimeClasspath" || name == "incubatorTestRuntimeClasspath" || name == "noopTestRuntimeClasspath") {
2424
exclude(group = "io.opentelemetry", module = "opentelemetry-api-incubator")
2525
}
2626
}

instrumentation/opentelemetry-api/opentelemetry-api-1.42/javaagent/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ configurations.configureEach {
2121
if (name == "testRuntimeClasspath") {
2222
exclude(group = "io.opentelemetry", module = "opentelemetry-api-incubator")
2323
}
24+
resolutionStrategy {
25+
// use older version of opentelemetry-sdk-testing that does not depend on opentelemetry-api-incubator
26+
force("io.opentelemetry:opentelemetry-sdk-testing:1.47.0")
27+
}
2428
}
2529

2630
testing {

instrumentation/opentelemetry-api/opentelemetry-api-1.42/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/opentelemetryapi/v1_42/logs/ApplicationLogRecordBuilder142.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public LogRecordBuilder setBody(Value<?> body) {
3131
}
3232

3333
@SuppressWarnings("unchecked")
34-
private static io.opentelemetry.api.common.Value<?> convertValue(Value<?> value) {
34+
protected static io.opentelemetry.api.common.Value<?> convertValue(Value<?> value) {
3535
if (value == null) {
3636
return null;
3737
}

instrumentation/opentelemetry-api/opentelemetry-api-1.47/javaagent/build.gradle.kts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,14 @@ dependencies {
1313

1414
testImplementation("io.opentelemetry:opentelemetry-api-incubator")
1515
}
16+
17+
configurations.configureEach {
18+
if (name.endsWith("testRuntimeClasspath", true) || name.endsWith("testCompileClasspath", true)) {
19+
resolutionStrategy {
20+
force("io.opentelemetry:opentelemetry-api:1.47.0")
21+
force("io.opentelemetry:opentelemetry-api-incubator:1.47.0-alpha")
22+
// use older version of opentelemetry-sdk-testing that works with opentelemetry-api-incubator:1.47.0-alpha
23+
force("io.opentelemetry:opentelemetry-sdk-testing:1.47.0")
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)