database: Track payload sizes in batch inserter
Created by: efritz
This adds an approximate size of the payloads sent via each batch inserter flush to our observability calls. Currently this only counts strings as variable size and marks everything else as constant. We can expand the set of detected types post-merge.
Test plan
Integration tests.