Closed wxiaoqi closed 7 years ago
spring boot example could not find class “io.katharsis.validation.ValidationModule” and “io.katharsis.brave.BraveModule”。
@Configuration public class ModuleConfig { @Autowired private EntityManager em; @Autowired private TransactionRunner transactionRunner; /** * Basic monitoring setup with Brave * @return module */ @Bean public BraveModule braveModule() { String serviceName = "exampleApp"; Endpoint localEndpoint = Endpoint.builder().serviceName(serviceName).build(); InheritableServerClientAndLocalSpanState spanState = new InheritableServerClientAndLocalSpanState(localEndpoint); Brave.Builder builder = new Brave.Builder(spanState); builder = builder.reporter(new LoggingReporter()); Brave brave = builder.build(); return BraveModule.newServerModule(brave); } }
This may be due to the fact that the latest version of the artifacts that is available on mavencentral is 3.0.2, not 3.0.4-SNAPSHOT as is used in the example code.
spring boot example could not find class “io.katharsis.validation.ValidationModule” and “io.katharsis.brave.BraveModule”。