Skip to content

Commit

Permalink
Fix RabbitListenerObservation for docs generation compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
artembilan committed Dec 12, 2024
1 parent 9324927 commit b6e7235
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -47,9 +45,7 @@ public Class<? extends ObservationConvention<? extends Context>> getDefaultConve

@Override
public KeyName[] getLowCardinalityKeyNames() {
return Arrays.stream(ListenerLowCardinalityTags.values())
.filter((key) -> !ListenerLowCardinalityTags.DELIVERY_TAG.equals(key))
.toArray(KeyName[]::new);
return ListenerLowCardinalityTags.values();
}

@Override
Expand Down

0 comments on commit b6e7235

Please sign in to comment.