Added a fix for signal metrics logging being too aggressive in cleaning output resulting to empty JSONs