Search in sources :

Example 1 with HandlerMetrics

use of io.datarouter.web.handler.HandlerMetrics in project datarouter by hotpads.

the class TraceFilter method init.

@Override
public void init(FilterConfig filterConfig) {
    DatarouterInjector injector = getInjector(filterConfig.getServletContext());
    serverName = injector.getInstance(ServerName.class);
    trace2BufferForLocal = injector.getInstance(Trace2ForLocalFilterToMemoryBuffer.class);
    trace2BufferForPublisher = injector.getInstance(Trace2ForPublisherFilterToMemoryBuffer.class);
    traceSettings = injector.getInstance(DatarouterTraceFilterSettingRoot.class);
    urlBuilder = injector.getInstance(TraceUrlBuilder.class);
    currentSessionInfo = injector.getInstance(CurrentSessionInfo.class);
    handlerMetrics = injector.getInstance(HandlerMetrics.class);
    serviceName = injector.getInstance(ServiceName.class);
}
Also used : Trace2ForLocalFilterToMemoryBuffer(io.datarouter.trace.conveyor.local.Trace2ForLocalFilterToMemoryBuffer) DatarouterInjector(io.datarouter.inject.DatarouterInjector) ServiceName(io.datarouter.web.config.service.ServiceName) ServerName(io.datarouter.storage.config.properties.ServerName) HandlerMetrics(io.datarouter.web.handler.HandlerMetrics) Trace2ForPublisherFilterToMemoryBuffer(io.datarouter.trace.conveyor.publisher.Trace2ForPublisherFilterToMemoryBuffer) DatarouterTraceFilterSettingRoot(io.datarouter.trace.settings.DatarouterTraceFilterSettingRoot) TraceUrlBuilder(io.datarouter.trace.service.TraceUrlBuilder) CurrentSessionInfo(io.datarouter.web.user.session.CurrentSessionInfo)

Aggregations

DatarouterInjector (io.datarouter.inject.DatarouterInjector)1 ServerName (io.datarouter.storage.config.properties.ServerName)1 Trace2ForLocalFilterToMemoryBuffer (io.datarouter.trace.conveyor.local.Trace2ForLocalFilterToMemoryBuffer)1 Trace2ForPublisherFilterToMemoryBuffer (io.datarouter.trace.conveyor.publisher.Trace2ForPublisherFilterToMemoryBuffer)1 TraceUrlBuilder (io.datarouter.trace.service.TraceUrlBuilder)1 DatarouterTraceFilterSettingRoot (io.datarouter.trace.settings.DatarouterTraceFilterSettingRoot)1 ServiceName (io.datarouter.web.config.service.ServiceName)1 HandlerMetrics (io.datarouter.web.handler.HandlerMetrics)1 CurrentSessionInfo (io.datarouter.web.user.session.CurrentSessionInfo)1