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

Backport of pr #224 to 0.9.x branch
Merge pull request #272 from deniszh/0.9.x_instrumentation

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