public class TraceSpan extends Object
| 构造器和说明 |
|---|
TraceSpan() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getComponent()
组件类型
|
Long |
getDuration()
毫秒耗时
|
String |
getInfo()
服务描述信息
|
String |
getKind()
span kind, CLIENT SERVER PRODUCER CONSUMER
|
String |
getLocalCellName()
local cell name
|
String |
getLocalIdcName()
local idc name
|
String |
getLocalIp()
local endpoint ip
|
String |
getLocalServiceName()
local endpoint service name
|
String |
getName()
name
|
String |
getParentId()
parent_id
|
String |
getRemoteCellName()
remote cell name
|
String |
getRemoteIdcName()
remote idc name
|
String |
getRemoteIp()
remote endpoint ip
|
String |
getRemoteServiceName()
remote endpoint service name
|
String |
getSpanId()
span_id
|
Long |
getStartTime()
开始时间, 毫秒时间戳
|
String |
getStatus()
状态码
|
List<KeySet> |
getTags()
span tags, 是关于span的键值对
|
String |
getTraceId()
trace id
|
void |
setComponent(String component)
组件类型
|
void |
setDuration(Long duration)
毫秒耗时
|
void |
setInfo(String info)
服务描述信息
|
void |
setKind(String kind)
span kind, CLIENT SERVER PRODUCER CONSUMER
|
void |
setLocalCellName(String localCellName)
local cell name
|
void |
setLocalIdcName(String localIdcName)
local idc name
|
void |
setLocalIp(String localIp)
local endpoint ip
|
void |
setLocalServiceName(String localServiceName)
local endpoint service name
|
void |
setName(String name)
name
|
void |
setParentId(String parentId)
parent_id
|
void |
setRemoteCellName(String remoteCellName)
remote cell name
|
void |
setRemoteIdcName(String remoteIdcName)
remote idc name
|
void |
setRemoteIp(String remoteIp)
remote endpoint ip
|
void |
setRemoteServiceName(String remoteServiceName)
remote endpoint service name
|
void |
setSpanId(String spanId)
span_id
|
void |
setStartTime(Long startTime)
开始时间, 毫秒时间戳
|
void |
setStatus(String status)
状态码
|
void |
setTags(List<KeySet> tags)
span tags, 是关于span的键值对
|
void |
setTraceId(String traceId)
trace id
|
public String getComponent()
public void setComponent(String component)
public Long getDuration()
public void setDuration(Long duration)
public String getInfo()
public void setInfo(String info)
public String getKind()
public void setKind(String kind)
public String getLocalIp()
public void setLocalIp(String localIp)
public String getLocalServiceName()
public void setLocalServiceName(String localServiceName)
public String getLocalIdcName()
public void setLocalIdcName(String localIdcName)
public String getLocalCellName()
public void setLocalCellName(String localCellName)
public String getName()
public void setName(String name)
public String getParentId()
public void setParentId(String parentId)
public String getRemoteIp()
public void setRemoteIp(String remoteIp)
public String getRemoteServiceName()
public void setRemoteServiceName(String remoteServiceName)
public String getRemoteIdcName()
public void setRemoteIdcName(String remoteIdcName)
public String getRemoteCellName()
public void setRemoteCellName(String remoteCellName)
public String getSpanId()
public void setSpanId(String spanId)
public Long getStartTime()
public void setStartTime(Long startTime)
public String getStatus()
public void setStatus(String status)
public String getTraceId()
public void setTraceId(String traceId)
Copyright © 2022. All Rights Reserved.