File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
main/java/io/opentelemetry/contrib/aws/resource
test/java/io/opentelemetry/contrib/aws/resource Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 <>();
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments