Add metrics to json package messages