// With implements metrics.Gauge.
163488
func (g *Gauge) With(labelValues ...string) metrics.Gauge {
	g.influx.mtx.RLock()
	node := g.influx.gauges[g.g.Name]
	g.influx.mtx.RUnlock()

	ga := &Gauge{g: g.g.With(labelValues...).(*generic.Gauge), influx: g.influx}
	return node.addGauge(ga, ga.g.LabelValues())
}
331876
func (f *Factory) Gauge(options metrics.Options) metrics.Gauge {
	gauge := &gauge{
		gauges: make([]metrics.Gauge, len(f.factories)),
	}
	for i, factory := range f.factories {
		gauge.gauges[i] = factory.Gauge(options)
	}
	return gauge
}
464137
func (t *Timing) With(labelValues ...string) metrics.Histogram {
	return &Timing{
		name: t.name,
		lvs:  t.lvs.With(labelValues...),
		obs:  t.obs,
	}
}
697115
func (l Levels) With(keyvals ...interface{}) Levels {
	return Levels{
		logger:     log.With(l.logger, keyvals...),
		levelKey:   l.levelKey,
		debugValue: l.debugValue,
		infoValue:  l.infoValue,
		warnValue:  l.warnValue,
		errorValue: l.errorValue,
		critValue:  l.critValue,
	}
}
1035209
func (c *CtxDimensions) With(ctx context.Context, log Logger) *Context {
	return NewContext(log).With(c.From(ctx)...)
}
732852
func (pool *Pool) With(conf Config) *Pool {
	return &Pool{redis: pool.redis, conf: conf}
}
1315461
func (h *SimpleHistogram) With(labelValues ...string) metrics.Histogram {
	return &SimpleHistogram{
		lvs: h.lvs.With(labelValues...),
		avg: h.avg,
		n:   h.n,
	}
}
1335410
func WithMetricsCollector(ctx context.Context) (context.Context, *MetricsCollector) {
	metricsCollector := &MetricsCollector{metrics: &InvocationMetrics{}}
	ctxWithMetrics := context.WithValue(ctx, metricsCollectorID{}, metricsCollector)
	return ctxWithMetrics, metricsCollector
}
90880
func WithCompressor(c grpc.Compressor) Option {
	return func(o *options) {
		o.compressor = c
	}
}
762158
func With(values ...interface{}) ContextLogger {
	if len(values) == 1 {
		return &contextLogger{isTrue: true, data: values[0]}
	}
	return &contextLogger{isTrue: true, data: values}
}
319114
func (v *GaugeVec) WithLabelValues(lvs ...string) Gauge {
	g, err := v.GetMetricWithLabelValues(lvs...)
	if err != nil {
		panic(err)
	}
	return g
}
221531
func (c *causeT) With(keyvals ...interface{}) Error {
	return &causeT{
		errorT: c.errorT.withKeyvals(keyvals),
		cause:  c.cause,
	}
}
612179
func (g *Generated) WithType(slicePtr interface{}) bool {
	found := false
	v, err := conversion.EnforcePtr(slicePtr)
	if err != nil || v.Kind() != reflect.Slice {
		// This should not happen at runtime.
		panic("need ptr to slice")
	}
	t := v.Type().Elem()
	for i := range g.Items {
		obj := reflect.ValueOf(g.Items[i]).Elem()
		if !obj.Type().ConvertibleTo(t) {
			continue
		}
		found = true
		v.Set(reflect.Append(v, obj.Convert(t)))
	}
	return found
}
1037260
func With(length int, swap func(i, j int), less func(i, j int) bool) {
	quickSort_func(lessSwap{less, swap}, 0, length, maxDepth(length))
}
257869
func (q *Query) With(name string, subq *Query) *Query {
	return q._with(name, newSelectQuery(subq))
}
959941
func (l *tmLogger) With(keyvals ...interface{}) Logger {
	return &tmLogger{kitlog.With(l.srcLogger, keyvals...)}
}
1343616
func (m *MockCounterVec) With(arg0 prometheus.Labels) prometheus.Counter {
	ret := m.ctrl.Call(m, "With", arg0)
	ret0, _ := ret[0].(prometheus.Counter)
	return ret0
}