Fix type bug

Type gauge or counter for attributes is used in LibratoWriter but it was never set in collectMetrics.