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: metrics.go
    path of file: ./repos/openreplay/backend/pkg/metrics/assets
    
    the code of the file until where you have to start completion: package assets

import (
	"github.com/prometheus/client_golang/prometheus"
	"open
    
func RecordUploadDuration(durMillis float64, isFailed bool) {
	failed := "false"
	if isFailed {
		failed = "true"
	}
	assetsUploadDuration.WithLabelValues(failed).Observe(durMillis / 1000.0)
}