// Counter obtains a counter for the given name.
opts := addOptions(omp, counterOptions{}, counter)
c, err := omp.provider.GetMeter().Int64Counter(counter, opts...)
if err != nil {
omp.l.Error("error getting metric", tag.String("MetricName", counter), tag.Error(err))
return CounterFunc(func(i int64, t ...Tag) {})