Skip to content

Commit 4723352

Browse files
thpierceyiyuan-heADOT Patch workflow
authored
Merge/v2.11.x (#1087)
*Issue #, if available:* We have done the ADOT Java v2.11.0 and as part of the process, we need to merge the changes we made for this release back to the main branch. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. *Description of changes:* * Using GH UI created a new branch based on release/v.2.11.x * Using GH UI created this PR to main * Update otelSnapshotVersion to 2.12.0 in `aws-otel-java-instrumentation.patch` and `dependencyManagement/build.gradle.kts` * Rebased from main By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Co-authored-by: Michael He <53622546+yiyuan-he@users.noreply.github.com> Co-authored-by: ADOT Patch workflow <adot-patch-workflow@github.com>
1 parent 23c2ee5 commit 4723352

File tree

70 files changed

+601
-7952
lines changed

Some content is hidden

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

70 files changed

+601
-7952
lines changed

.github/patches/opentelemetry-java-instrumentation.patch

Lines changed: 219 additions & 174 deletions
Large diffs are not rendered by default.

.github/patches/versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
OTEL_JAVA_INSTRUMENTATION_VERSION=v2.10.0
1+
OTEL_JAVA_INSTRUMENTATION_VERSION=v2.11.0

dependencyManagement/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ data class DependencySet(val group: String, val version: String, val modules: Li
2727
val testSnapshots = rootProject.findProperty("testUpstreamSnapshots") == "true"
2828

2929
// This is the version of the upstream instrumentation BOM
30-
val otelVersion = "2.10.0-adot2"
31-
val otelSnapshotVersion = "2.11.0"
30+
val otelVersion = "2.11.0-adot1"
31+
val otelSnapshotVersion = "2.12.0"
3232
val otelAlphaVersion = if (!testSnapshots) "$otelVersion-alpha" else "$otelSnapshotVersion-alpha-SNAPSHOT"
3333
val otelJavaAgentVersion = if (!testSnapshots) otelVersion else "$otelSnapshotVersion-SNAPSHOT"
3434
// All versions below are only used in testing and do not affect the released artifact.

instrumentation/logback-1.0/src/main/java/software/amazon/opentelemetry/javaagent/instrumentation/logback_1_0/AwsXrayLoggingEventInstrumentation.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import io.opentelemetry.api.trace.SpanContext;
2727
import io.opentelemetry.context.Context;
2828
import io.opentelemetry.instrumentation.api.util.VirtualField;
29-
import io.opentelemetry.instrumentation.logback.mdc.v1_0.internal.UnionMap;
3029
import io.opentelemetry.javaagent.bootstrap.Java8BytecodeBridge;
3130
import io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation;
3231
import io.opentelemetry.javaagent.extension.instrumentation.TypeTransformer;
@@ -93,7 +92,10 @@ public static void onExit(
9392
if (contextData == null) {
9493
contextData = spanContextData;
9594
} else {
96-
contextData = new UnionMap<>(contextData, spanContextData);
95+
// Merge maps with UnionMap semantics: contextData values take precedence
96+
Map<String, String> mergedData = new HashMap<>(spanContextData);
97+
mergedData.putAll(contextData);
98+
contextData = mergedData;
9799
}
98100
}
99101
}

lambda-layer/patches/aws-otel-java-instrumentation.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ index 9493189..6090207 100644
66
val TEST_SNAPSHOTS = rootProject.findProperty("testUpstreamSnapshots") == "true"
77

88
// This is the version of the upstream instrumentation BOM
9-
-val otelVersion = "2.10.0-adot2"
10-
+val otelVersion = "2.10.0-adot-lambda1"
11-
val otelSnapshotVersion = "2.11.0"
9+
-val otelVersion = "2.11.0-adot1"
10+
+val otelVersion = "2.11.0-adot-lambda1"
11+
val otelSnapshotVersion = "2.12.0"
1212
val otelAlphaVersion = if (!TEST_SNAPSHOTS) "$otelVersion-alpha" else "$otelSnapshotVersion-alpha-SNAPSHOT"
13-
val otelJavaAgentVersion = if (!TEST_SNAPSHOTS) otelVersion else "$otelSnapshotVersion-SNAPSHOT"
13+
val otelJavaAgentVersion = if (!TEST_SNAPSHOTS) otelVersion else "$otelSnapshotVersion-SNAPSHOT"

lambda-layer/patches/opentelemetry-java-instrumentation.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,10 @@ index 7900c9a4d9..80383d7c22 100644
310310
--- a/version.gradle.kts
311311
+++ b/version.gradle.kts
312312
@@ -1,5 +1,5 @@
313-
-val stableVersion = "2.10.0-adot2"
314-
-val alphaVersion = "2.10.0-adot2-alpha"
315-
+val stableVersion = "2.10.0-adot-lambda1"
316-
+val alphaVersion = "2.10.0-adot-lambda1-alpha"
313+
-val stableVersion = "2.11.0-adot1"
314+
-val alphaVersion = "2.11.0-adot1-alpha"
315+
+val stableVersion = "2.11.0-adot-lambda1"
316+
+val alphaVersion = "2.11.0-adot-lambda1-alpha"
317317

318318
allprojects {
319-
if (findProperty("otel.stable") != "true") {
319+
if (findProperty("otel.stable") != "true") {

licenses/annotations-2.29.23.jar/META-INF/LICENSE.txt

Lines changed: 0 additions & 206 deletions
This file was deleted.

licenses/annotations-2.29.23.jar/META-INF/NOTICE.txt

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)