248}
249
250// InitPrometheus is a stub for the receiver prom metrics. Required to satisfy Receiver interface.
251func (rcv *PubSub) InitPrometheus(reg prometheus.Registerer) {252}
163}
164
165// InitPrometheus is a stub for the receiver prom metrics. Required to satisfy Receiver interface.
166func (rcv *HTTP) InitPrometheus(reg prometheus.Registerer) {167}
2170 return false
2171}
2172
2173func (ti *trieIndex) metricDataLen(ps *points.Points) int64 {2174 dataLen := int64(len(ps.Data))
2175 if dataLen == 0 {
2176 // WHY: in theory, this should not happen. But in cases where
40}
41
42// initTracer creates a new trace provider instance and registers it as global trace provider.
43func (c *CarbonserverListener) InitTracing(jaegerEndpoint string, sendtoStdout bool, version string, timeout time.Duration) func() { 44 logger := zapwriter.Logger("app")
45
46 propagator := trace.B3{}
146}
147
148// RestoreFromFile read and parse data from single file
149func (app *App) RestoreFromFile(filename string, storeFunc func(*points.Points)) error {150 var pointsCount int
151 startTime := time.Now()
152
Methods with unused receivers can be a symptom of unfinished refactoring or a bug. To keep the same method signature, omit the receiver name or '_' as it is unused.
func (f *Unix) Name() string {
return "unix"
}
func (_ *Unix) Name() string {
return "unix"
}
func (*Unix) Name() string {
return "unix"
}