Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallStats ¶
type CallStats struct { InputBytes int `json:"inputbytes"` OutputBytes int `json:"outputbytes"` Latency time.Duration `json:"latency"` TimeToFirstByte time.Duration `json:"timetofirstbyte"` }
CallStats records request stats
type Info ¶
type Info struct { NodeName string `json:"nodename"` FuncName string `json:"funcname"` ReqInfo RequestInfo `json:"request"` RespInfo ResponseInfo `json:"response"` CallStats CallStats `json:"stats"` }
Info - represents a trace record, additionally also reports errors if any while listening on trace.
type RequestInfo ¶
type RequestInfo struct { Time time.Time `json:"time"` Method string `json:"method"` Path string `json:"path,omitempty"` RawQuery string `json:"rawquery,omitempty"` Headers http.Header `json:"headers,omitempty"` Body []byte `json:"body,omitempty"` Client string `json:"client"` }
RequestInfo represents trace of http request
Click to show internal directories.
Click to hide internal directories.