use of com.wavefront.agent.listeners.tracing.ZipkinPortUnificationHandler in project java by wavefrontHQ.
the class PushAgent method startTraceZipkinListener.
protected void startTraceZipkinListener(String strPort, ReportableEntityHandlerFactory handlerFactory, @Nullable WavefrontSender wfSender, SpanSampler sampler) {
final int port = Integer.parseInt(strPort);
if (proxyConfig.isHttpHealthCheckAllPorts())
healthCheckManager.enableHealthcheck(port);
ChannelHandler channelHandler = new ZipkinPortUnificationHandler(strPort, healthCheckManager, handlerFactory, wfSender, () -> entityProps.get(ReportableEntityType.TRACE).isFeatureDisabled(), () -> entityProps.get(ReportableEntityType.TRACE_SPAN_LOGS).isFeatureDisabled(), preprocessors.get(strPort), sampler, proxyConfig.getTraceZipkinApplicationName(), proxyConfig.getTraceDerivedCustomTagKeys());
startAsManagedThread(port, new TcpIngester(createInitializer(channelHandler, port, proxyConfig.getTraceListenerMaxReceivedLength(), proxyConfig.getTraceListenerHttpBufferSize(), proxyConfig.getListenerIdleConnectionTimeout(), getSslContext(strPort), getCorsConfig(strPort)), port).withChildChannelOptions(childChannelOptions), "listener-zipkin-trace-" + port);
logger.info("listening on port: " + strPort + " for trace data (Zipkin format)");
}
Aggregations