From cb9bc2aa3099c457ca3bfdad379e7532e5378aa0 Mon Sep 17 00:00:00 2001 From: Woonduk Kang Date: Thu, 28 Feb 2013 02:57:29 +0000 Subject: [PATCH] =?UTF-8?q?[=EA=B0=95=EC=9A=B4=EB=8D=95]=20[LUCYSUS-1744]S?= =?UTF-8?q?ubSpanList=EC=9D=98=20=ED=81=B4=EB=9E=98=EB=AA=85=EC=9D=B4=20?= =?UTF-8?q?=EC=A7=81=EA=B4=80=EC=A0=81=EC=9D=B4=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EC=95=84=20SpanChunk=EB=A1=9C=20=EB=B3=80=EA=B2=BD=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@1264 84d0f5b1-2673-498c-a247-62c4ff18d310 --- .../java/com/profiler/context/SubSpanList.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/profiler/context/SubSpanList.java b/src/main/java/com/profiler/context/SubSpanList.java index 0d9e4e388..aa47f0c9b 100644 --- a/src/main/java/com/profiler/context/SubSpanList.java +++ b/src/main/java/com/profiler/context/SubSpanList.java @@ -1,6 +1,7 @@ package com.profiler.context; import com.profiler.Agent; +import com.profiler.common.dto.thrift.SpanChunk; import org.apache.thrift.TBase; import java.util.ArrayList; @@ -20,23 +21,23 @@ public class SubSpanList implements Thriftable { @Override public TBase toThrift() { - com.profiler.common.dto.thrift.SubSpanList tSubSpanList = new com.profiler.common.dto.thrift.SubSpanList(); + SpanChunk tSpanChunk = new SpanChunk(); // TODO 반드시 1개 이상이라는 조건을 충족해야 된다. SubSpan first = subSpanList.get(0); Span parentSpan = first.getParentSpan(); - tSubSpanList.setAgentId(Agent.getInstance().getAgentId()); - tSubSpanList.setAgentIdentifier(Agent.getInstance().getIdentifier()); + tSpanChunk.setAgentId(Agent.getInstance().getAgentId()); + tSpanChunk.setAgentIdentifier(Agent.getInstance().getIdentifier()); UUID id = parentSpan.getTraceID().getId(); - tSubSpanList.setMostTraceId(id.getMostSignificantBits()); - tSubSpanList.setLeastTraceId(id.getLeastSignificantBits()); - tSubSpanList.setSpanId(parentSpan.getTraceID().getSpanId()); + tSpanChunk.setMostTraceId(id.getMostSignificantBits()); + tSpanChunk.setLeastTraceId(id.getLeastSignificantBits()); + tSpanChunk.setSpanId(parentSpan.getTraceID().getSpanId()); List tSubSpan = createSubSpan(subSpanList); - tSubSpanList.setSubSpanList(tSubSpan); + tSpanChunk.setSubSpanList(tSubSpan); - return tSubSpanList; + return tSpanChunk; } private List createSubSpan(List subSpanList) {