From f3dd79fac84a0538fbc4d263930d1896ab68f00c Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Tue, 13 Jun 2023 16:27:42 -0700 Subject: [PATCH 1/3] Rename runtime-metrics to runtime-telemetry --- docs/supported-libraries.md | 2 +- instrumentation/jmx-metrics/javaagent/README.md | 2 +- .../javaagent/build.gradle.kts | 4 ++-- .../java17/Java17RuntimeMetricsInstaller.java | 8 ++++---- .../src/test/groovy/JmxRuntimeMetricsTest.groovy | 0 .../runtimemetrics/java17/JfrRuntimeMetricsTest.java | 0 .../runtime-telemetry-java17}/library/README.md | 0 .../runtime-telemetry-java17}/library/build.gradle.kts | 2 +- .../runtimemetrics/java17/HandlerRegistry.java | 2 +- .../runtimemetrics/java17/JfrFeature.java | 2 +- .../runtimemetrics/java17/RuntimeMetrics.java | 0 .../runtimemetrics/java17/RuntimeMetricsBuilder.java | 0 .../internal/AbstractThreadDispatchingHandler.java | 0 .../runtimemetrics/java17/internal/Constants.java | 0 .../runtimemetrics/java17/internal/DurationUtil.java | 0 .../java17/internal/RecordedEventHandler.java | 0 .../runtimemetrics/java17/internal/ThreadGrouper.java | 0 .../internal/buffer/DirectBufferStatisticsHandler.java | 0 .../java17/internal/classes/ClassesLoadedHandler.java | 0 .../container/ContainerConfigurationHandler.java | 0 .../java17/internal/cpu/ContextSwitchRateHandler.java | 0 .../java17/internal/cpu/LongLockHandler.java | 0 .../java17/internal/cpu/OverallCpuLoadHandler.java | 0 .../garbagecollection/G1GarbageCollectionHandler.java | 0 .../garbagecollection/OldGarbageCollectionHandler.java | 0 .../YoungGarbageCollectionHandler.java | 0 .../internal/memory/CodeCacheConfigurationHandler.java | 0 .../java17/internal/memory/G1HeapSummaryHandler.java | 0 .../internal/memory/MetaspaceSummaryHandler.java | 0 .../memory/ObjectAllocationInNewTlabHandler.java | 0 .../memory/ObjectAllocationOutsideTlabHandler.java | 0 .../internal/memory/ParallelHeapSummaryHandler.java | 0 .../java17/internal/network/NetworkReadHandler.java | 0 .../java17/internal/network/NetworkWriteHandler.java | 0 .../java17/internal/threads/ThreadCountHandler.java | 0 .../runtimemetrics/java17/BufferMetricTest.java | 0 .../java17/CodeCacheMemoryInitMetricTest.java | 0 .../runtimemetrics/java17/G1GcMemoryMetricTest.java | 0 .../runtimemetrics/java17/GenerateDocs.java | 0 .../java17/JfrClassesLoadedCountTest.java | 0 .../runtimemetrics/java17/JfrCpuLockTest.java | 0 .../runtimemetrics/java17/JfrExtension.java | 0 .../java17/JfrOverallCpuLoadHandlerTest.java | 0 .../runtimemetrics/java17/JfrThreadCountTest.java | 0 .../java17/MetaspaceMemoryCommittedMetricTest.java | 0 .../java17/MetaspaceMemoryLimitMetricTest.java | 0 .../java17/MetaspaceMemoryUsageMetricTest.java | 0 .../runtimemetrics/java17/PsGcMemoryMetricTest.java | 0 .../java17/RuntimeMetricsBuilderTest.java | 0 .../runtimemetrics/java17/RuntimeMetricsTest.java | 2 +- .../java17/SerialGcMemoryMetricTest.java | 0 .../javaagent/build.gradle.kts | 2 +- .../java8/Java8RuntimeMetricsInstaller.java | 0 .../runtime-telemetry-java8}/library/README.md | 6 +++--- .../runtime-telemetry-java8}/library/build.gradle.kts | 0 .../runtimemetrics/java8/BufferPools.java | 0 .../instrumentation/runtimemetrics/java8/Classes.java | 0 .../instrumentation/runtimemetrics/java8/Cpu.java | 0 .../runtimemetrics/java8/GarbageCollector.java | 0 .../runtimemetrics/java8/MemoryPools.java | 0 .../instrumentation/runtimemetrics/java8/Threads.java | 0 .../java8/internal/JmxRuntimeMetricsUtil.java | 2 +- .../runtimemetrics/java8/BufferPoolsTest.java | 6 +++--- .../runtimemetrics/java8/ClassesTest.java | 6 +++--- .../instrumentation/runtimemetrics/java8/CpuTest.java | 6 +++--- .../runtimemetrics/java8/GarbageCollectorTest.java | 2 +- .../runtimemetrics/java8/MemoryPoolsTest.java | 10 +++++----- .../runtimemetrics/java8/ScopeUtil.java | 2 +- .../runtimemetrics/java8/ThreadsTest.java | 2 +- settings.gradle.kts | 8 ++++---- 70 files changed, 38 insertions(+), 38 deletions(-) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/javaagent/build.gradle.kts (57%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java17/Java17RuntimeMetricsInstaller.java (84%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/javaagent/src/test/groovy/JmxRuntimeMetricsTest.groovy (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/javaagent/src/test/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java17/JfrRuntimeMetricsTest.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/README.md (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/build.gradle.kts (93%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/HandlerRegistry.java (99%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrFeature.java (91%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetrics.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetricsBuilder.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/AbstractThreadDispatchingHandler.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/Constants.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/DurationUtil.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/RecordedEventHandler.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/ThreadGrouper.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/buffer/DirectBufferStatisticsHandler.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/classes/ClassesLoadedHandler.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/container/ContainerConfigurationHandler.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/cpu/ContextSwitchRateHandler.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/cpu/LongLockHandler.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/cpu/OverallCpuLoadHandler.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/garbagecollection/G1GarbageCollectionHandler.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/garbagecollection/OldGarbageCollectionHandler.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/garbagecollection/YoungGarbageCollectionHandler.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/CodeCacheConfigurationHandler.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/G1HeapSummaryHandler.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/MetaspaceSummaryHandler.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/ObjectAllocationInNewTlabHandler.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/ObjectAllocationOutsideTlabHandler.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/ParallelHeapSummaryHandler.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/network/NetworkReadHandler.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/network/NetworkWriteHandler.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/threads/ThreadCountHandler.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/BufferMetricTest.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/CodeCacheMemoryInitMetricTest.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/G1GcMemoryMetricTest.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/GenerateDocs.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrClassesLoadedCountTest.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrCpuLockTest.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrExtension.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrOverallCpuLoadHandlerTest.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrThreadCountTest.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/MetaspaceMemoryCommittedMetricTest.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/MetaspaceMemoryLimitMetricTest.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/MetaspaceMemoryUsageMetricTest.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/PsGcMemoryMetricTest.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetricsBuilderTest.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetricsTest.java (97%) rename instrumentation/{runtime-metrics/runtime-metrics-java17 => runtime-telemetry/runtime-telemetry-java17}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/SerialGcMemoryMetricTest.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java8 => runtime-telemetry/runtime-telemetry-java8}/javaagent/build.gradle.kts (87%) rename instrumentation/{runtime-metrics/runtime-metrics-java8 => runtime-telemetry/runtime-telemetry-java8}/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java8/Java8RuntimeMetricsInstaller.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java8 => runtime-telemetry/runtime-telemetry-java8}/library/README.md (97%) rename instrumentation/{runtime-metrics/runtime-metrics-java8 => runtime-telemetry/runtime-telemetry-java8}/library/build.gradle.kts (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java8 => runtime-telemetry/runtime-telemetry-java8}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/BufferPools.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java8 => runtime-telemetry/runtime-telemetry-java8}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/Classes.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java8 => runtime-telemetry/runtime-telemetry-java8}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/Cpu.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java8 => runtime-telemetry/runtime-telemetry-java8}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/GarbageCollector.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java8 => runtime-telemetry/runtime-telemetry-java8}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/MemoryPools.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java8 => runtime-telemetry/runtime-telemetry-java8}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/Threads.java (100%) rename instrumentation/{runtime-metrics/runtime-metrics-java8 => runtime-telemetry/runtime-telemetry-java8}/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/internal/JmxRuntimeMetricsUtil.java (97%) rename instrumentation/{runtime-metrics/runtime-metrics-java8 => runtime-telemetry/runtime-telemetry-java8}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/BufferPoolsTest.java (97%) rename instrumentation/{runtime-metrics/runtime-metrics-java8 => runtime-telemetry/runtime-telemetry-java8}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ClassesTest.java (95%) rename instrumentation/{runtime-metrics/runtime-metrics-java8 => runtime-telemetry/runtime-telemetry-java8}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/CpuTest.java (95%) rename instrumentation/{runtime-metrics/runtime-metrics-java8 => runtime-telemetry/runtime-telemetry-java8}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/GarbageCollectorTest.java (99%) rename instrumentation/{runtime-metrics/runtime-metrics-java8 => runtime-telemetry/runtime-telemetry-java8}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/MemoryPoolsTest.java (97%) rename instrumentation/{runtime-metrics/runtime-metrics-java8 => runtime-telemetry/runtime-telemetry-java8}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ScopeUtil.java (96%) rename instrumentation/{runtime-metrics/runtime-metrics-java8 => runtime-telemetry/runtime-telemetry-java8}/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ThreadsTest.java (98%) diff --git a/docs/supported-libraries.md b/docs/supported-libraries.md index fc238fecf7cc..483051da5e0d 100644 --- a/docs/supported-libraries.md +++ b/docs/supported-libraries.md @@ -70,7 +70,7 @@ These are the supported libraries and frameworks: | [Java Executors](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/Executor.html) | Java 8+ | N/A | Context propagation | | [Java Http Client](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/package-summary.html) | Java 11+ | [opentelemetry-java-http-client](../instrumentation/java-http-client/library) | [HTTP Client Spans], [HTTP Client Metrics] | | [java.util.logging](https://docs.oracle.com/javase/8/docs/api/java/util/logging/package-summary.html) | Java 8+ | N/A | none | -| [Java Platform](https://docs.oracle.com/javase/8/docs/api/java/lang/management/ManagementFactory.html) | Java 8+ | [opentelemetry-runtime-metrics-java8](../instrumentation/runtime-metrics/runtime-metrics-java8/library),[opentelemetry-runtime-metrics-java17](../instrumentation/runtime-metrics/runtime-metrics-java17/library),
[opentelemetry-resources](../instrumentation/resources/library) | [JVM Runtime Metrics] | +| [Java Platform](https://docs.oracle.com/javase/8/docs/api/java/lang/management/ManagementFactory.html) | Java 8+ | [opentelemetry-runtime-telemetry-java8](../instrumentation/runtime-metrics/runtime-telemetry-java8/library),[opentelemetry-runtime-telemetry-java17](../instrumentation/runtime-metrics/runtime-telemetry-java17/library),
[opentelemetry-resources](../instrumentation/resources/library) | [JVM Runtime Metrics] | | [JAX-RS](https://javaee.github.io/javaee-spec/javadocs/javax/ws/rs/package-summary.html) | 0.5+ | N/A | Provides `http.route` [2], Controller Spans [3] | | [JAX-RS Client](https://javaee.github.io/javaee-spec/javadocs/javax/ws/rs/client/package-summary.html) | 1.1+ | N/A | [HTTP Client Spans], [HTTP Client Metrics] | | [JAX-WS](https://jakarta.ee/specifications/xml-web-services/2.3/apidocs/javax/xml/ws/package-summary.html) | 2.0+ (not including 3.x yet) | N/A | Provides `http.route` [2], Controller Spans [3] | diff --git a/instrumentation/jmx-metrics/javaagent/README.md b/instrumentation/jmx-metrics/javaagent/README.md index 0421e0c6438a..9b121088af16 100644 --- a/instrumentation/jmx-metrics/javaagent/README.md +++ b/instrumentation/jmx-metrics/javaagent/README.md @@ -12,7 +12,7 @@ To control the time interval between MBean detection attempts, one can use the ` ## Predefined metrics -JMX is a popular metrics technology used throughout the JVM (see [runtime metrics](../../runtime-metrics/runtime-metrics-java8/library/README.md)), application servers, third-party libraries, and applications. +JMX is a popular metrics technology used throughout the JVM (see [runtime metrics](../../runtime-metrics/runtime-telemetry-java8/library/README.md)), application servers, third-party libraries, and applications. JMX Metric Insight comes with a number of predefined configurations containing curated sets of JMX metrics for frequently used application servers or frameworks. To enable collection of the predefined metrics, specify a list of targets as the value for the `otel.jmx.target.system` property. For example diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/javaagent/build.gradle.kts b/instrumentation/runtime-telemetry/runtime-telemetry-java17/javaagent/build.gradle.kts similarity index 57% rename from instrumentation/runtime-metrics/runtime-metrics-java17/javaagent/build.gradle.kts rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/javaagent/build.gradle.kts index b7ca422d7896..5b9763cf1e8e 100644 --- a/instrumentation/runtime-metrics/runtime-metrics-java17/javaagent/build.gradle.kts +++ b/instrumentation/runtime-telemetry/runtime-telemetry-java17/javaagent/build.gradle.kts @@ -7,12 +7,12 @@ otelJava { } dependencies { - implementation(project(":instrumentation:runtime-metrics:runtime-metrics-java17:library")) + implementation(project(":instrumentation:runtime-telemetry:runtime-telemetry-java17:library")) compileOnly("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure") } tasks { test { - jvmArgs("-Dotel.instrumentation.runtime-metrics-java17.enabled=true") + jvmArgs("-Dotel.instrumentation.runtime-telemetry-java17.enabled=true") } } diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java17/Java17RuntimeMetricsInstaller.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java17/Java17RuntimeMetricsInstaller.java similarity index 84% rename from instrumentation/runtime-metrics/runtime-metrics-java17/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java17/Java17RuntimeMetricsInstaller.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java17/Java17RuntimeMetricsInstaller.java index 02f028106190..5edbe61f79d1 100644 --- a/instrumentation/runtime-metrics/runtime-metrics-java17/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java17/Java17RuntimeMetricsInstaller.java +++ b/instrumentation/runtime-telemetry/runtime-telemetry-java17/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java17/Java17RuntimeMetricsInstaller.java @@ -25,14 +25,14 @@ public void afterAgent(AutoConfiguredOpenTelemetrySdk autoConfiguredSdk) { RuntimeMetrics runtimeMetrics = null; /* By default don't use any JFR metrics. May change this once semantic conventions are updated. - If enabled, default to only the metrics not already covered by runtime-metrics-java8 + If enabled, default to only the metrics not already covered by runtime-telemetry-java8 */ boolean defaultEnabled = config.getBoolean("otel.instrumentation.common.default-enabled", true); - if (config.getBoolean("otel.instrumentation.runtime-metrics-java17.enable-all", false)) { + if (config.getBoolean("otel.instrumentation.runtime-telemetry-java17.enable-all", false)) { runtimeMetrics = RuntimeMetrics.builder(openTelemetry).enableAllFeatures().build(); - } else if (config.getBoolean("otel.instrumentation.runtime-metrics-java17.enabled", false)) { + } else if (config.getBoolean("otel.instrumentation.runtime-telemetry-java17.enabled", false)) { runtimeMetrics = RuntimeMetrics.create(openTelemetry); - } else if (config.getBoolean("otel.instrumentation.runtime-metrics.enabled", defaultEnabled)) { + } else if (config.getBoolean("otel.instrumentation.runtime-telemetry.enabled", defaultEnabled)) { // This only uses metrics gathered by JMX runtimeMetrics = RuntimeMetrics.builder(openTelemetry).disableAllFeatures().build(); } diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/javaagent/src/test/groovy/JmxRuntimeMetricsTest.groovy b/instrumentation/runtime-telemetry/runtime-telemetry-java17/javaagent/src/test/groovy/JmxRuntimeMetricsTest.groovy similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/javaagent/src/test/groovy/JmxRuntimeMetricsTest.groovy rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/javaagent/src/test/groovy/JmxRuntimeMetricsTest.groovy diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/javaagent/src/test/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java17/JfrRuntimeMetricsTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/javaagent/src/test/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java17/JfrRuntimeMetricsTest.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/javaagent/src/test/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java17/JfrRuntimeMetricsTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/javaagent/src/test/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java17/JfrRuntimeMetricsTest.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/README.md b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/README.md similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/README.md rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/README.md diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/build.gradle.kts b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/build.gradle.kts similarity index 93% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/build.gradle.kts rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/build.gradle.kts index 25f48c13b717..3f3b0b13a763 100644 --- a/instrumentation/runtime-metrics/runtime-metrics-java17/library/build.gradle.kts +++ b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/build.gradle.kts @@ -7,7 +7,7 @@ otelJava { } dependencies { - implementation(project(":instrumentation:runtime-metrics:runtime-metrics-java8:library")) + implementation(project(":instrumentation:runtime-telemetry:runtime-telemetry-java8:library")) testImplementation("io.github.netmikey.logunit:logunit-jul:1.1.3") } diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/HandlerRegistry.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/HandlerRegistry.java similarity index 99% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/HandlerRegistry.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/HandlerRegistry.java index e5dbc8e8937f..f55de1643ded 100644 --- a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/HandlerRegistry.java +++ b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/HandlerRegistry.java @@ -38,7 +38,7 @@ import javax.annotation.Nullable; final class HandlerRegistry { - private static final String SCOPE_NAME = "io.opentelemetry.runtime-metrics-java17"; + private static final String SCOPE_NAME = "io.opentelemetry.runtime-telemetry-java17"; @Nullable private static final String SCOPE_VERSION = diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrFeature.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrFeature.java similarity index 91% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrFeature.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrFeature.java index 6fc754394555..b03db8984714 100644 --- a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrFeature.java +++ b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrFeature.java @@ -9,7 +9,7 @@ * Enumeration of JFR features, which can be toggled on or off via {@link RuntimeMetricsBuilder}. * *

Features are disabled by default if they are already available through {@code - * io.opentelemetry.instrumentation:opentelemetry-runtime-metrics-java8} JMX based instrumentation. + * io.opentelemetry.instrumentation:opentelemetry-runtime-telemetry-java8} JMX based instrumentation. */ public enum JfrFeature { BUFFER_METRICS(/* defaultEnabled= */ false), diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetrics.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetrics.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetrics.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetrics.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetricsBuilder.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetricsBuilder.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetricsBuilder.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetricsBuilder.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/AbstractThreadDispatchingHandler.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/AbstractThreadDispatchingHandler.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/AbstractThreadDispatchingHandler.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/AbstractThreadDispatchingHandler.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/Constants.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/Constants.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/Constants.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/Constants.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/DurationUtil.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/DurationUtil.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/DurationUtil.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/DurationUtil.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/RecordedEventHandler.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/RecordedEventHandler.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/RecordedEventHandler.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/RecordedEventHandler.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/ThreadGrouper.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/ThreadGrouper.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/ThreadGrouper.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/ThreadGrouper.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/buffer/DirectBufferStatisticsHandler.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/buffer/DirectBufferStatisticsHandler.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/buffer/DirectBufferStatisticsHandler.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/buffer/DirectBufferStatisticsHandler.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/classes/ClassesLoadedHandler.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/classes/ClassesLoadedHandler.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/classes/ClassesLoadedHandler.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/classes/ClassesLoadedHandler.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/container/ContainerConfigurationHandler.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/container/ContainerConfigurationHandler.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/container/ContainerConfigurationHandler.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/container/ContainerConfigurationHandler.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/cpu/ContextSwitchRateHandler.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/cpu/ContextSwitchRateHandler.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/cpu/ContextSwitchRateHandler.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/cpu/ContextSwitchRateHandler.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/cpu/LongLockHandler.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/cpu/LongLockHandler.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/cpu/LongLockHandler.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/cpu/LongLockHandler.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/cpu/OverallCpuLoadHandler.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/cpu/OverallCpuLoadHandler.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/cpu/OverallCpuLoadHandler.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/cpu/OverallCpuLoadHandler.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/garbagecollection/G1GarbageCollectionHandler.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/garbagecollection/G1GarbageCollectionHandler.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/garbagecollection/G1GarbageCollectionHandler.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/garbagecollection/G1GarbageCollectionHandler.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/garbagecollection/OldGarbageCollectionHandler.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/garbagecollection/OldGarbageCollectionHandler.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/garbagecollection/OldGarbageCollectionHandler.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/garbagecollection/OldGarbageCollectionHandler.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/garbagecollection/YoungGarbageCollectionHandler.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/garbagecollection/YoungGarbageCollectionHandler.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/garbagecollection/YoungGarbageCollectionHandler.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/garbagecollection/YoungGarbageCollectionHandler.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/CodeCacheConfigurationHandler.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/CodeCacheConfigurationHandler.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/CodeCacheConfigurationHandler.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/CodeCacheConfigurationHandler.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/G1HeapSummaryHandler.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/G1HeapSummaryHandler.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/G1HeapSummaryHandler.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/G1HeapSummaryHandler.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/MetaspaceSummaryHandler.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/MetaspaceSummaryHandler.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/MetaspaceSummaryHandler.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/MetaspaceSummaryHandler.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/ObjectAllocationInNewTlabHandler.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/ObjectAllocationInNewTlabHandler.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/ObjectAllocationInNewTlabHandler.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/ObjectAllocationInNewTlabHandler.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/ObjectAllocationOutsideTlabHandler.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/ObjectAllocationOutsideTlabHandler.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/ObjectAllocationOutsideTlabHandler.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/ObjectAllocationOutsideTlabHandler.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/ParallelHeapSummaryHandler.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/ParallelHeapSummaryHandler.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/ParallelHeapSummaryHandler.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/memory/ParallelHeapSummaryHandler.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/network/NetworkReadHandler.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/network/NetworkReadHandler.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/network/NetworkReadHandler.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/network/NetworkReadHandler.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/network/NetworkWriteHandler.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/network/NetworkWriteHandler.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/network/NetworkWriteHandler.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/network/NetworkWriteHandler.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/threads/ThreadCountHandler.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/threads/ThreadCountHandler.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/threads/ThreadCountHandler.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/internal/threads/ThreadCountHandler.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/BufferMetricTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/BufferMetricTest.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/BufferMetricTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/BufferMetricTest.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/CodeCacheMemoryInitMetricTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/CodeCacheMemoryInitMetricTest.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/CodeCacheMemoryInitMetricTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/CodeCacheMemoryInitMetricTest.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/G1GcMemoryMetricTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/G1GcMemoryMetricTest.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/G1GcMemoryMetricTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/G1GcMemoryMetricTest.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/GenerateDocs.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/GenerateDocs.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/GenerateDocs.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/GenerateDocs.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrClassesLoadedCountTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrClassesLoadedCountTest.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrClassesLoadedCountTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrClassesLoadedCountTest.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrCpuLockTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrCpuLockTest.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrCpuLockTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrCpuLockTest.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrExtension.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrExtension.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrExtension.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrExtension.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrOverallCpuLoadHandlerTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrOverallCpuLoadHandlerTest.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrOverallCpuLoadHandlerTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrOverallCpuLoadHandlerTest.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrThreadCountTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrThreadCountTest.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrThreadCountTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrThreadCountTest.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/MetaspaceMemoryCommittedMetricTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/MetaspaceMemoryCommittedMetricTest.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/MetaspaceMemoryCommittedMetricTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/MetaspaceMemoryCommittedMetricTest.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/MetaspaceMemoryLimitMetricTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/MetaspaceMemoryLimitMetricTest.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/MetaspaceMemoryLimitMetricTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/MetaspaceMemoryLimitMetricTest.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/MetaspaceMemoryUsageMetricTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/MetaspaceMemoryUsageMetricTest.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/MetaspaceMemoryUsageMetricTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/MetaspaceMemoryUsageMetricTest.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/PsGcMemoryMetricTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/PsGcMemoryMetricTest.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/PsGcMemoryMetricTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/PsGcMemoryMetricTest.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetricsBuilderTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetricsBuilderTest.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetricsBuilderTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetricsBuilderTest.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetricsTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetricsTest.java similarity index 97% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetricsTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetricsTest.java index d74f40775d6a..0e41e8a82d6d 100644 --- a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetricsTest.java +++ b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/RuntimeMetricsTest.java @@ -55,7 +55,7 @@ void create_Default() { .allSatisfy( metric -> { assertThat(metric.getInstrumentationScopeInfo().getName()) - .contains("io.opentelemetry.runtime-metrics-java"); + .contains("io.opentelemetry.runtime-telemetry-java"); }); } } diff --git a/instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/SerialGcMemoryMetricTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/SerialGcMemoryMetricTest.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/SerialGcMemoryMetricTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java17/SerialGcMemoryMetricTest.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java8/javaagent/build.gradle.kts b/instrumentation/runtime-telemetry/runtime-telemetry-java8/javaagent/build.gradle.kts similarity index 87% rename from instrumentation/runtime-metrics/runtime-metrics-java8/javaagent/build.gradle.kts rename to instrumentation/runtime-telemetry/runtime-telemetry-java8/javaagent/build.gradle.kts index f024a14c10c8..9e7db6ab6978 100644 --- a/instrumentation/runtime-metrics/runtime-metrics-java8/javaagent/build.gradle.kts +++ b/instrumentation/runtime-telemetry/runtime-telemetry-java8/javaagent/build.gradle.kts @@ -3,7 +3,7 @@ plugins { } dependencies { - implementation(project(":instrumentation:runtime-metrics:runtime-metrics-java8:library")) + implementation(project(":instrumentation:runtime-metrics:runtime-telemetry-java8:library")) compileOnly("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure") } diff --git a/instrumentation/runtime-metrics/runtime-metrics-java8/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java8/Java8RuntimeMetricsInstaller.java b/instrumentation/runtime-telemetry/runtime-telemetry-java8/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java8/Java8RuntimeMetricsInstaller.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java8/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java8/Java8RuntimeMetricsInstaller.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java8/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java8/Java8RuntimeMetricsInstaller.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java8/library/README.md b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/README.md similarity index 97% rename from instrumentation/runtime-metrics/runtime-metrics-java8/library/README.md rename to instrumentation/runtime-telemetry/runtime-telemetry-java8/library/README.md index d87e206c8399..bd710c66ae3f 100644 --- a/instrumentation/runtime-metrics/runtime-metrics-java8/library/README.md +++ b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/README.md @@ -7,7 +7,7 @@ This module provides JVM runtime metrics as documented in the [semantic conventi ### Add these dependencies to your project Replace `OPENTELEMETRY_VERSION` with the [latest -release](https://search.maven.org/search?q=g:io.opentelemetry.instrumentation%20AND%20a:opentelemetry-runtime-metrics-java8). +release](https://search.maven.org/search?q=g:io.opentelemetry.instrumentation%20AND%20a:opentelemetry-runtime-telemetry-java8). For Maven, add to your `pom.xml` dependencies: @@ -15,7 +15,7 @@ For Maven, add to your `pom.xml` dependencies: io.opentelemetry.instrumentation - opentelemetry-runtime-metrics-java8 + opentelemetry-runtime-telemetry-java8 OPENTELEMETRY_VERSION @@ -24,7 +24,7 @@ For Maven, add to your `pom.xml` dependencies: For Gradle, add to your dependencies: ```groovy -runtimeOnly("io.opentelemetry.instrumentation:opentelemetry-runtime-metrics-java8:OPENTELEMETRY_VERSION") +runtimeOnly("io.opentelemetry.instrumentation:opentelemetry-runtime-telemetry-java8:OPENTELEMETRY_VERSION") ``` ### Usage diff --git a/instrumentation/runtime-metrics/runtime-metrics-java8/library/build.gradle.kts b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/build.gradle.kts similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java8/library/build.gradle.kts rename to instrumentation/runtime-telemetry/runtime-telemetry-java8/library/build.gradle.kts diff --git a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/BufferPools.java b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/BufferPools.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/BufferPools.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/BufferPools.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/Classes.java b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/Classes.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/Classes.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/Classes.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/Cpu.java b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/Cpu.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/Cpu.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/Cpu.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/GarbageCollector.java b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/GarbageCollector.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/GarbageCollector.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/GarbageCollector.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/MemoryPools.java b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/MemoryPools.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/MemoryPools.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/MemoryPools.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/Threads.java b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/Threads.java similarity index 100% rename from instrumentation/runtime-metrics/runtime-metrics-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/Threads.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/Threads.java diff --git a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/internal/JmxRuntimeMetricsUtil.java b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/internal/JmxRuntimeMetricsUtil.java similarity index 97% rename from instrumentation/runtime-metrics/runtime-metrics-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/internal/JmxRuntimeMetricsUtil.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/internal/JmxRuntimeMetricsUtil.java index b5fe3e41859a..7dcb0245c1b0 100644 --- a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/internal/JmxRuntimeMetricsUtil.java +++ b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java8/internal/JmxRuntimeMetricsUtil.java @@ -18,7 +18,7 @@ */ public class JmxRuntimeMetricsUtil { - private static final String INSTRUMENTATION_NAME = "io.opentelemetry.runtime-metrics-java8"; + private static final String INSTRUMENTATION_NAME = "io.opentelemetry.runtime-telemetry-java8"; @Nullable private static final String INSTRUMENTATION_VERSION = diff --git a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/BufferPoolsTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/BufferPoolsTest.java similarity index 97% rename from instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/BufferPoolsTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/BufferPoolsTest.java index cc9d89d5203a..060bac1c356b 100644 --- a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/BufferPoolsTest.java +++ b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/BufferPoolsTest.java @@ -55,7 +55,7 @@ void registerObservers() { BufferPools.registerObservers(testing.getOpenTelemetry(), beans); testing.waitAndAssertMetrics( - "io.opentelemetry.runtime-metrics-java8", + "io.opentelemetry.runtime-telemetry-java8", "process.runtime.jvm.buffer.usage", metrics -> metrics.anySatisfy( @@ -75,7 +75,7 @@ void registerObservers() { AttributeKey.stringKey("pool"), "buffer_pool_1"))))); testing.waitAndAssertMetrics( - "io.opentelemetry.runtime-metrics-java8", + "io.opentelemetry.runtime-telemetry-java8", "process.runtime.jvm.buffer.limit", metrics -> metrics.anySatisfy( @@ -94,7 +94,7 @@ void registerObservers() { AttributeKey.stringKey("pool"), "buffer_pool_1"))))); testing.waitAndAssertMetrics( - "io.opentelemetry.runtime-metrics-java8", + "io.opentelemetry.runtime-telemetry-java8", "process.runtime.jvm.buffer.count", metrics -> metrics.anySatisfy( diff --git a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ClassesTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ClassesTest.java similarity index 95% rename from instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ClassesTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ClassesTest.java index accdc46270d5..c95afdb6c73e 100644 --- a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ClassesTest.java +++ b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ClassesTest.java @@ -36,7 +36,7 @@ void registerObservers() { Classes.INSTANCE.registerObservers(testing.getOpenTelemetry(), classBean); testing.waitAndAssertMetrics( - "io.opentelemetry.runtime-metrics-java8", + "io.opentelemetry.runtime-telemetry-java8", "process.runtime.jvm.classes.loaded", metrics -> metrics.anySatisfy( @@ -52,7 +52,7 @@ void registerObservers() { point -> point.hasValue(3).hasAttributes(Attributes.empty()))))); testing.waitAndAssertMetrics( - "io.opentelemetry.runtime-metrics-java8", + "io.opentelemetry.runtime-telemetry-java8", "process.runtime.jvm.classes.unloaded", metrics -> metrics.anySatisfy( @@ -68,7 +68,7 @@ void registerObservers() { point -> point.hasValue(2).hasAttributes(Attributes.empty()))))); testing.waitAndAssertMetrics( - "io.opentelemetry.runtime-metrics-java8", + "io.opentelemetry.runtime-telemetry-java8", "process.runtime.jvm.classes.current_loaded", metrics -> metrics.anySatisfy( diff --git a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/CpuTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/CpuTest.java similarity index 95% rename from instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/CpuTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/CpuTest.java index 6f4c61fb30e9..38f53768c0fb 100644 --- a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/CpuTest.java +++ b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/CpuTest.java @@ -37,7 +37,7 @@ void registerObservers() { testing.getOpenTelemetry(), osBean, systemCpuUsage, processCpuUsage); testing.waitAndAssertMetrics( - "io.opentelemetry.runtime-metrics-java8", + "io.opentelemetry.runtime-telemetry-java8", "process.runtime.jvm.system.cpu.load_1m", metrics -> metrics.anySatisfy( @@ -49,7 +49,7 @@ void registerObservers() { .hasDoubleGaugeSatisfying( gauge -> gauge.hasPointsSatisfying(point -> point.hasValue(2.2))))); testing.waitAndAssertMetrics( - "io.opentelemetry.runtime-metrics-java8", + "io.opentelemetry.runtime-telemetry-java8", "process.runtime.jvm.system.cpu.utilization", metrics -> metrics.anySatisfy( @@ -61,7 +61,7 @@ void registerObservers() { .hasDoubleGaugeSatisfying( gauge -> gauge.hasPointsSatisfying(point -> point.hasValue(0.11))))); testing.waitAndAssertMetrics( - "io.opentelemetry.runtime-metrics-java8", + "io.opentelemetry.runtime-telemetry-java8", "process.runtime.jvm.cpu.utilization", metrics -> metrics.anySatisfy( diff --git a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/GarbageCollectorTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/GarbageCollectorTest.java similarity index 99% rename from instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/GarbageCollectorTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/GarbageCollectorTest.java index fe99f330f804..aa74f48d3214 100644 --- a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/GarbageCollectorTest.java +++ b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/GarbageCollectorTest.java @@ -64,7 +64,7 @@ void registerObservers() { createTestNotification("G1 Old Generation", "end of major GC", 11), null); testing.waitAndAssertMetrics( - "io.opentelemetry.runtime-metrics-java8", + "io.opentelemetry.runtime-telemetry-java8", "process.runtime.jvm.gc.duration", metrics -> metrics.anySatisfy( diff --git a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/MemoryPoolsTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/MemoryPoolsTest.java similarity index 97% rename from instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/MemoryPoolsTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/MemoryPoolsTest.java index a4580f2884ab..2286d62163fa 100644 --- a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/MemoryPoolsTest.java +++ b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/MemoryPoolsTest.java @@ -83,7 +83,7 @@ void registerObservers() { MemoryPools.registerObservers(testing.getOpenTelemetry(), beans); testing.waitAndAssertMetrics( - "io.opentelemetry.runtime-metrics-java8", + "io.opentelemetry.runtime-telemetry-java8", "process.runtime.jvm.memory.init", metrics -> metrics.anySatisfy( @@ -109,7 +109,7 @@ void registerObservers() { .hasAttribute( AttributeKey.stringKey("type"), "non_heap"))))); testing.waitAndAssertMetrics( - "io.opentelemetry.runtime-metrics-java8", + "io.opentelemetry.runtime-telemetry-java8", "process.runtime.jvm.memory.usage", metrics -> metrics.anySatisfy( @@ -135,7 +135,7 @@ void registerObservers() { .hasAttribute( AttributeKey.stringKey("type"), "non_heap"))))); testing.waitAndAssertMetrics( - "io.opentelemetry.runtime-metrics-java8", + "io.opentelemetry.runtime-telemetry-java8", "process.runtime.jvm.memory.committed", metrics -> metrics.anySatisfy( @@ -161,7 +161,7 @@ void registerObservers() { .hasAttribute( AttributeKey.stringKey("type"), "non_heap"))))); testing.waitAndAssertMetrics( - "io.opentelemetry.runtime-metrics-java8", + "io.opentelemetry.runtime-telemetry-java8", "process.runtime.jvm.memory.limit", metrics -> metrics.anySatisfy( @@ -187,7 +187,7 @@ void registerObservers() { .hasAttribute( AttributeKey.stringKey("type"), "non_heap"))))); testing.waitAndAssertMetrics( - "io.opentelemetry.runtime-metrics-java8", + "io.opentelemetry.runtime-telemetry-java8", "process.runtime.jvm.memory.usage_after_last_gc", metrics -> metrics.anySatisfy( diff --git a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ScopeUtil.java b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ScopeUtil.java similarity index 96% rename from instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ScopeUtil.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ScopeUtil.java index 979f487393a2..d865e067df5a 100644 --- a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ScopeUtil.java +++ b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ScopeUtil.java @@ -11,7 +11,7 @@ import javax.annotation.Nullable; class ScopeUtil { - private static final String INSTRUMENTATION_NAME = "io.opentelemetry.runtime-metrics-java8"; + private static final String INSTRUMENTATION_NAME = "io.opentelemetry.runtime-telemetry-java8"; @Nullable private static final String INSTRUMENTATION_VERSION = diff --git a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ThreadsTest.java b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ThreadsTest.java similarity index 98% rename from instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ThreadsTest.java rename to instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ThreadsTest.java index da2c70d13710..d8e4f3953422 100644 --- a/instrumentation/runtime-metrics/runtime-metrics-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ThreadsTest.java +++ b/instrumentation/runtime-telemetry/runtime-telemetry-java8/library/src/test/java/io/opentelemetry/instrumentation/runtimemetrics/java8/ThreadsTest.java @@ -36,7 +36,7 @@ void registerObservers() { Threads.INSTANCE.registerObservers(testing.getOpenTelemetry(), threadBean); testing.waitAndAssertMetrics( - "io.opentelemetry.runtime-metrics-java8", + "io.opentelemetry.runtime-telemetry-java8", "process.runtime.jvm.threads.count", metrics -> metrics.anySatisfy( diff --git a/settings.gradle.kts b/settings.gradle.kts index a5d4a27b2b9e..271562c77c53 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -443,10 +443,10 @@ hideFromDependabot(":instrumentation:rocketmq:rocketmq-client:rocketmq-client-4. hideFromDependabot(":instrumentation:rocketmq:rocketmq-client:rocketmq-client-4.8:testing") hideFromDependabot(":instrumentation:rocketmq:rocketmq-client:rocketmq-client-5.0:javaagent") hideFromDependabot(":instrumentation:rocketmq:rocketmq-client:rocketmq-client-5.0:testing") -hideFromDependabot(":instrumentation:runtime-metrics:runtime-metrics-java8:javaagent") -hideFromDependabot(":instrumentation:runtime-metrics:runtime-metrics-java8:library") -hideFromDependabot(":instrumentation:runtime-metrics:runtime-metrics-java17:javaagent") -hideFromDependabot(":instrumentation:runtime-metrics:runtime-metrics-java17:library") +hideFromDependabot(":instrumentation:runtime-metrics:runtime-telemetry-java8:javaagent") +hideFromDependabot(":instrumentation:runtime-metrics:runtime-telemetry-java8:library") +hideFromDependabot(":instrumentation:runtime-metrics:runtime-telemetry-java17:javaagent") +hideFromDependabot(":instrumentation:runtime-metrics:runtime-telemetry-java17:library") hideFromDependabot(":instrumentation:rxjava:rxjava-1.0:library") hideFromDependabot(":instrumentation:rxjava:rxjava-2.0:library") hideFromDependabot(":instrumentation:rxjava:rxjava-2.0:testing") From 83388506eae1edbd360d925bc46685a33e5d52a5 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Tue, 13 Jun 2023 16:37:28 -0700 Subject: [PATCH 2/3] More --- docs/supported-libraries.md | 2 +- instrumentation/jmx-metrics/javaagent/README.md | 2 +- .../runtime-telemetry-java8/javaagent/build.gradle.kts | 2 +- .../java8/Java8RuntimeMetricsInstaller.java | 2 +- settings.gradle.kts | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/supported-libraries.md b/docs/supported-libraries.md index 483051da5e0d..8a1bd07ba5f9 100644 --- a/docs/supported-libraries.md +++ b/docs/supported-libraries.md @@ -70,7 +70,7 @@ These are the supported libraries and frameworks: | [Java Executors](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/Executor.html) | Java 8+ | N/A | Context propagation | | [Java Http Client](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/package-summary.html) | Java 11+ | [opentelemetry-java-http-client](../instrumentation/java-http-client/library) | [HTTP Client Spans], [HTTP Client Metrics] | | [java.util.logging](https://docs.oracle.com/javase/8/docs/api/java/util/logging/package-summary.html) | Java 8+ | N/A | none | -| [Java Platform](https://docs.oracle.com/javase/8/docs/api/java/lang/management/ManagementFactory.html) | Java 8+ | [opentelemetry-runtime-telemetry-java8](../instrumentation/runtime-metrics/runtime-telemetry-java8/library),[opentelemetry-runtime-telemetry-java17](../instrumentation/runtime-metrics/runtime-telemetry-java17/library),
[opentelemetry-resources](../instrumentation/resources/library) | [JVM Runtime Metrics] | +| [Java Platform](https://docs.oracle.com/javase/8/docs/api/java/lang/management/ManagementFactory.html) | Java 8+ | [opentelemetry-runtime-telemetry-java8](../instrumentation/runtime-telemetry/runtime-telemetry-java8/library),[opentelemetry-runtime-telemetry-java17](../instrumentation/runtime-telemetry/runtime-telemetry-java17/library),
[opentelemetry-resources](../instrumentation/resources/library) | [JVM Runtime Metrics] | | [JAX-RS](https://javaee.github.io/javaee-spec/javadocs/javax/ws/rs/package-summary.html) | 0.5+ | N/A | Provides `http.route` [2], Controller Spans [3] | | [JAX-RS Client](https://javaee.github.io/javaee-spec/javadocs/javax/ws/rs/client/package-summary.html) | 1.1+ | N/A | [HTTP Client Spans], [HTTP Client Metrics] | | [JAX-WS](https://jakarta.ee/specifications/xml-web-services/2.3/apidocs/javax/xml/ws/package-summary.html) | 2.0+ (not including 3.x yet) | N/A | Provides `http.route` [2], Controller Spans [3] | diff --git a/instrumentation/jmx-metrics/javaagent/README.md b/instrumentation/jmx-metrics/javaagent/README.md index 9b121088af16..8680e878814e 100644 --- a/instrumentation/jmx-metrics/javaagent/README.md +++ b/instrumentation/jmx-metrics/javaagent/README.md @@ -12,7 +12,7 @@ To control the time interval between MBean detection attempts, one can use the ` ## Predefined metrics -JMX is a popular metrics technology used throughout the JVM (see [runtime metrics](../../runtime-metrics/runtime-telemetry-java8/library/README.md)), application servers, third-party libraries, and applications. +JMX is a popular metrics technology used throughout the JVM (see [runtime metrics](../../runtime-telemetry/runtime-telemetry-java8/library/README.md)), application servers, third-party libraries, and applications. JMX Metric Insight comes with a number of predefined configurations containing curated sets of JMX metrics for frequently used application servers or frameworks. To enable collection of the predefined metrics, specify a list of targets as the value for the `otel.jmx.target.system` property. For example diff --git a/instrumentation/runtime-telemetry/runtime-telemetry-java8/javaagent/build.gradle.kts b/instrumentation/runtime-telemetry/runtime-telemetry-java8/javaagent/build.gradle.kts index 9e7db6ab6978..67c18d98913b 100644 --- a/instrumentation/runtime-telemetry/runtime-telemetry-java8/javaagent/build.gradle.kts +++ b/instrumentation/runtime-telemetry/runtime-telemetry-java8/javaagent/build.gradle.kts @@ -3,7 +3,7 @@ plugins { } dependencies { - implementation(project(":instrumentation:runtime-metrics:runtime-telemetry-java8:library")) + implementation(project(":instrumentation:runtime-telemetry:runtime-telemetry-java8:library")) compileOnly("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure") } diff --git a/instrumentation/runtime-telemetry/runtime-telemetry-java8/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java8/Java8RuntimeMetricsInstaller.java b/instrumentation/runtime-telemetry/runtime-telemetry-java8/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java8/Java8RuntimeMetricsInstaller.java index 9a5434a09ba6..922db7312eaf 100644 --- a/instrumentation/runtime-telemetry/runtime-telemetry-java8/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java8/Java8RuntimeMetricsInstaller.java +++ b/instrumentation/runtime-telemetry/runtime-telemetry-java8/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java8/Java8RuntimeMetricsInstaller.java @@ -30,7 +30,7 @@ public void afterAgent(AutoConfiguredOpenTelemetrySdk autoConfiguredSdk) { ConfigProperties config = autoConfiguredSdk.getConfig(); boolean defaultEnabled = config.getBoolean("otel.instrumentation.common.default-enabled", true); - if (!config.getBoolean("otel.instrumentation.runtime-metrics.enabled", defaultEnabled) + if (!config.getBoolean("otel.instrumentation.runtime-telemetry.enabled", defaultEnabled) || Double.parseDouble(System.getProperty("java.specification.version")) >= 17) { return; } diff --git a/settings.gradle.kts b/settings.gradle.kts index 271562c77c53..94b8d44bf191 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -443,10 +443,10 @@ hideFromDependabot(":instrumentation:rocketmq:rocketmq-client:rocketmq-client-4. hideFromDependabot(":instrumentation:rocketmq:rocketmq-client:rocketmq-client-4.8:testing") hideFromDependabot(":instrumentation:rocketmq:rocketmq-client:rocketmq-client-5.0:javaagent") hideFromDependabot(":instrumentation:rocketmq:rocketmq-client:rocketmq-client-5.0:testing") -hideFromDependabot(":instrumentation:runtime-metrics:runtime-telemetry-java8:javaagent") -hideFromDependabot(":instrumentation:runtime-metrics:runtime-telemetry-java8:library") -hideFromDependabot(":instrumentation:runtime-metrics:runtime-telemetry-java17:javaagent") -hideFromDependabot(":instrumentation:runtime-metrics:runtime-telemetry-java17:library") +hideFromDependabot(":instrumentation:runtime-telemetry:runtime-telemetry-java8:javaagent") +hideFromDependabot(":instrumentation:runtime-telemetry:runtime-telemetry-java8:library") +hideFromDependabot(":instrumentation:runtime-telemetry:runtime-telemetry-java17:javaagent") +hideFromDependabot(":instrumentation:runtime-telemetry:runtime-telemetry-java17:library") hideFromDependabot(":instrumentation:rxjava:rxjava-1.0:library") hideFromDependabot(":instrumentation:rxjava:rxjava-2.0:library") hideFromDependabot(":instrumentation:rxjava:rxjava-2.0:testing") From df0f877ed1b826d59922bab3d46073548c7714f3 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Tue, 13 Jun 2023 17:12:16 -0700 Subject: [PATCH 3/3] Spotless --- .../runtimemetrics/java17/Java17RuntimeMetricsInstaller.java | 3 ++- .../instrumentation/runtimemetrics/java17/JfrFeature.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/instrumentation/runtime-telemetry/runtime-telemetry-java17/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java17/Java17RuntimeMetricsInstaller.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java17/Java17RuntimeMetricsInstaller.java index 5edbe61f79d1..d54350d1102a 100644 --- a/instrumentation/runtime-telemetry/runtime-telemetry-java17/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java17/Java17RuntimeMetricsInstaller.java +++ b/instrumentation/runtime-telemetry/runtime-telemetry-java17/javaagent/src/main/java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/java17/Java17RuntimeMetricsInstaller.java @@ -32,7 +32,8 @@ public void afterAgent(AutoConfiguredOpenTelemetrySdk autoConfiguredSdk) { runtimeMetrics = RuntimeMetrics.builder(openTelemetry).enableAllFeatures().build(); } else if (config.getBoolean("otel.instrumentation.runtime-telemetry-java17.enabled", false)) { runtimeMetrics = RuntimeMetrics.create(openTelemetry); - } else if (config.getBoolean("otel.instrumentation.runtime-telemetry.enabled", defaultEnabled)) { + } else if (config.getBoolean( + "otel.instrumentation.runtime-telemetry.enabled", defaultEnabled)) { // This only uses metrics gathered by JMX runtimeMetrics = RuntimeMetrics.builder(openTelemetry).disableAllFeatures().build(); } diff --git a/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrFeature.java b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrFeature.java index b03db8984714..aacaaf8fa654 100644 --- a/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrFeature.java +++ b/instrumentation/runtime-telemetry/runtime-telemetry-java17/library/src/main/java/io/opentelemetry/instrumentation/runtimemetrics/java17/JfrFeature.java @@ -9,7 +9,8 @@ * Enumeration of JFR features, which can be toggled on or off via {@link RuntimeMetricsBuilder}. * *

Features are disabled by default if they are already available through {@code - * io.opentelemetry.instrumentation:opentelemetry-runtime-telemetry-java8} JMX based instrumentation. + * io.opentelemetry.instrumentation:opentelemetry-runtime-telemetry-java8} JMX based + * instrumentation. */ public enum JfrFeature { BUFFER_METRICS(/* defaultEnabled= */ false),