Allow passing a beforeSend to process JSON before sending it to graphite.