You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: prometheus.go
    path of file: ./repos/oathkeeper/metrics
    
    the code of the file until where you have to start completion: // Copyright Â© 2023 Ory Corp
// SPDX-License-Identifier: Apache-2.0

// Package contains the collection of prometheus meters/counters
// and related update methods
package metrics

import (
	"strconv"

	"github.com/prometheus/client_golang/prometheus"

	
    
func NewPrometheusRepository(logger *logrusx.Logger) *PrometheusRepository {
	m := []prometheus.Collector{
		prometheus.NewGoCollector(),
		prometheus.NewProcessCollector(prometheus.ProcessCollectorOpts{}),
		RequestTotal,
		HistogramRequestDuration,
	}

	r := prometheus.NewRegistry()

	for _, metric := range m {
		if err := r.Register(metric); err != nil {
			logger.WithError(err).Error("Unable to register prometheus metric.")
		}
	}

	mr := &PrometheusRepository{
		logger:   logger,
		Registry: r,
		metrics:  m,
	}

	return mr
}