use of com.navercorp.pinpoint.profiler.context.thrift.MetadataMessageConverter in project pinpoint by naver.
the class NioUdpDataSenderTest method newNioUdpDataSender.
private NioUDPDataSender<MetaDataType> newNioUdpDataSender() {
TransactionIdEncoder encoder = new DefaultTransactionIdEncoder("agentId", 0);
// SpanProcessor<TSpan, TSpanChunk> spanPostProcessor = new SpanProcessorV1();
// MessageConverter<SpanType, TBase<?, ?>> messageConverter = new SpanThriftMessageConverter("appName", "agentId",
// 0, ServiceType.STAND_ALONE.getCode(), encoder, spanPostProcessor);
MessageConverter<MetaDataType, TBase<?, ?>> messageConverter = new MetadataMessageConverter("appName", "agentId", 0);
return new NioUDPDataSender<>("localhost", PORT, "test", 128, 1000, 1024 * 64 * 100, messageConverter);
}
Aggregations