Documentation ¶
Index ¶
- Variables
- func AddIsMatchedTag(ctx context.Context, target string) (context.Context, error)
- func AddMismatchedTag(ctx context.Context, reason string) (context.Context, error)
- func InitializeLatencyTracking(ctx context.Context) context.Context
- func RecordMatched(ctx context.Context)
- func RecordMismatched(ctx context.Context, mismatchedPath string)
- type MetricServer
- type MetricServerImpl
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MLatencyMs records the time it took for matching operation MLatencyMs = stats.Float64("matching/latency", "Latency of matching operation", "ms") // KeyIsMatched holds matching operation result. It will be either "matched" or "mismatched" KeyIsMatched, _ = tag.NewKey("is_matched") // KeyMismatchedPath holds information of the mismatched path KeyMismatchedPath, _ = tag.NewKey("mismatched_path") )
Functions ¶
func AddIsMatchedTag ¶
AddIsMatchedTag ...
func AddMismatchedTag ¶
AddMismatchedTag ...
func InitializeLatencyTracking ¶
InitializeLatencyTracking ...
func RecordMatched ¶
func RecordMismatched ¶
Types ¶
type MetricServer ¶
type MetricServer interface {
Start() error
}
func NewMetricServer ¶
func NewMetricServer(server MetricServerImpl) MetricServer
type MetricServerImpl ¶
func (*MetricServerImpl) Start ¶
func (s *MetricServerImpl) Start() (err error)
Click to show internal directories.
Click to hide internal directories.