Search in sources :

Example 1 with TransactionIdEncoder

use of com.navercorp.pinpoint.profiler.context.id.TransactionIdEncoder 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);
}
Also used : DefaultTransactionIdEncoder(com.navercorp.pinpoint.profiler.context.thrift.DefaultTransactionIdEncoder) MetadataMessageConverter(com.navercorp.pinpoint.profiler.context.thrift.MetadataMessageConverter) MetaDataType(com.navercorp.pinpoint.profiler.metadata.MetaDataType) TransactionIdEncoder(com.navercorp.pinpoint.profiler.context.id.TransactionIdEncoder) DefaultTransactionIdEncoder(com.navercorp.pinpoint.profiler.context.thrift.DefaultTransactionIdEncoder) TBase(org.apache.thrift.TBase)

Aggregations

TransactionIdEncoder (com.navercorp.pinpoint.profiler.context.id.TransactionIdEncoder)1 DefaultTransactionIdEncoder (com.navercorp.pinpoint.profiler.context.thrift.DefaultTransactionIdEncoder)1 MetadataMessageConverter (com.navercorp.pinpoint.profiler.context.thrift.MetadataMessageConverter)1 MetaDataType (com.navercorp.pinpoint.profiler.metadata.MetaDataType)1 TBase (org.apache.thrift.TBase)1