Search in sources :

Example 11 with DefaultTraceId

use of com.navercorp.pinpoint.profiler.context.id.DefaultTraceId in project pinpoint by naver.

the class SpanStreamSendDataSerializerTest method createSpan.

private Span createSpan(List<SpanEvent> spanEventList) {
    DefaultTraceId traceId = new DefaultTraceId("test", 0, 1);
    Span span = new Span();
    for (SpanEvent spanEvent : spanEventList) {
        span.addToSpanEventList(spanEvent);
    }
    span.setAgentId("agentId");
    span.recordTraceId(traceId);
    return span;
}
Also used : DefaultTraceId(com.navercorp.pinpoint.profiler.context.id.DefaultTraceId) SpanEvent(com.navercorp.pinpoint.profiler.context.SpanEvent) TSpanEvent(com.navercorp.pinpoint.thrift.dto.TSpanEvent) TSpan(com.navercorp.pinpoint.thrift.dto.TSpan) Span(com.navercorp.pinpoint.profiler.context.Span)

Aggregations

DefaultTraceId (com.navercorp.pinpoint.profiler.context.id.DefaultTraceId)11 Test (org.junit.Test)8 TraceId (com.navercorp.pinpoint.bootstrap.context.TraceId)7 Trace (com.navercorp.pinpoint.bootstrap.context.Trace)3 TraceContext (com.navercorp.pinpoint.bootstrap.context.TraceContext)3 AsyncIdGenerator (com.navercorp.pinpoint.profiler.context.id.AsyncIdGenerator)3 DefaultRecorderFactory (com.navercorp.pinpoint.profiler.context.recorder.DefaultRecorderFactory)3 RecorderFactory (com.navercorp.pinpoint.profiler.context.recorder.RecorderFactory)3 SpanStorage (com.navercorp.pinpoint.profiler.context.storage.SpanStorage)3 SqlMetaDataService (com.navercorp.pinpoint.profiler.metadata.SqlMetaDataService)3 StringMetaDataService (com.navercorp.pinpoint.profiler.metadata.StringMetaDataService)3 Span (com.navercorp.pinpoint.profiler.context.Span)2 SpanEvent (com.navercorp.pinpoint.profiler.context.SpanEvent)2 TSpanEvent (com.navercorp.pinpoint.thrift.dto.TSpanEvent)2 DefaultProfilerConfig (com.navercorp.pinpoint.bootstrap.config.DefaultProfilerConfig)1 ProfilerConfig (com.navercorp.pinpoint.bootstrap.config.ProfilerConfig)1 AsyncTraceId (com.navercorp.pinpoint.bootstrap.context.AsyncTraceId)1 TransactionId (com.navercorp.pinpoint.common.util.TransactionId)1 StandardHostValveInvokeInterceptor (com.navercorp.pinpoint.plugin.jboss.interceptor.StandardHostValveInvokeInterceptor)1 StandardHostValveInvokeInterceptor (com.navercorp.pinpoint.plugin.tomcat.interceptor.StandardHostValveInvokeInterceptor)1