Beispiel #1
0
func NewVarz(r *registry.RouteRegistry) Varz {
	x := &RealVarz{r: r}

	x.activeApps = stats.NewActiveApps()
	x.topApps = stats.NewTopApps()

	x.All = NewHttpMetric()
	x.Tags.Component = make(map[string]*HttpMetric)

	return x
}
Beispiel #2
0
func (_ NullVarz) ActiveApps() *stats.ActiveApps                                                    { return stats.NewActiveApps() }