cfg ClientConfig,
shouldRecordTimerInSeconds bool,
c, err := globalRegistry.buildCatalog()
if err != nil {
return nil, fmt.Errorf("failed to build metrics catalog: %w", err)
}
l: l,
set: makeInitialSet(cfg.Tags),
provider: o,
excludeTags: configExcludeTags(cfg),
catalog: c,
gauges: new(sync.Map),
recordTimerInSeconds: shouldRecordTimerInSeconds,
}, nil
}