mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-18 01:06:03 +10:00
[유치수] [NOBTS] remove Tracer.
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@566 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -5,9 +5,6 @@ import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import com.profiler.context.tracer.EndPoint;
|
||||
import com.profiler.context.tracer.HippoAnnotation;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author netspider
|
||||
@@ -22,8 +19,9 @@ public class Span {
|
||||
private String name;
|
||||
private EndPoint endPoint;
|
||||
|
||||
private final List<HippoAnnotation> annotations = new ArrayList<HippoAnnotation>();
|
||||
private final Set<String> annotationValues = new HashSet<String>();
|
||||
private final List<HippoBinaryAnnotation> binaryAnnotations = new ArrayList<HippoBinaryAnnotation>(5);
|
||||
private final List<HippoAnnotation> annotations = new ArrayList<HippoAnnotation>(5);
|
||||
private final Set<String> annotationValues = new HashSet<String>(5);
|
||||
|
||||
public Span(TraceID traceId, String name, EndPoint endPoint) {
|
||||
this.traceID = traceId;
|
||||
@@ -37,6 +35,10 @@ public class Span {
|
||||
return annotations.add(annotation);
|
||||
}
|
||||
|
||||
public boolean addAnnotation(HippoBinaryAnnotation annotation) {
|
||||
return binaryAnnotations.add(annotation);
|
||||
}
|
||||
|
||||
public int getAnnotationSize() {
|
||||
return annotations.size();
|
||||
}
|
||||
@@ -70,6 +72,10 @@ public class Span {
|
||||
for (HippoAnnotation annotation : annotations) {
|
||||
annotation.setEndPoint(endPoint);
|
||||
}
|
||||
|
||||
for (HippoBinaryAnnotation annotation : binaryAnnotations) {
|
||||
annotation.setEndPoint(endPoint);
|
||||
}
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
|
||||
Reference in New Issue
Block a user