use of com.smoketurner.dropwizard.zipkin.ZipkinFactory in project ARLAS-server by gisaia.
the class ArlasServer method initialize.
@Override
public void initialize(Bootstrap<ArlasServerConfiguration> bootstrap) {
bootstrap.registerMetrics();
bootstrap.getObjectMapper().enable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
bootstrap.setConfigurationSourceProvider(new SubstitutingSourceProvider(bootstrap.getConfigurationSourceProvider(), new EnvironmentVariableSubstitutor(false)));
bootstrap.addBundle(new SwaggerBundle<ArlasServerConfiguration>() {
@Override
protected SwaggerBundleConfiguration getSwaggerBundleConfiguration(ArlasServerConfiguration configuration) {
return configuration.swaggerBundleConfiguration;
}
});
bootstrap.addBundle(new ZipkinBundle<ArlasServerConfiguration>(getName()) {
@Override
public ZipkinFactory getZipkinFactory(ArlasServerConfiguration configuration) {
return configuration.zipkinConfiguration;
}
});
bootstrap.addBundle(new AssetsBundle("/assets/", "/", "index.html"));
bootstrap.addBundle(new JdbiExceptionsBundle());
}
Aggregations