diff --git a/README.md b/README.md index 15b2ce5a596..7494747e921 100644 --- a/README.md +++ b/README.md @@ -270,7 +270,7 @@ dependency as follows, replacing `{{artifact-id}}` with the value from the "Arti |-------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|-----------------------------------------------------|-------------------------------------------------------------| | [SDK Autoconfigure Extension](./sdk-extensions/autoconfigure) | Autoconfigure OpenTelemetry SDK from env vars, system properties, and SPI | `opentelemetry-sdk-extension-autoconfigure` | 1.18.0-alpha | | [SDK Autoconfigure SPI](./sdk-extensions/autoconfigure-spi) | Service Provider Interface (SPI) definitions for autoconfigure | `opentelemetry-sdk-extension-autoconfigure-spi` | 1.18.0 | -| [SDK Resources Extension](./sdk-extensions/resources) | Resource providers, including container, host, os, and process | `opentelemetry-sdk-extension-resources` | 1.18.0 | +| [SDK Resources Extension](./sdk-extensions/resources) | Resource providers, including container, host, os, and process (deprecated) | `opentelemetry-sdk-extension-resources` | 1.18.0 | | [SDK AWS Extension](./sdk-extensions/aws) | AWS resource providers, including beanstalk, ec2, ecs, eks, and lambda | `opentelemetry-sdk-extension-aws` | 1.18.0 | | [SDK Jaeger Remote Sampler Extension](./sdk-extensions/jaeger-remote-sampler) | Sampler which obtains sampling configuration from remote Jaeger server | `opentelemetry-sdk-extension-jaeger-remote-sampler` | 1.18.0 | | [SDK Incubator](./sdk-extensions/incubator) | SDK incubator, including YAML based view configuration, LeakDetectingSpanProcessor, and zPages | `opentelemetry-sdk-extension-incubator` | 1.18.0-alpha | diff --git a/docs/apidiffs/current_vs_latest/opentelemetry-sdk-extension-resources.txt b/docs/apidiffs/current_vs_latest/opentelemetry-sdk-extension-resources.txt index df26146497b..2572189c4cd 100644 --- a/docs/apidiffs/current_vs_latest/opentelemetry-sdk-extension-resources.txt +++ b/docs/apidiffs/current_vs_latest/opentelemetry-sdk-extension-resources.txt @@ -1,2 +1,31 @@ Comparing source compatibility of against -No changes. \ No newline at end of file +=== UNCHANGED CLASS: PUBLIC FINAL io.opentelemetry.sdk.extension.resources.ContainerResource (not serializable) + === CLASS FILE FORMAT VERSION: 52.0 <- 52.0 + +++ NEW ANNOTATION: java.lang.Deprecated +=== UNCHANGED CLASS: PUBLIC io.opentelemetry.sdk.extension.resources.ContainerResourceProvider (not serializable) + === CLASS FILE FORMAT VERSION: 52.0 <- 52.0 + +++ NEW ANNOTATION: java.lang.Deprecated +=== UNCHANGED CLASS: PUBLIC FINAL io.opentelemetry.sdk.extension.resources.HostResource (not serializable) + === CLASS FILE FORMAT VERSION: 52.0 <- 52.0 + +++ NEW ANNOTATION: java.lang.Deprecated +=== UNCHANGED CLASS: PUBLIC FINAL io.opentelemetry.sdk.extension.resources.HostResourceProvider (not serializable) + === CLASS FILE FORMAT VERSION: 52.0 <- 52.0 + +++ NEW ANNOTATION: java.lang.Deprecated +=== UNCHANGED CLASS: PUBLIC FINAL io.opentelemetry.sdk.extension.resources.OsResource (not serializable) + === CLASS FILE FORMAT VERSION: 52.0 <- 52.0 + +++ NEW ANNOTATION: java.lang.Deprecated +=== UNCHANGED CLASS: PUBLIC FINAL io.opentelemetry.sdk.extension.resources.OsResourceProvider (not serializable) + === CLASS FILE FORMAT VERSION: 52.0 <- 52.0 + +++ NEW ANNOTATION: java.lang.Deprecated +=== UNCHANGED CLASS: PUBLIC FINAL io.opentelemetry.sdk.extension.resources.ProcessResource (not serializable) + === CLASS FILE FORMAT VERSION: 52.0 <- 52.0 + +++ NEW ANNOTATION: java.lang.Deprecated +=== UNCHANGED CLASS: PUBLIC FINAL io.opentelemetry.sdk.extension.resources.ProcessResourceProvider (not serializable) + === CLASS FILE FORMAT VERSION: 52.0 <- 52.0 + +++ NEW ANNOTATION: java.lang.Deprecated +=== UNCHANGED CLASS: PUBLIC FINAL io.opentelemetry.sdk.extension.resources.ProcessRuntimeResource (not serializable) + === CLASS FILE FORMAT VERSION: 52.0 <- 52.0 + +++ NEW ANNOTATION: java.lang.Deprecated +=== UNCHANGED CLASS: PUBLIC FINAL io.opentelemetry.sdk.extension.resources.ProcessRuntimeResourceProvider (not serializable) + === CLASS FILE FORMAT VERSION: 52.0 <- 52.0 + +++ NEW ANNOTATION: java.lang.Deprecated diff --git a/sdk-extensions/resources/README.md b/sdk-extensions/resources/README.md index 1e4b493c15c..323cc417ed1 100644 --- a/sdk-extensions/resources/README.md +++ b/sdk-extensions/resources/README.md @@ -2,6 +2,12 @@ [![Javadocs][javadoc-image]][javadoc-url] +> **NOTICE**: This artifact is deprecated and its contents have been moved +> to [io.opentelemetry.instrumentation:opentelemetry-resources](https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/main/instrumentation/resources). +> Version 1.19.0 will be the last minor version published. However, it will continue to receive +> patches for security vulnerabilities, and `io.opentelemetry:opentelemetry-bom` will reference the +> last published version. + This package includes some standard `ResourceProvider`s for filling in attributes related to common environments. Currently the resources provide the following semantic conventions diff --git a/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ContainerResource.java b/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ContainerResource.java index 34a0090f747..b555a12bb1b 100644 --- a/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ContainerResource.java +++ b/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ContainerResource.java @@ -20,7 +20,13 @@ import javax.annotation.Nullable; import org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement; -/** Factory for {@link Resource} retrieving Container ID information. */ +/** + * Factory for {@link Resource} retrieving Container ID information. + * + * @deprecated Moved to io.opentelemetry.instrumentation:opentelemetry-resources. + */ +@Deprecated public final class ContainerResource { private static final Logger logger = Logger.getLogger(ContainerResource.class.getName()); diff --git a/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ContainerResourceProvider.java b/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ContainerResourceProvider.java index 1146737777f..a8c9d290c60 100644 --- a/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ContainerResourceProvider.java +++ b/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ContainerResourceProvider.java @@ -9,7 +9,13 @@ import io.opentelemetry.sdk.autoconfigure.spi.ResourceProvider; import io.opentelemetry.sdk.resources.Resource; -/** {@link ResourceProvider} for automatically configuring {@link ResourceProvider}. */ +/** + * {@link ResourceProvider} for automatically configuring {@link ResourceProvider}. + * + * @deprecated Moved to io.opentelemetry.instrumentation:opentelemetry-resources. + */ +@Deprecated public class ContainerResourceProvider implements ResourceProvider { @Override public Resource createResource(ConfigProperties config) { diff --git a/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/HostResource.java b/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/HostResource.java index e3ecf76416b..96fb49f0b23 100644 --- a/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/HostResource.java +++ b/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/HostResource.java @@ -12,7 +12,13 @@ import java.net.InetAddress; import java.net.UnknownHostException; -/** Factory for a {@link Resource} which provides information about the host info. */ +/** + * Factory for a {@link Resource} which provides information about the host info. + * + * @deprecated Moved to io.opentelemetry.instrumentation:opentelemetry-resources. + */ +@Deprecated public final class HostResource { private static final Resource INSTANCE = buildResource(); diff --git a/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/HostResourceProvider.java b/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/HostResourceProvider.java index b49691ba1bc..b4ff167bc3e 100644 --- a/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/HostResourceProvider.java +++ b/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/HostResourceProvider.java @@ -9,7 +9,13 @@ import io.opentelemetry.sdk.autoconfigure.spi.ResourceProvider; import io.opentelemetry.sdk.resources.Resource; -/** {@link ResourceProvider} for automatically configuring {@link HostResource}. */ +/** + * {@link ResourceProvider} for automatically configuring {@link HostResource}. + * + * @deprecated Moved to io.opentelemetry.instrumentation:opentelemetry-resources. + */ +@Deprecated public final class HostResourceProvider implements ResourceProvider { @Override public Resource createResource(ConfigProperties config) { diff --git a/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/OsResource.java b/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/OsResource.java index 323988da2da..c82298d9afd 100644 --- a/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/OsResource.java +++ b/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/OsResource.java @@ -11,7 +11,13 @@ import io.opentelemetry.semconv.resource.attributes.ResourceAttributes; import javax.annotation.Nullable; -/** Factory of a {@link Resource} which provides information about the current operating system. */ +/** + * Factory of a {@link Resource} which provides information about the current operating system. + * + * @deprecated Moved to io.opentelemetry.instrumentation:opentelemetry-resources. + */ +@Deprecated public final class OsResource { private static final Resource INSTANCE = buildResource(); diff --git a/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/OsResourceProvider.java b/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/OsResourceProvider.java index e7e70d8314a..565d518ce58 100644 --- a/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/OsResourceProvider.java +++ b/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/OsResourceProvider.java @@ -9,7 +9,13 @@ import io.opentelemetry.sdk.autoconfigure.spi.ResourceProvider; import io.opentelemetry.sdk.resources.Resource; -/** {@link ResourceProvider} for automatically configuring {@link OsResource}. */ +/** + * {@link ResourceProvider} for automatically configuring {@link OsResource}. + * + * @deprecated Moved to io.opentelemetry.instrumentation:opentelemetry-resources. + */ +@Deprecated public final class OsResourceProvider implements ResourceProvider { @Override public Resource createResource(ConfigProperties config) { diff --git a/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ProcessResource.java b/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ProcessResource.java index 03c3702d41d..f71d5f9fc18 100644 --- a/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ProcessResource.java +++ b/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ProcessResource.java @@ -14,7 +14,13 @@ import java.lang.management.RuntimeMXBean; import org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement; -/** Factory of a {@link Resource} which provides information about the current running process. */ +/** + * Factory of a {@link Resource} which provides information about the current running process. + * + * @deprecated Moved to io.opentelemetry.instrumentation:opentelemetry-resources. + */ +@Deprecated public final class ProcessResource { private static final Resource INSTANCE = buildResource(); diff --git a/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ProcessResourceProvider.java b/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ProcessResourceProvider.java index 1ed9a4c3f18..83ee3920956 100644 --- a/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ProcessResourceProvider.java +++ b/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ProcessResourceProvider.java @@ -9,7 +9,13 @@ import io.opentelemetry.sdk.autoconfigure.spi.ResourceProvider; import io.opentelemetry.sdk.resources.Resource; -/** {@link ResourceProvider} for automatically configuring {@link ProcessResource}. */ +/** + * {@link ResourceProvider} for automatically configuring {@link ProcessResource}. + * + * @deprecated Moved to io.opentelemetry.instrumentation:opentelemetry-resources. + */ +@Deprecated public final class ProcessResourceProvider implements ResourceProvider { @Override public Resource createResource(ConfigProperties config) { diff --git a/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ProcessRuntimeResource.java b/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ProcessRuntimeResource.java index 2bd8054b4ce..751d83f2ebd 100644 --- a/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ProcessRuntimeResource.java +++ b/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ProcessRuntimeResource.java @@ -13,7 +13,13 @@ import io.opentelemetry.sdk.resources.Resource; import io.opentelemetry.semconv.resource.attributes.ResourceAttributes; -/** Factory of a {@link Resource} which provides information about the Java runtime. */ +/** + * Factory of a {@link Resource} which provides information about the Java runtime. + * + * @deprecated Moved to io.opentelemetry.instrumentation:opentelemetry-resources. + */ +@Deprecated public final class ProcessRuntimeResource { private static final Resource INSTANCE = buildResource(); diff --git a/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ProcessRuntimeResourceProvider.java b/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ProcessRuntimeResourceProvider.java index e35155132f4..03ae005378f 100644 --- a/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ProcessRuntimeResourceProvider.java +++ b/sdk-extensions/resources/src/main/java/io/opentelemetry/sdk/extension/resources/ProcessRuntimeResourceProvider.java @@ -9,7 +9,13 @@ import io.opentelemetry.sdk.autoconfigure.spi.ResourceProvider; import io.opentelemetry.sdk.resources.Resource; -/** {@link ResourceProvider} for automatically configuring {@link ProcessRuntimeResource}. */ +/** + * {@link ResourceProvider} for automatically configuring {@link ProcessRuntimeResource}. + * + * @deprecated Moved to io.opentelemetry.instrumentation:opentelemetry-resources. + */ +@Deprecated public final class ProcessRuntimeResourceProvider implements ResourceProvider { @Override public Resource createResource(ConfigProperties config) { diff --git a/sdk-extensions/resources/src/test/java/io/opentelemetry/sdk/extension/resources/ContainerResourceTest.java b/sdk-extensions/resources/src/test/java/io/opentelemetry/sdk/extension/resources/ContainerResourceTest.java index 714fa5f13e6..77124a520e2 100644 --- a/sdk-extensions/resources/src/test/java/io/opentelemetry/sdk/extension/resources/ContainerResourceTest.java +++ b/sdk-extensions/resources/src/test/java/io/opentelemetry/sdk/extension/resources/ContainerResourceTest.java @@ -5,7 +5,6 @@ package io.opentelemetry.sdk.extension.resources; -import static io.opentelemetry.sdk.extension.resources.ContainerResource.buildResource; import static org.assertj.core.api.Assertions.assertThat; import io.opentelemetry.sdk.resources.Resource; @@ -17,6 +16,7 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.io.TempDir; +@SuppressWarnings("deprecation") // Moved to instrumentation class ContainerResourceTest { @Test @@ -26,18 +26,18 @@ void buildResource_Invalid(@TempDir Path tempFolder) throws IOException { createCGroup( tempFolder.resolve("cgroup1"), "13:name=systemd:/podruntime/docker/kubepods/ac679f8a8319c8cf7d38e1adf263bc08d23zzzz"); - assertThat(buildResource(cgroup)).isEqualTo(Resource.empty()); + assertThat(ContainerResource.buildResource(cgroup)).isEqualTo(Resource.empty()); // unrecognized format (last "-" is after last ".") cgroup = createCGroup( tempFolder.resolve("cgroup1"), "13:name=systemd:/podruntime/docker/kubepods/ac679f8.a8319c8cf7d38e1adf263bc08-d23zzzz"); - assertThat(buildResource(cgroup)).isEqualTo(Resource.empty()); + assertThat(ContainerResource.buildResource(cgroup)).isEqualTo(Resource.empty()); // test invalid file cgroup = tempFolder.resolve("DoesNotExist"); - assertThat(buildResource(cgroup)).isEqualTo(Resource.empty()); + assertThat(ContainerResource.buildResource(cgroup)).isEqualTo(Resource.empty()); } @Test @@ -47,7 +47,7 @@ void buildResource_Valid(@TempDir Path tempFolder) throws IOException { createCGroup( tempFolder.resolve("cgroup1"), "13:name=systemd:/podruntime/docker/kubepods/ac679f8a8319c8cf7d38e1adf263bc08d23.aaaa"); - assertThat(getContainerId(buildResource(cgroup))) + assertThat(getContainerId(ContainerResource.buildResource(cgroup))) .isEqualTo("ac679f8a8319c8cf7d38e1adf263bc08d23"); // with prefix and suffix @@ -55,7 +55,7 @@ void buildResource_Valid(@TempDir Path tempFolder) throws IOException { createCGroup( tempFolder.resolve("cgroup2"), "13:name=systemd:/podruntime/docker/kubepods/crio-dc679f8a8319c8cf7d38e1adf263bc08d23.stuff"); - assertThat(getContainerId(buildResource(cgroup2))) + assertThat(getContainerId(ContainerResource.buildResource(cgroup2))) .isEqualTo("dc679f8a8319c8cf7d38e1adf263bc08d23"); // just container id @@ -63,7 +63,7 @@ void buildResource_Valid(@TempDir Path tempFolder) throws IOException { createCGroup( tempFolder.resolve("cgroup3"), "13:name=systemd:/pod/d86d75589bf6cc254f3e2cc29debdf85dde404998aa128997a819ff991827356"); - assertThat(getContainerId(buildResource(cgroup3))) + assertThat(getContainerId(ContainerResource.buildResource(cgroup3))) .isEqualTo("d86d75589bf6cc254f3e2cc29debdf85dde404998aa128997a819ff991827356"); // with prefix @@ -74,7 +74,7 @@ void buildResource_Valid(@TempDir Path tempFolder) throws IOException { + "1:name=systemd:/podruntime/docker/kubepods/docker-dc579f8a8319c8cf7d38e1adf263bc08d23" + "2:name=systemd:/podruntime/docker/kubepods/docker-dc579f8a8319c8cf7d38e1adf263bc08d23" + "3:name=systemd:/podruntime/docker/kubepods/docker-dc579f8a8319c8cf7d38e1adf263bc08d23"); - assertThat(getContainerId(buildResource(cgroup4))) + assertThat(getContainerId(ContainerResource.buildResource(cgroup4))) .isEqualTo("dc579f8a8319c8cf7d38e1adf263bc08d23"); // with two dashes in prefix @@ -82,7 +82,7 @@ void buildResource_Valid(@TempDir Path tempFolder) throws IOException { createCGroup( tempFolder.resolve("cgroup5"), "11:perf_event:/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod4415fd05_2c0f_4533_909b_f2180dca8d7c.slice/cri-containerd-713a77a26fe2a38ebebd5709604a048c3d380db1eb16aa43aca0b2499e54733c.scope"); - assertThat(getContainerId(buildResource(cgroup5))) + assertThat(getContainerId(ContainerResource.buildResource(cgroup5))) .isEqualTo("713a77a26fe2a38ebebd5709604a048c3d380db1eb16aa43aca0b2499e54733c"); // with colon, env: k8s v1.24.0, the cgroupDriver by systemd(default), and container is @@ -91,7 +91,7 @@ void buildResource_Valid(@TempDir Path tempFolder) throws IOException { createCGroup( tempFolder.resolve("cgroup6"), "11:devices:/system.slice/containerd.service/kubepods-pod87a18a64_b74a_454a_b10b_a4a36059d0a3.slice:cri-containerd:05c48c82caff3be3d7f1e896981dd410e81487538936914f32b624d168de9db0"); - assertThat(getContainerId(buildResource(cgroup6))) + assertThat(getContainerId(ContainerResource.buildResource(cgroup6))) .isEqualTo("05c48c82caff3be3d7f1e896981dd410e81487538936914f32b624d168de9db0"); } diff --git a/sdk-extensions/resources/src/test/java/io/opentelemetry/sdk/extension/resources/HostResourceTest.java b/sdk-extensions/resources/src/test/java/io/opentelemetry/sdk/extension/resources/HostResourceTest.java index 15bb9dc6db9..96df38791b6 100644 --- a/sdk-extensions/resources/src/test/java/io/opentelemetry/sdk/extension/resources/HostResourceTest.java +++ b/sdk-extensions/resources/src/test/java/io/opentelemetry/sdk/extension/resources/HostResourceTest.java @@ -17,6 +17,7 @@ import org.junit.jupiter.api.condition.JRE; import org.junit.jupiter.api.extension.ExtendWith; +@SuppressWarnings("deprecation") // Moved to instrumentation class HostResourceTest { @Test void shouldCreateRuntimeAttributes() { diff --git a/sdk-extensions/resources/src/test/java/io/opentelemetry/sdk/extension/resources/OsResourceTest.java b/sdk-extensions/resources/src/test/java/io/opentelemetry/sdk/extension/resources/OsResourceTest.java index 4a2c64b88bc..87dddc18d8d 100644 --- a/sdk-extensions/resources/src/test/java/io/opentelemetry/sdk/extension/resources/OsResourceTest.java +++ b/sdk-extensions/resources/src/test/java/io/opentelemetry/sdk/extension/resources/OsResourceTest.java @@ -17,6 +17,7 @@ import org.junit.jupiter.api.extension.ExtendWith; import org.junitpioneer.jupiter.SetSystemProperty; +@SuppressWarnings("deprecation") // Moved to instrumentation class OsResourceTest { @Test diff --git a/sdk-extensions/resources/src/test/java/io/opentelemetry/sdk/extension/resources/ProcessResourceTest.java b/sdk-extensions/resources/src/test/java/io/opentelemetry/sdk/extension/resources/ProcessResourceTest.java index 073d347634e..78022a56c6a 100644 --- a/sdk-extensions/resources/src/test/java/io/opentelemetry/sdk/extension/resources/ProcessResourceTest.java +++ b/sdk-extensions/resources/src/test/java/io/opentelemetry/sdk/extension/resources/ProcessResourceTest.java @@ -18,6 +18,7 @@ import org.junit.jupiter.api.extension.ExtendWith; import org.junitpioneer.jupiter.SetSystemProperty; +@SuppressWarnings("deprecation") // Moved to instrumentation class ProcessResourceTest { @Test diff --git a/sdk-extensions/resources/src/test/java/io/opentelemetry/sdk/extension/resources/ProcessRuntimeResourceTest.java b/sdk-extensions/resources/src/test/java/io/opentelemetry/sdk/extension/resources/ProcessRuntimeResourceTest.java index 290dde44352..e3f6c722b13 100644 --- a/sdk-extensions/resources/src/test/java/io/opentelemetry/sdk/extension/resources/ProcessRuntimeResourceTest.java +++ b/sdk-extensions/resources/src/test/java/io/opentelemetry/sdk/extension/resources/ProcessRuntimeResourceTest.java @@ -17,6 +17,7 @@ import org.junit.jupiter.api.condition.JRE; import org.junit.jupiter.api.extension.ExtendWith; +@SuppressWarnings("deprecation") // Moved to instrumentation class ProcessRuntimeResourceTest { @Test void shouldCreateRuntimeAttributes() {