use of com.netflix.zuul.plugins.Tracer in project zuul by Netflix.
the class StartServer method initPlugins.
private void initPlugins() {
LOG.info("Registering Servo Monitor");
MonitorRegistry.getInstance().setPublisher(new ServoMonitor());
LOG.info("Starting Poller");
MetricPoller.startPoller();
LOG.info("Registering Servo Tracer");
TracerFactory.initialize(new Tracer());
LOG.info("Registering Servo Counter");
CounterFactory.initialize(new Counter());
LOG.info("Starting CPU stats");
final ThreadCpuStats stats = ThreadCpuStats.getInstance();
stats.start();
}
use of com.netflix.zuul.plugins.Tracer in project zuul by Netflix.
the class StartServer method initZuul.
void initZuul() throws Exception, IllegalAccessException, InstantiationException {
RequestContext.setContextClass(NFRequestContext.class);
CounterFactory.initialize(new Counter());
TracerFactory.initialize(new Tracer());
LOG.info("Starting Groovy Filter file manager");
final AbstractConfiguration config = ConfigurationManager.getConfigInstance();
final String preFiltersPath = config.getString(ZUUL_FILTER_PRE_PATH);
final String postFiltersPath = config.getString(ZUUL_FILTER_POST_PATH);
final String routingFiltersPath = config.getString(ZUUL_FILTER_ROUTING_PATH);
final String customPath = config.getString(ZUUL_FILTER_CUSTOM_PATH);
FilterLoader.getInstance().setCompiler(new GroovyCompiler());
FilterFileManager.setFilenameFilter(new GroovyFileFilter());
if (customPath == null) {
FilterFileManager.init(5, preFiltersPath, postFiltersPath, routingFiltersPath);
} else {
FilterFileManager.init(5, preFiltersPath, postFiltersPath, routingFiltersPath, customPath);
}
LOG.info("Groovy Filter file manager started");
}
Aggregations