From b6e7235e6e4e100ded89157b7217844143add7c6 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Thu, 12 Dec 2024 12:18:27 -0500 Subject: [PATCH] Fix `RabbitListenerObservation` for docs generation compatibility --- .../support/micrometer/RabbitListenerObservation.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/micrometer/RabbitListenerObservation.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/micrometer/RabbitListenerObservation.java index 47efa0be3..19e75baf0 100644 --- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/micrometer/RabbitListenerObservation.java +++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support/micrometer/RabbitListenerObservation.java @@ -16,8 +16,6 @@ package org.springframework.amqp.rabbit.support.micrometer; -import java.util.Arrays; - import io.micrometer.common.KeyValues; import io.micrometer.common.docs.KeyName; import io.micrometer.observation.Observation.Context; @@ -47,9 +45,7 @@ public Class> getDefaultConve @Override public KeyName[] getLowCardinalityKeyNames() { - return Arrays.stream(ListenerLowCardinalityTags.values()) - .filter((key) -> !ListenerLowCardinalityTags.DELIVERY_TAG.equals(key)) - .toArray(KeyName[]::new); + return ListenerLowCardinalityTags.values(); } @Override