Skip to content

Commit

Permalink
Merge pull request #28767 from quaff
Browse files Browse the repository at this point in the history
* pr/28767:
  LettuceMetricsAutoConfiguration should not build ClientResources

Closes gh-28767
  • Loading branch information
snicoll committed Nov 22, 2021
2 parents 490ec89 + da2dfbe commit cdc2851
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -36,6 +36,7 @@
* Auto-configuration for Lettuce metrics.
*
* @author Antonin Arquey
* @author Yanming Zhou
* @since 2.6.0
*/
@Configuration(proxyBeanMethods = false)
Expand All @@ -48,8 +49,7 @@ public class LettuceMetricsAutoConfiguration {
@Bean
public ClientResourcesBuilderCustomizer lettuceMetrics(MeterRegistry meterRegistry) {
MicrometerOptions options = MicrometerOptions.builder().histogram(true).build();
return (client) -> client.commandLatencyRecorder(new MicrometerCommandLatencyRecorder(meterRegistry, options))
.build();
return (client) -> client.commandLatencyRecorder(new MicrometerCommandLatencyRecorder(meterRegistry, options));
}

}

0 comments on commit cdc2851

Please sign in to comment.