Loading vessels-commands/src/main/java/es/redmic/vesselscommands/VesselsCommandsApplication.java +11 −0 Original line number Diff line number Diff line package es.redmic.vesselscommands; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.SpringApplication; import org.springframework.boot.actuate.autoconfigure.metrics.MeterRegistryCustomizer; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.MessageSource; import org.springframework.context.annotation.Bean; Loading @@ -11,12 +13,16 @@ import com.fasterxml.jackson.databind.Module; import es.redmic.commandslib.config.GenerateJsonSchemaScanBean; import es.redmic.restlib.config.ResourceBundleMessageSource; import io.micrometer.core.instrument.MeterRegistry; @SpringBootApplication @ComponentScan({ "es.redmic.vesselscommands", "es.redmic.restlib", "es.redmic.commandslib", "es.redmic.brokerlib.alert" }) public class VesselsCommandsApplication { @Value("${info.microservice.name}") String microserviceName; public static void main(String[] args) { SpringApplication.run(VesselsCommandsApplication.class, args); } Loading @@ -36,4 +42,9 @@ public class VesselsCommandsApplication { public Module jtsModule() { return new JtsModule(); } @Bean MeterRegistryCustomizer<MeterRegistry> metricsCommonTags() { return registry -> registry.config().commonTags("application", microserviceName); } } No newline at end of file Loading
vessels-commands/src/main/java/es/redmic/vesselscommands/VesselsCommandsApplication.java +11 −0 Original line number Diff line number Diff line package es.redmic.vesselscommands; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.SpringApplication; import org.springframework.boot.actuate.autoconfigure.metrics.MeterRegistryCustomizer; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.MessageSource; import org.springframework.context.annotation.Bean; Loading @@ -11,12 +13,16 @@ import com.fasterxml.jackson.databind.Module; import es.redmic.commandslib.config.GenerateJsonSchemaScanBean; import es.redmic.restlib.config.ResourceBundleMessageSource; import io.micrometer.core.instrument.MeterRegistry; @SpringBootApplication @ComponentScan({ "es.redmic.vesselscommands", "es.redmic.restlib", "es.redmic.commandslib", "es.redmic.brokerlib.alert" }) public class VesselsCommandsApplication { @Value("${info.microservice.name}") String microserviceName; public static void main(String[] args) { SpringApplication.run(VesselsCommandsApplication.class, args); } Loading @@ -36,4 +42,9 @@ public class VesselsCommandsApplication { public Module jtsModule() { return new JtsModule(); } @Bean MeterRegistryCustomizer<MeterRegistry> metricsCommonTags() { return registry -> registry.config().commonTags("application", microserviceName); } } No newline at end of file