Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[exporter/prometheusremotewrite] fix snappy double alloc (open-teleme…
…try#34274) **Description:** Snappy Encode function is not using the buffer passed in by prometheus remote write as it is too small. Removing this unused buffer allocation and just passing nil. Snappy will allocate the required buffers. **Link to tracking Issue:** Fixes open-telemetry#34273 **Testing:** Ran existing unit tests which cover this code Ran this in our integration environment and verified reduced allocations. Before: ![dfce1b99-8998-422e-a9e6-ccc5f6401393](https://github.com/user-attachments/assets/df103b83-48a7-4df7-b9da-c829de02616c) After: ![image](https://github.com/user-attachments/assets/d4dc638c-dab6-4407-b8f1-5ecc24d60435) --------- Co-authored-by: Raphael Philipe Mendes da Silva <rapphil@gmail.com> Co-authored-by: Matthew Wear <matthew.wear@gmail.com>
- Loading branch information