func newResponseStats() *responseStats {
	r := &responseStats{}
	r.totalStatusCodes = make(map[int]int)
	r.lock = &sync.Mutex{}
	r.reset()
	return r
}
newResponseStats initializes the struct's complex data types
package main
import (
	"strings"
	"sync"
	"time"
	"github.com/honeycombio/honeytail/event"
	"github.com/honeycombio/libhoney-go/transmission"
	"github.com/sirupsen/logrus"
)
type responseStats struct {
	lock *sync.Mutex
	count       int
	statusCodes map[int]int
	bodies      map[string]int
	errors      map[string]int
	maxDuration time.Duration
	sumDuration time.Duration
	minDuration time.Duration
	event       *event.Event
	totalCount       int
	totalStatusCodes map[int]int
}