func Register(c prometheus.Collector) error {
	return registry.Register(c)
}
Register registers the given Collector in the registry.
package metrics
import (
	"net/http"
	ocprom "contrib.go.opencensus.io/exporter/prometheus"
	"github.com/prometheus/client_golang/prometheus"
	"go.opencensus.io/stats/view"
)
var registry = prometheus.NewRegistry()
var exporter, _ = ocprom.NewExporter(ocprom.Options{
	Registry: registry,
})
var Exporter http.Handler = exporter
var Registry prometheus.Registerer = registry
func init() {
	registry.MustRegister(prometheus.NewProcessCollector(prometheus.ProcessCollectorOpts{}))
	registry.MustRegister(prometheus.NewGoCollector())
	registry.MustRegister(ttnInfo)
	view.RegisterExporter(exporter)
}