[instrumentation] Record the black/white list metrics (backport to 0.9.x)

Backport of pr #224 to 0.9.x branch