Add instrumentation around scanMetrics and checkMeta