diff --git a/src/v0/destinations/braze/util.js b/src/v0/destinations/braze/util.js index f9bcdb9496..b3e60f2c6a 100644 --- a/src/v0/destinations/braze/util.js +++ b/src/v0/destinations/braze/util.js @@ -419,6 +419,23 @@ const processBatch = (transformedEvents) => { const attributes = attributeArrayChunks[i]; const events = eventsArrayChunks[i]; const purchases = purchaseArrayChunks[i]; + + if (attributes) { + stats.gauge('braze_batch_attributes_pack_size', attributes.length, { + destination_id: destination.ID, + }); + } + if (events) { + stats.gauge('braze_batch_events_pack_size', events.length, { + destination_id: destination.ID, + }); + } + if (purchases) { + stats.gauge('braze_batch_purchase_pack_size', purchases.length, { + destination_id: destination.ID, + }); + } + const response = defaultRequestConfig(); response.endpoint = endpoint; response.body.JSON = removeUndefinedAndNullValues({