Metric#data must be properly serialized