mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-25 04:35:59 +10:00
[유치수] [PINPOINT-184] spanchunk에 service type, endpoint 추가.
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@1546 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,13 +1,14 @@
|
||||
package com.profiler.context;
|
||||
|
||||
import com.profiler.DefaultAgent;
|
||||
import com.profiler.common.dto.thrift.Annotation;
|
||||
import org.apache.thrift.TBase;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import org.apache.thrift.TBase;
|
||||
|
||||
import com.profiler.DefaultAgent;
|
||||
import com.profiler.common.dto.thrift.Annotation;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -28,13 +29,16 @@ public class SpanChunk implements Thriftable {
|
||||
|
||||
tSpanChunk.setAgentId(DefaultAgent.getInstance().getAgentId());
|
||||
tSpanChunk.setApplicationId(DefaultAgent.getInstance().getApplicationName());
|
||||
tSpanChunk.setServiceType(parentSpan.getServiceType().getCode());
|
||||
tSpanChunk.setAgentIdentifier(DefaultAgent.getInstance().getIdentifier());
|
||||
|
||||
UUID id = parentSpan.getTraceID().getId();
|
||||
tSpanChunk.setMostTraceId(id.getMostSignificantBits());
|
||||
tSpanChunk.setLeastTraceId(id.getLeastSignificantBits());
|
||||
tSpanChunk.setSpanId(parentSpan.getTraceID().getSpanId());
|
||||
|
||||
|
||||
tSpanChunk.setEndPoint(parentSpan.getEndPoint());
|
||||
|
||||
List<com.profiler.common.dto.thrift.SpanEvent> tSpanEvent = createSpanEvent(spanEventList);
|
||||
|
||||
tSpanChunk.setSpanEventList(tSpanEvent);
|
||||
|
||||
Reference in New Issue
Block a user