Revert "Wire up data source config metrics correctly"

This reverts commit e433cfa02d.
This commit is contained in:
beejeebus
2025-12-10 17:38:00 -05:00
parent 000c00aee9
commit 2a65e0cdcb
2 changed files with 21 additions and 39 deletions
@@ -57,11 +57,6 @@ func (s *legacyStorage) ConvertToTable(ctx context.Context, object runtime.Objec
}
func (s *legacyStorage) List(ctx context.Context, options *internalversion.ListOptions) (runtime.Object, error) {
start := time.Now()
defer func() {
metricutil.ObserveWithExemplar(ctx, s.dsConfigHandlerRequestsDuration.WithLabelValues("new", "List"), time.Since(start).Seconds())
}()
return s.datasources.ListDataSources(ctx)
}