SpanResult.java
1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.yoho.trace.anaylzer.model;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* Created by xjipeng on 2017/10/19.
*/
@Data
public class SpanResult implements Serializable {
String spanName ;
String spanId ;
long duration ;
int level ;
String parent ;
//服务调用的 源服务 & 目的服务
String srcService ;
String dstService ;
List<String> srcIp ;
List<String> dstIp ;
int errorCount;
SpanType spanType;
public SpanResult(String spanName, long duration,int level,String spanId, String parent, String srcService, String dstService, List<String> srcIp, List<String> dstIp,int errorCount,SpanType spanType ){
this.spanName = spanName ;
this.spanId = spanId ;
this.duration = duration ;
this.level = level ;
this.parent = parent ;
this.srcService = srcService ;
this.dstService = dstService ;
this.srcIp = srcIp ;
this.dstIp = dstIp ;
this.errorCount = errorCount;
this.spanType=spanType;
}
}