Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReporterParam ¶
type ReporterParam struct { // Request url whick config in proto file. Url string // Request success value is "0". if Error occurred, // Value is errcode. Code string // Request start time for calculating latency. StartTime time.Time ServiceName string // Http method like PUT/POST/DELETE and so on.. HttpMethod string // Request client. Client string }
ReporterParam contains prometheus label value and other extra attribute.
func (*ReporterParam) RequestComplete ¶
func (reporter *ReporterParam) RequestComplete() float64
RequestComplete may be invoked in any method which request is ended.
Click to show internal directories.
Click to hide internal directories.