func NewMetricPrometheusContext(resource string, request string) *MetricPrometheusContext {
	return &MetricPrometheusContext{
		Start:      time.Now(),
		Attributes: []string{resource + "_" + request},
	}
}
NewMetricPrometheusContext creates a new MetricContext.
package metrics
import (
	"sync"
	"time"
	"github.com/prometheus/client_golang/prometheus"
	"sigs.k8s.io/controller-runtime/pkg/metrics"
	capoerrors "sigs.k8s.io/cluster-api-provider-openstack/pkg/utils/errors"
)
type OpenstackPrometheusMetrics struct {
	Duration *prometheus.HistogramVec
	Total    *prometheus.CounterVec
	Errors   *prometheus.CounterVec
}
type MetricPrometheusContext struct {
	Start      time.Time
	Attributes []string
	Metrics    *OpenstackPrometheusMetrics
}