define the map capacity in advance before returning it.
a subsequent follow-up might be allowing passing a map in its entirety to github.com/honeycombio/libhoney-go.(*Event).AddField so that the map entries do not need to be added one at a time when merging the maps together.
Which problem is this PR solving?
Short description of the changes
a subsequent follow-up might be allowing passing a map in its entirety to github.com/honeycombio/libhoney-go.(*Event).AddField so that the map entries do not need to be added one at a time when merging the maps together.
Or, better yet, https://github.com/golang/go/issues/56182 could prevent this problem by giving us a more sensible API for mass additions to a map.