Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Span ¶
type Span interface {
// End 结束Span
End()
// SetTag 设置Span标签
SetTag(key string, value interface{})
// SetError 设置Span错误
SetError(err error)
// SetStatus 设置状态
SetStatus(code StatusCode, description string)
}
Span 是跟踪Span接口
type StatusCode ¶ added in v0.1.0
type StatusCode int
StatusCode 表示追踪状态码
const ( // StatusOk 表示操作成功 StatusOk StatusCode = 0 // StatusError 表示操作失败 StatusError StatusCode = 1 )
Click to show internal directories.
Click to hide internal directories.