From fe1357316c9bbe208bf91e19b5f3ac5741b6fb83 Mon Sep 17 00:00:00 2001 From: Jonatan Ivanov Date: Wed, 4 Dec 2024 13:03:20 -0800 Subject: [PATCH] Deprecate AggregationTemporality#toOtlpAggregationTemporality (#5733) It was not intended to be public, users should not use it. --- .../io/micrometer/registry/otlp/AggregationTemporality.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/implementations/micrometer-registry-otlp/src/main/java/io/micrometer/registry/otlp/AggregationTemporality.java b/implementations/micrometer-registry-otlp/src/main/java/io/micrometer/registry/otlp/AggregationTemporality.java index ed597f96b9..7bda081a2b 100644 --- a/implementations/micrometer-registry-otlp/src/main/java/io/micrometer/registry/otlp/AggregationTemporality.java +++ b/implementations/micrometer-registry-otlp/src/main/java/io/micrometer/registry/otlp/AggregationTemporality.java @@ -36,6 +36,10 @@ public enum AggregationTemporality { */ CUMULATIVE; + /** + * @deprecated This method was not intended to be public, users should not use it. + */ + @Deprecated public static io.opentelemetry.proto.metrics.v1.AggregationTemporality toOtlpAggregationTemporality( AggregationTemporality aggregationTemporality) { switch (aggregationTemporality) {