Documentation ¶
Index ¶
- Constants
- func SubmitTrace(trace *STrace)
- type STrace
- func (tr *STrace) AddClientRequestHeader(header http.Header)
- func (tr *STrace) EndClientTrace(spanName, remoteServiceName, localAddr string, tags map[string]string)
- func (tr *STrace) EndClientTraceHeader(header http.Header)
- func (tr *STrace) EndTrace()
- func (tr *STrace) IsZero() bool
- func (tr *STrace) String() string
- type STraceEndpoint
- type TraceKind
Constants ¶
View Source
const ( X_YUNION_PEER_SERVICE_NAME = "X-Yunion-Peer-Service-Name" // X_YUNION_SERVICE_NAME = "X-Yunion-Service-Name" X_YUNION_TRACE_ID = "X-Yunion-STrace-Id" X_YUNION_SPAN_NAME = "X-Yunion-Span-Name" X_YUNION_PARENT_ID = "X-Yunion-Parent-Id" X_YUNION_SPAN_ID = "X-Yunion-Span-Id" X_YUNION_TRACE_DEBUG = "X-Yunion-STrace-Debug" X_YUNION_REMOTE_ADDR = "X-Yunion-Remote-Addr" X_YUNION_TRACE_TAG = "X-Yunion-STrace-Tag-" )
View Source
const UNKNOWN_SERVICE_NAME string = "(unknown_service)"
Variables ¶
This section is empty.
Functions ¶
func SubmitTrace ¶
func SubmitTrace(trace *STrace)
Types ¶
type STrace ¶
type STrace struct { TraceId string Name string ParentId string Id string Kind TraceKind Timestamp time.Time Duration time.Duration Debug bool LocalEndpoint STraceEndpoint RemoteEndpoint STraceEndpoint Tags map[string]string // contains filtered or unexported fields }
func StartClientTrace ¶
func StartServerTrace ¶
func (*STrace) AddClientRequestHeader ¶
func (*STrace) EndClientTrace ¶
func (*STrace) EndClientTraceHeader ¶
type STraceEndpoint ¶
Click to show internal directories.
Click to hide internal directories.