Search in sources :

Example 1 with TracePortUnificationHandler

use of com.wavefront.agent.listeners.tracing.TracePortUnificationHandler in project java by wavefrontHQ.

the class PushAgent method startTraceListener.

protected void startTraceListener(final String strPort, ReportableEntityHandlerFactory handlerFactory, SpanSampler sampler) {
    final int port = Integer.parseInt(strPort);
    registerPrefixFilter(strPort);
    registerTimestampFilter(strPort);
    if (proxyConfig.isHttpHealthCheckAllPorts())
        healthCheckManager.enableHealthcheck(port);
    ChannelHandler channelHandler = new TracePortUnificationHandler(strPort, tokenAuthenticator, healthCheckManager, new SpanDecoder("unknown"), new SpanLogsDecoder(), preprocessors.get(strPort), handlerFactory, sampler, () -> entityProps.get(ReportableEntityType.TRACE).isFeatureDisabled(), () -> entityProps.get(ReportableEntityType.TRACE_SPAN_LOGS).isFeatureDisabled());
    startAsManagedThread(port, new TcpIngester(createInitializer(channelHandler, port, proxyConfig.getTraceListenerMaxReceivedLength(), proxyConfig.getTraceListenerHttpBufferSize(), proxyConfig.getListenerIdleConnectionTimeout(), getSslContext(strPort), getCorsConfig(strPort)), port).withChildChannelOptions(childChannelOptions), "listener-plaintext-trace-" + port);
    logger.info("listening on port: " + strPort + " for trace data");
}
Also used : SpanLogsDecoder(com.wavefront.ingester.SpanLogsDecoder) TracePortUnificationHandler(com.wavefront.agent.listeners.tracing.TracePortUnificationHandler) SpanDecoder(com.wavefront.ingester.SpanDecoder) ChannelHandler(io.netty.channel.ChannelHandler) ReportPoint(wavefront.report.ReportPoint) TcpIngester(com.wavefront.ingester.TcpIngester)

Aggregations

TracePortUnificationHandler (com.wavefront.agent.listeners.tracing.TracePortUnificationHandler)1 SpanDecoder (com.wavefront.ingester.SpanDecoder)1 SpanLogsDecoder (com.wavefront.ingester.SpanLogsDecoder)1 TcpIngester (com.wavefront.ingester.TcpIngester)1 ChannelHandler (io.netty.channel.ChannelHandler)1 ReportPoint (wavefront.report.ReportPoint)1