@Configuration @EnableConfigurationProperties(value=AnalyticsConsumerProperties.class) public class AnalyticsConsumerConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
UNAVAILABLE_TAG
Default tag value.
|
Constructor and Description |
---|
AnalyticsConsumerConfiguration() |
Modifier and Type | Method and Description |
---|---|
Consumer<org.springframework.messaging.Message<?>> |
analyticsConsumer(AnalyticsConsumerProperties properties,
io.micrometer.core.instrument.MeterRegistry[] meterRegistries,
org.springframework.expression.EvaluationContext context) |
io.micrometer.core.instrument.simple.SimpleMeterRegistry |
simpleMeterRegistry() |
protected List<String> |
toList(Object value)
Converts the input value into an list of values.
|
protected io.micrometer.core.instrument.Tags |
toTags(Map<String,String> keyValueMap)
Converts a key/value Map into Tag(key,value) list.
|
public static final String UNAVAILABLE_TAG
@Bean(name="analyticsConsumer") public Consumer<org.springframework.messaging.Message<?>> analyticsConsumer(AnalyticsConsumerProperties properties, io.micrometer.core.instrument.MeterRegistry[] meterRegistries, @Lazy @Qualifier(value="integrationEvaluationContext") org.springframework.expression.EvaluationContext context)
protected io.micrometer.core.instrument.Tags toTags(Map<String,String> keyValueMap)
keyValueMap
- key/value map to convert into tags.protected List<String> toList(Object value)
value
- input value can be array, collection or single value.@Bean @ConditionalOnMissingBean public io.micrometer.core.instrument.simple.SimpleMeterRegistry simpleMeterRegistry()
Copyright © 2022. All rights reserved.