Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetMetrics ¶
func SetMetrics(name string, details MetricDetails)
SetMetrics set new content to current metric
func SetMetricsCtx ¶
func SetMetricsCtx(ctx *context.Context, name string, details MetricDetails)
SetMetricsCtx set new content to the current metric including context
Types ¶
type MetricDetail ¶
type MetricDetail struct { Ctx context.Context `json:"context,omitempty"` Name string `json:"name"` Times uint64 `json:"times"` Details MetricDetails `json:"details,omitempty"` StartedAt time.Time `json:"started_at"` EndedAt time.Time `json:"ended_at"` }
MetricDetail holds information about a metric
Click to show internal directories.
Click to hide internal directories.