adding json metric logging