Skip to content

Commit 3d30b10

Browse files
Update dependency io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha to v2.1.0-alpha (#1196)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jason Plumb <[email protected]>
1 parent de017df commit 3d30b10

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

aws-resources/src/main/java/io/opentelemetry/contrib/aws/resource/EcsResource.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ static void fetchMetadata(
9999
}
100100
}
101101

102+
// Suppression is required for CONTAINER_IMAGE_TAG until we are ready to upgrade.
103+
@SuppressWarnings("deprecation")
102104
static void parseResponse(
103105
JsonParser parser, AttributesBuilder attrBuilders, LogArnBuilder logArnBuilder)
104106
throws IOException {
@@ -124,6 +126,7 @@ static void parseResponse(
124126
DockerImage parsedImage = DockerImage.parse(value);
125127
if (parsedImage != null) {
126128
attrBuilders.put(ResourceAttributes.CONTAINER_IMAGE_NAME, parsedImage.getRepository());
129+
// TODO: CONTAINER_IMAGE_TAG has been replaced with CONTAINER_IMAGE_TAGS
127130
attrBuilders.put(ResourceAttributes.CONTAINER_IMAGE_TAG, parsedImage.getTag());
128131
}
129132
break;

aws-resources/src/test/java/io/opentelemetry/contrib/aws/resource/EcsResourceTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ class EcsResourceTest {
3333

3434
@Mock private SimpleHttpClient mockHttpClient;
3535

36+
// Suppression is required for CONTAINER_IMAGE_TAG until we are ready to upgrade.
37+
@SuppressWarnings("deprecation")
3638
@Test
3739
void testCreateAttributesV3() throws IOException {
3840
Map<String, String> mockSysEnv = new HashMap<>();
@@ -67,6 +69,8 @@ void testCreateAttributesV3() throws IOException {
6769
entry(ResourceAttributes.AWS_ECS_TASK_REVISION, "5"));
6870
}
6971

72+
// Suppression is required for CONTAINER_IMAGE_TAG until we are ready to upgrade.
73+
@SuppressWarnings("deprecation")
7074
@Test
7175
void testCreateAttributesV4() throws IOException {
7276
Map<String, String> mockSysEnv = new HashMap<>();

dependencyManagement/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ val DEPENDENCY_BOMS = listOf(
1313
"com.linecorp.armeria:armeria-bom:1.27.1",
1414
"org.junit:junit-bom:5.10.2",
1515
"io.grpc:grpc-bom:1.61.1",
16-
"io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:2.0.0-alpha",
16+
"io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:2.1.0-alpha",
1717
"org.testcontainers:testcontainers-bom:1.19.5"
1818
)
1919

0 commit comments

Comments
 (0)