Add support for custom attributes in latencies