From 732e20f0d1572a33d3e874cf752cb6b6e0d1ab49 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Wed, 6 Nov 2024 10:23:03 -0800 Subject: [PATCH] Fix the build (#12579) --- .../instrumentation/resources/JarServiceNameDetectorTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/instrumentation/resources/library/src/test/java/io/opentelemetry/instrumentation/resources/JarServiceNameDetectorTest.java b/instrumentation/resources/library/src/test/java/io/opentelemetry/instrumentation/resources/JarServiceNameDetectorTest.java index a2d785bd6eb8..36ff088695bb 100644 --- a/instrumentation/resources/library/src/test/java/io/opentelemetry/instrumentation/resources/JarServiceNameDetectorTest.java +++ b/instrumentation/resources/library/src/test/java/io/opentelemetry/instrumentation/resources/JarServiceNameDetectorTest.java @@ -82,9 +82,7 @@ void createResource_processHandleJarExtraFlag() { Resource resource = serviceNameProvider.createResource(config); - assertThat(resource.getAttributes()) - .hasSize(1) - .containsEntry(ServiceAttributes.SERVICE_NAME, "my-service"); + assertThat(resource.getAttributes()).hasSize(1).containsEntry(SERVICE_NAME, "my-service"); } @Test