Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CoroutineIDName = "cid"
Functions ¶
This section is empty.
Types ¶
type CoroutineIDBySrc ¶
type CoroutineIDBySrc struct { }
使用修改源码方式来获得当前执行此日志时的协程ID 需要修改sdk,当前操作方式: 在`src/runtime/proc.go`最后增加如下方法。
func Goid() int64 { _g_ := getg() return _g_.goid }
func (*CoroutineIDBySrc) GetName ¶
func (cid *CoroutineIDBySrc) GetName() string
func (*CoroutineIDBySrc) Values ¶
func (cid *CoroutineIDBySrc) Values() []byte
Click to show internal directories.
Click to hide internal directories.