// Code generated by github.com/tinylib/msgp DO NOT EDIT.

package trace

import (
	"github.com/tinylib/msgp/msgp"
)

// DecodeMsg implements msgp.Decodable
func (z *ClientGroupedStats) DecodeMsg(dc *msgp.Reader) (err error) {
	var field []byte
	_ = field
	var zb0001 uint32
	zb0001, err = dc.ReadMapHeader()
	if err != nil {
		err = msgp.WrapError(err)
		return
	}
	for zb0001 > 0 {
		zb0001--
		field, err = dc.ReadMapKeyPtr()
		if err != nil {
			err = msgp.WrapError(err)
			return
		}
		switch msgp.UnsafeString(field) {
		case "Service":
			z.Service, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "Service")
				return
			}
		case "Name":
			z.Name, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "Name")
				return
			}
		case "Resource":
			z.Resource, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "Resource")
				return
			}
		case "HTTPStatusCode":
			z.HTTPStatusCode, err = dc.ReadUint32()
			if err != nil {
				err = msgp.WrapError(err, "HTTPStatusCode")
				return
			}
		case "Type":
			z.Type, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "Type")
				return
			}
		case "DBType":
			z.DBType, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "DBType")
				return
			}
		case "Hits":
			z.Hits, err = dc.ReadUint64()
			if err != nil {
				err = msgp.WrapError(err, "Hits")
				return
			}
		case "Errors":
			z.Errors, err = dc.ReadUint64()
			if err != nil {
				err = msgp.WrapError(err, "Errors")
				return
			}
		case "Duration":
			z.Duration, err = dc.ReadUint64()
			if err != nil {
				err = msgp.WrapError(err, "Duration")
				return
			}
		case "OkSummary":
			z.OkSummary, err = dc.ReadBytes(z.OkSummary)
			if err != nil {
				err = msgp.WrapError(err, "OkSummary")
				return
			}
		case "ErrorSummary":
			z.ErrorSummary, err = dc.ReadBytes(z.ErrorSummary)
			if err != nil {
				err = msgp.WrapError(err, "ErrorSummary")
				return
			}
		case "Synthetics":
			z.Synthetics, err = dc.ReadBool()
			if err != nil {
				err = msgp.WrapError(err, "Synthetics")
				return
			}
		case "TopLevelHits":
			z.TopLevelHits, err = dc.ReadUint64()
			if err != nil {
				err = msgp.WrapError(err, "TopLevelHits")
				return
			}
		case "SpanKind":
			z.SpanKind, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "SpanKind")
				return
			}
		case "PeerTags":
			var zb0002 uint32
			zb0002, err = dc.ReadArrayHeader()
			if err != nil {
				err = msgp.WrapError(err, "PeerTags")
				return
			}
			if cap(z.PeerTags) >= int(zb0002) {
				z.PeerTags = (z.PeerTags)[:zb0002]
			} else {
				z.PeerTags = make([]string, zb0002)
			}
			for za0001 := range z.PeerTags {
				z.PeerTags[za0001], err = dc.ReadString()
				if err != nil {
					err = msgp.WrapError(err, "PeerTags", za0001)
					return
				}
			}
		case "IsTraceRoot":
			{
				var zb0003 int32
				zb0003, err = dc.ReadInt32()
				if err != nil {
					err = msgp.WrapError(err, "IsTraceRoot")
					return
				}
				z.IsTraceRoot = Trilean(zb0003)
			}
		case "GRPCStatusCode":
			z.GRPCStatusCode, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "GRPCStatusCode")
				return
			}
		case "HTTPMethod":
			z.HTTPMethod, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "HTTPMethod")
				return
			}
		case "HTTPEndpoint":
			z.HTTPEndpoint, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "HTTPEndpoint")
				return
			}
		case "srv_src":
			z.ServiceSource, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "ServiceSource")
				return
			}
		case "SpanDerivedPrimaryTags":
			var zb0004 uint32
			zb0004, err = dc.ReadArrayHeader()
			if err != nil {
				err = msgp.WrapError(err, "SpanDerivedPrimaryTags")
				return
			}
			if cap(z.SpanDerivedPrimaryTags) >= int(zb0004) {
				z.SpanDerivedPrimaryTags = (z.SpanDerivedPrimaryTags)[:zb0004]
			} else {
				z.SpanDerivedPrimaryTags = make([]string, zb0004)
			}
			for za0002 := range z.SpanDerivedPrimaryTags {
				z.SpanDerivedPrimaryTags[za0002], err = dc.ReadString()
				if err != nil {
					err = msgp.WrapError(err, "SpanDerivedPrimaryTags", za0002)
					return
				}
			}
		default:
			err = dc.Skip()
			if err != nil {
				err = msgp.WrapError(err)
				return
			}
		}
	}
	return
}

// EncodeMsg implements msgp.Encodable
func (z *ClientGroupedStats) EncodeMsg(en *msgp.Writer) (err error) {
	// map header, size 21
	// write "Service"
	err = en.Append(0xde, 0x0, 0x15, 0xa7, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65)
	if err != nil {
		return
	}
	err = en.WriteString(z.Service)
	if err != nil {
		err = msgp.WrapError(err, "Service")
		return
	}
	// write "Name"
	err = en.Append(0xa4, 0x4e, 0x61, 0x6d, 0x65)
	if err != nil {
		return
	}
	err = en.WriteString(z.Name)
	if err != nil {
		err = msgp.WrapError(err, "Name")
		return
	}
	// write "Resource"
	err = en.Append(0xa8, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65)
	if err != nil {
		return
	}
	err = en.WriteString(z.Resource)
	if err != nil {
		err = msgp.WrapError(err, "Resource")
		return
	}
	// write "HTTPStatusCode"
	err = en.Append(0xae, 0x48, 0x54, 0x54, 0x50, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65)
	if err != nil {
		return
	}
	err = en.WriteUint32(z.HTTPStatusCode)
	if err != nil {
		err = msgp.WrapError(err, "HTTPStatusCode")
		return
	}
	// write "Type"
	err = en.Append(0xa4, 0x54, 0x79, 0x70, 0x65)
	if err != nil {
		return
	}
	err = en.WriteString(z.Type)
	if err != nil {
		err = msgp.WrapError(err, "Type")
		return
	}
	// write "DBType"
	err = en.Append(0xa6, 0x44, 0x42, 0x54, 0x79, 0x70, 0x65)
	if err != nil {
		return
	}
	err = en.WriteString(z.DBType)
	if err != nil {
		err = msgp.WrapError(err, "DBType")
		return
	}
	// write "Hits"
	err = en.Append(0xa4, 0x48, 0x69, 0x74, 0x73)
	if err != nil {
		return
	}
	err = en.WriteUint64(z.Hits)
	if err != nil {
		err = msgp.WrapError(err, "Hits")
		return
	}
	// write "Errors"
	err = en.Append(0xa6, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73)
	if err != nil {
		return
	}
	err = en.WriteUint64(z.Errors)
	if err != nil {
		err = msgp.WrapError(err, "Errors")
		return
	}
	// write "Duration"
	err = en.Append(0xa8, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e)
	if err != nil {
		return
	}
	err = en.WriteUint64(z.Duration)
	if err != nil {
		err = msgp.WrapError(err, "Duration")
		return
	}
	// write "OkSummary"
	err = en.Append(0xa9, 0x4f, 0x6b, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79)
	if err != nil {
		return
	}
	err = en.WriteBytes(z.OkSummary)
	if err != nil {
		err = msgp.WrapError(err, "OkSummary")
		return
	}
	// write "ErrorSummary"
	err = en.Append(0xac, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79)
	if err != nil {
		return
	}
	err = en.WriteBytes(z.ErrorSummary)
	if err != nil {
		err = msgp.WrapError(err, "ErrorSummary")
		return
	}
	// write "Synthetics"
	err = en.Append(0xaa, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x74, 0x69, 0x63, 0x73)
	if err != nil {
		return
	}
	err = en.WriteBool(z.Synthetics)
	if err != nil {
		err = msgp.WrapError(err, "Synthetics")
		return
	}
	// write "TopLevelHits"
	err = en.Append(0xac, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x48, 0x69, 0x74, 0x73)
	if err != nil {
		return
	}
	err = en.WriteUint64(z.TopLevelHits)
	if err != nil {
		err = msgp.WrapError(err, "TopLevelHits")
		return
	}
	// write "SpanKind"
	err = en.Append(0xa8, 0x53, 0x70, 0x61, 0x6e, 0x4b, 0x69, 0x6e, 0x64)
	if err != nil {
		return
	}
	err = en.WriteString(z.SpanKind)
	if err != nil {
		err = msgp.WrapError(err, "SpanKind")
		return
	}
	// write "PeerTags"
	err = en.Append(0xa8, 0x50, 0x65, 0x65, 0x72, 0x54, 0x61, 0x67, 0x73)
	if err != nil {
		return
	}
	err = en.WriteArrayHeader(uint32(len(z.PeerTags)))
	if err != nil {
		err = msgp.WrapError(err, "PeerTags")
		return
	}
	for za0001 := range z.PeerTags {
		err = en.WriteString(z.PeerTags[za0001])
		if err != nil {
			err = msgp.WrapError(err, "PeerTags", za0001)
			return
		}
	}
	// write "IsTraceRoot"
	err = en.Append(0xab, 0x49, 0x73, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x6f, 0x6f, 0x74)
	if err != nil {
		return
	}
	err = en.WriteInt32(int32(z.IsTraceRoot))
	if err != nil {
		err = msgp.WrapError(err, "IsTraceRoot")
		return
	}
	// write "GRPCStatusCode"
	err = en.Append(0xae, 0x47, 0x52, 0x50, 0x43, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65)
	if err != nil {
		return
	}
	err = en.WriteString(z.GRPCStatusCode)
	if err != nil {
		err = msgp.WrapError(err, "GRPCStatusCode")
		return
	}
	// write "HTTPMethod"
	err = en.Append(0xaa, 0x48, 0x54, 0x54, 0x50, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64)
	if err != nil {
		return
	}
	err = en.WriteString(z.HTTPMethod)
	if err != nil {
		err = msgp.WrapError(err, "HTTPMethod")
		return
	}
	// write "HTTPEndpoint"
	err = en.Append(0xac, 0x48, 0x54, 0x54, 0x50, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74)
	if err != nil {
		return
	}
	err = en.WriteString(z.HTTPEndpoint)
	if err != nil {
		err = msgp.WrapError(err, "HTTPEndpoint")
		return
	}
	// write "srv_src"
	err = en.Append(0xa7, 0x73, 0x72, 0x76, 0x5f, 0x73, 0x72, 0x63)
	if err != nil {
		return
	}
	err = en.WriteString(z.ServiceSource)
	if err != nil {
		err = msgp.WrapError(err, "ServiceSource")
		return
	}
	// write "SpanDerivedPrimaryTags"
	err = en.Append(0xb6, 0x53, 0x70, 0x61, 0x6e, 0x44, 0x65, 0x72, 0x69, 0x76, 0x65, 0x64, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x54, 0x61, 0x67, 0x73)
	if err != nil {
		return
	}
	err = en.WriteArrayHeader(uint32(len(z.SpanDerivedPrimaryTags)))
	if err != nil {
		err = msgp.WrapError(err, "SpanDerivedPrimaryTags")
		return
	}
	for za0002 := range z.SpanDerivedPrimaryTags {
		err = en.WriteString(z.SpanDerivedPrimaryTags[za0002])
		if err != nil {
			err = msgp.WrapError(err, "SpanDerivedPrimaryTags", za0002)
			return
		}
	}
	return
}

// MarshalMsg implements msgp.Marshaler
func (z *ClientGroupedStats) MarshalMsg(b []byte) (o []byte, err error) {
	o = msgp.Require(b, z.Msgsize())
	// map header, size 21
	// string "Service"
	o = append(o, 0xde, 0x0, 0x15, 0xa7, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65)
	o = msgp.AppendString(o, z.Service)
	// string "Name"
	o = append(o, 0xa4, 0x4e, 0x61, 0x6d, 0x65)
	o = msgp.AppendString(o, z.Name)
	// string "Resource"
	o = append(o, 0xa8, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65)
	o = msgp.AppendString(o, z.Resource)
	// string "HTTPStatusCode"
	o = append(o, 0xae, 0x48, 0x54, 0x54, 0x50, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65)
	o = msgp.AppendUint32(o, z.HTTPStatusCode)
	// string "Type"
	o = append(o, 0xa4, 0x54, 0x79, 0x70, 0x65)
	o = msgp.AppendString(o, z.Type)
	// string "DBType"
	o = append(o, 0xa6, 0x44, 0x42, 0x54, 0x79, 0x70, 0x65)
	o = msgp.AppendString(o, z.DBType)
	// string "Hits"
	o = append(o, 0xa4, 0x48, 0x69, 0x74, 0x73)
	o = msgp.AppendUint64(o, z.Hits)
	// string "Errors"
	o = append(o, 0xa6, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73)
	o = msgp.AppendUint64(o, z.Errors)
	// string "Duration"
	o = append(o, 0xa8, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e)
	o = msgp.AppendUint64(o, z.Duration)
	// string "OkSummary"
	o = append(o, 0xa9, 0x4f, 0x6b, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79)
	o = msgp.AppendBytes(o, z.OkSummary)
	// string "ErrorSummary"
	o = append(o, 0xac, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79)
	o = msgp.AppendBytes(o, z.ErrorSummary)
	// string "Synthetics"
	o = append(o, 0xaa, 0x53, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x74, 0x69, 0x63, 0x73)
	o = msgp.AppendBool(o, z.Synthetics)
	// string "TopLevelHits"
	o = append(o, 0xac, 0x54, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x48, 0x69, 0x74, 0x73)
	o = msgp.AppendUint64(o, z.TopLevelHits)
	// string "SpanKind"
	o = append(o, 0xa8, 0x53, 0x70, 0x61, 0x6e, 0x4b, 0x69, 0x6e, 0x64)
	o = msgp.AppendString(o, z.SpanKind)
	// string "PeerTags"
	o = append(o, 0xa8, 0x50, 0x65, 0x65, 0x72, 0x54, 0x61, 0x67, 0x73)
	o = msgp.AppendArrayHeader(o, uint32(len(z.PeerTags)))
	for za0001 := range z.PeerTags {
		o = msgp.AppendString(o, z.PeerTags[za0001])
	}
	// string "IsTraceRoot"
	o = append(o, 0xab, 0x49, 0x73, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x6f, 0x6f, 0x74)
	o = msgp.AppendInt32(o, int32(z.IsTraceRoot))
	// string "GRPCStatusCode"
	o = append(o, 0xae, 0x47, 0x52, 0x50, 0x43, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65)
	o = msgp.AppendString(o, z.GRPCStatusCode)
	// string "HTTPMethod"
	o = append(o, 0xaa, 0x48, 0x54, 0x54, 0x50, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64)
	o = msgp.AppendString(o, z.HTTPMethod)
	// string "HTTPEndpoint"
	o = append(o, 0xac, 0x48, 0x54, 0x54, 0x50, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74)
	o = msgp.AppendString(o, z.HTTPEndpoint)
	// string "srv_src"
	o = append(o, 0xa7, 0x73, 0x72, 0x76, 0x5f, 0x73, 0x72, 0x63)
	o = msgp.AppendString(o, z.ServiceSource)
	// string "SpanDerivedPrimaryTags"
	o = append(o, 0xb6, 0x53, 0x70, 0x61, 0x6e, 0x44, 0x65, 0x72, 0x69, 0x76, 0x65, 0x64, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x54, 0x61, 0x67, 0x73)
	o = msgp.AppendArrayHeader(o, uint32(len(z.SpanDerivedPrimaryTags)))
	for za0002 := range z.SpanDerivedPrimaryTags {
		o = msgp.AppendString(o, z.SpanDerivedPrimaryTags[za0002])
	}
	return
}

// UnmarshalMsg implements msgp.Unmarshaler
func (z *ClientGroupedStats) UnmarshalMsg(bts []byte) (o []byte, err error) {
	var field []byte
	_ = field
	var zb0001 uint32
	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
	if err != nil {
		err = msgp.WrapError(err)
		return
	}
	for zb0001 > 0 {
		zb0001--
		field, bts, err = msgp.ReadMapKeyZC(bts)
		if err != nil {
			err = msgp.WrapError(err)
			return
		}
		switch msgp.UnsafeString(field) {
		case "Service":
			z.Service, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "Service")
				return
			}
		case "Name":
			z.Name, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "Name")
				return
			}
		case "Resource":
			z.Resource, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "Resource")
				return
			}
		case "HTTPStatusCode":
			z.HTTPStatusCode, bts, err = msgp.ReadUint32Bytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "HTTPStatusCode")
				return
			}
		case "Type":
			z.Type, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "Type")
				return
			}
		case "DBType":
			z.DBType, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "DBType")
				return
			}
		case "Hits":
			z.Hits, bts, err = msgp.ReadUint64Bytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "Hits")
				return
			}
		case "Errors":
			z.Errors, bts, err = msgp.ReadUint64Bytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "Errors")
				return
			}
		case "Duration":
			z.Duration, bts, err = msgp.ReadUint64Bytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "Duration")
				return
			}
		case "OkSummary":
			z.OkSummary, bts, err = msgp.ReadBytesBytes(bts, z.OkSummary)
			if err != nil {
				err = msgp.WrapError(err, "OkSummary")
				return
			}
		case "ErrorSummary":
			z.ErrorSummary, bts, err = msgp.ReadBytesBytes(bts, z.ErrorSummary)
			if err != nil {
				err = msgp.WrapError(err, "ErrorSummary")
				return
			}
		case "Synthetics":
			z.Synthetics, bts, err = msgp.ReadBoolBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "Synthetics")
				return
			}
		case "TopLevelHits":
			z.TopLevelHits, bts, err = msgp.ReadUint64Bytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "TopLevelHits")
				return
			}
		case "SpanKind":
			z.SpanKind, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "SpanKind")
				return
			}
		case "PeerTags":
			var zb0002 uint32
			zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "PeerTags")
				return
			}
			if cap(z.PeerTags) >= int(zb0002) {
				z.PeerTags = (z.PeerTags)[:zb0002]
			} else {
				z.PeerTags = make([]string, zb0002)
			}
			for za0001 := range z.PeerTags {
				z.PeerTags[za0001], bts, err = msgp.ReadStringBytes(bts)
				if err != nil {
					err = msgp.WrapError(err, "PeerTags", za0001)
					return
				}
			}
		case "IsTraceRoot":
			{
				var zb0003 int32
				zb0003, bts, err = msgp.ReadInt32Bytes(bts)
				if err != nil {
					err = msgp.WrapError(err, "IsTraceRoot")
					return
				}
				z.IsTraceRoot = Trilean(zb0003)
			}
		case "GRPCStatusCode":
			z.GRPCStatusCode, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "GRPCStatusCode")
				return
			}
		case "HTTPMethod":
			z.HTTPMethod, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "HTTPMethod")
				return
			}
		case "HTTPEndpoint":
			z.HTTPEndpoint, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "HTTPEndpoint")
				return
			}
		case "srv_src":
			z.ServiceSource, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "ServiceSource")
				return
			}
		case "SpanDerivedPrimaryTags":
			var zb0004 uint32
			zb0004, bts, err = msgp.ReadArrayHeaderBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "SpanDerivedPrimaryTags")
				return
			}
			if cap(z.SpanDerivedPrimaryTags) >= int(zb0004) {
				z.SpanDerivedPrimaryTags = (z.SpanDerivedPrimaryTags)[:zb0004]
			} else {
				z.SpanDerivedPrimaryTags = make([]string, zb0004)
			}
			for za0002 := range z.SpanDerivedPrimaryTags {
				z.SpanDerivedPrimaryTags[za0002], bts, err = msgp.ReadStringBytes(bts)
				if err != nil {
					err = msgp.WrapError(err, "SpanDerivedPrimaryTags", za0002)
					return
				}
			}
		default:
			bts, err = msgp.Skip(bts)
			if err != nil {
				err = msgp.WrapError(err)
				return
			}
		}
	}
	o = bts
	return
}

// Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (z *ClientGroupedStats) Msgsize() (s int) {
	s = 3 + 8 + msgp.StringPrefixSize + len(z.Service) + 5 + msgp.StringPrefixSize + len(z.Name) + 9 + msgp.StringPrefixSize + len(z.Resource) + 15 + msgp.Uint32Size + 5 + msgp.StringPrefixSize + len(z.Type) + 7 + msgp.StringPrefixSize + len(z.DBType) + 5 + msgp.Uint64Size + 7 + msgp.Uint64Size + 9 + msgp.Uint64Size + 10 + msgp.BytesPrefixSize + len(z.OkSummary) + 13 + msgp.BytesPrefixSize + len(z.ErrorSummary) + 11 + msgp.BoolSize + 13 + msgp.Uint64Size + 9 + msgp.StringPrefixSize + len(z.SpanKind) + 9 + msgp.ArrayHeaderSize
	for za0001 := range z.PeerTags {
		s += msgp.StringPrefixSize + len(z.PeerTags[za0001])
	}
	s += 12 + msgp.Int32Size + 15 + msgp.StringPrefixSize + len(z.GRPCStatusCode) + 11 + msgp.StringPrefixSize + len(z.HTTPMethod) + 13 + msgp.StringPrefixSize + len(z.HTTPEndpoint) + 8 + msgp.StringPrefixSize + len(z.ServiceSource) + 23 + msgp.ArrayHeaderSize
	for za0002 := range z.SpanDerivedPrimaryTags {
		s += msgp.StringPrefixSize + len(z.SpanDerivedPrimaryTags[za0002])
	}
	return
}

// DecodeMsg implements msgp.Decodable
func (z *ClientStatsBucket) DecodeMsg(dc *msgp.Reader) (err error) {
	var field []byte
	_ = field
	var zb0001 uint32
	zb0001, err = dc.ReadMapHeader()
	if err != nil {
		err = msgp.WrapError(err)
		return
	}
	for zb0001 > 0 {
		zb0001--
		field, err = dc.ReadMapKeyPtr()
		if err != nil {
			err = msgp.WrapError(err)
			return
		}
		switch msgp.UnsafeString(field) {
		case "Start":
			z.Start, err = dc.ReadUint64()
			if err != nil {
				err = msgp.WrapError(err, "Start")
				return
			}
		case "Duration":
			z.Duration, err = dc.ReadUint64()
			if err != nil {
				err = msgp.WrapError(err, "Duration")
				return
			}
		case "Stats":
			var zb0002 uint32
			zb0002, err = dc.ReadArrayHeader()
			if err != nil {
				err = msgp.WrapError(err, "Stats")
				return
			}
			if cap(z.Stats) >= int(zb0002) {
				z.Stats = (z.Stats)[:zb0002]
			} else {
				z.Stats = make([]*ClientGroupedStats, zb0002)
			}
			for za0001 := range z.Stats {
				if dc.IsNil() {
					err = dc.ReadNil()
					if err != nil {
						err = msgp.WrapError(err, "Stats", za0001)
						return
					}
					z.Stats[za0001] = nil
				} else {
					if z.Stats[za0001] == nil {
						z.Stats[za0001] = new(ClientGroupedStats)
					}
					err = z.Stats[za0001].DecodeMsg(dc)
					if err != nil {
						err = msgp.WrapError(err, "Stats", za0001)
						return
					}
				}
			}
		case "AgentTimeShift":
			z.AgentTimeShift, err = dc.ReadInt64()
			if err != nil {
				err = msgp.WrapError(err, "AgentTimeShift")
				return
			}
		default:
			err = dc.Skip()
			if err != nil {
				err = msgp.WrapError(err)
				return
			}
		}
	}
	return
}

// EncodeMsg implements msgp.Encodable
func (z *ClientStatsBucket) EncodeMsg(en *msgp.Writer) (err error) {
	// check for omitted fields
	zb0001Len := uint32(4)
	var zb0001Mask uint8 /* 4 bits */
	_ = zb0001Mask
	if z.Stats == nil {
		zb0001Len--
		zb0001Mask |= 0x4
	}
	// variable map header, size zb0001Len
	err = en.Append(0x80 | uint8(zb0001Len))
	if err != nil {
		return
	}

	// skip if no fields are to be emitted
	if zb0001Len != 0 {
		// write "Start"
		err = en.Append(0xa5, 0x53, 0x74, 0x61, 0x72, 0x74)
		if err != nil {
			return
		}
		err = en.WriteUint64(z.Start)
		if err != nil {
			err = msgp.WrapError(err, "Start")
			return
		}
		// write "Duration"
		err = en.Append(0xa8, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e)
		if err != nil {
			return
		}
		err = en.WriteUint64(z.Duration)
		if err != nil {
			err = msgp.WrapError(err, "Duration")
			return
		}
		if (zb0001Mask & 0x4) == 0 { // if not omitted
			// write "Stats"
			err = en.Append(0xa5, 0x53, 0x74, 0x61, 0x74, 0x73)
			if err != nil {
				return
			}
			err = en.WriteArrayHeader(uint32(len(z.Stats)))
			if err != nil {
				err = msgp.WrapError(err, "Stats")
				return
			}
			for za0001 := range z.Stats {
				if z.Stats[za0001] == nil {
					err = en.WriteNil()
					if err != nil {
						return
					}
				} else {
					err = z.Stats[za0001].EncodeMsg(en)
					if err != nil {
						err = msgp.WrapError(err, "Stats", za0001)
						return
					}
				}
			}
		}
		// write "AgentTimeShift"
		err = en.Append(0xae, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x68, 0x69, 0x66, 0x74)
		if err != nil {
			return
		}
		err = en.WriteInt64(z.AgentTimeShift)
		if err != nil {
			err = msgp.WrapError(err, "AgentTimeShift")
			return
		}
	}
	return
}

// MarshalMsg implements msgp.Marshaler
func (z *ClientStatsBucket) MarshalMsg(b []byte) (o []byte, err error) {
	o = msgp.Require(b, z.Msgsize())
	// check for omitted fields
	zb0001Len := uint32(4)
	var zb0001Mask uint8 /* 4 bits */
	_ = zb0001Mask
	if z.Stats == nil {
		zb0001Len--
		zb0001Mask |= 0x4
	}
	// variable map header, size zb0001Len
	o = append(o, 0x80|uint8(zb0001Len))

	// skip if no fields are to be emitted
	if zb0001Len != 0 {
		// string "Start"
		o = append(o, 0xa5, 0x53, 0x74, 0x61, 0x72, 0x74)
		o = msgp.AppendUint64(o, z.Start)
		// string "Duration"
		o = append(o, 0xa8, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e)
		o = msgp.AppendUint64(o, z.Duration)
		if (zb0001Mask & 0x4) == 0 { // if not omitted
			// string "Stats"
			o = append(o, 0xa5, 0x53, 0x74, 0x61, 0x74, 0x73)
			o = msgp.AppendArrayHeader(o, uint32(len(z.Stats)))
			for za0001 := range z.Stats {
				if z.Stats[za0001] == nil {
					o = msgp.AppendNil(o)
				} else {
					o, err = z.Stats[za0001].MarshalMsg(o)
					if err != nil {
						err = msgp.WrapError(err, "Stats", za0001)
						return
					}
				}
			}
		}
		// string "AgentTimeShift"
		o = append(o, 0xae, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x68, 0x69, 0x66, 0x74)
		o = msgp.AppendInt64(o, z.AgentTimeShift)
	}
	return
}

// UnmarshalMsg implements msgp.Unmarshaler
func (z *ClientStatsBucket) UnmarshalMsg(bts []byte) (o []byte, err error) {
	var field []byte
	_ = field
	var zb0001 uint32
	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
	if err != nil {
		err = msgp.WrapError(err)
		return
	}
	for zb0001 > 0 {
		zb0001--
		field, bts, err = msgp.ReadMapKeyZC(bts)
		if err != nil {
			err = msgp.WrapError(err)
			return
		}
		switch msgp.UnsafeString(field) {
		case "Start":
			z.Start, bts, err = msgp.ReadUint64Bytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "Start")
				return
			}
		case "Duration":
			z.Duration, bts, err = msgp.ReadUint64Bytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "Duration")
				return
			}
		case "Stats":
			var zb0002 uint32
			zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "Stats")
				return
			}
			if cap(z.Stats) >= int(zb0002) {
				z.Stats = (z.Stats)[:zb0002]
			} else {
				z.Stats = make([]*ClientGroupedStats, zb0002)
			}
			for za0001 := range z.Stats {
				if msgp.IsNil(bts) {
					bts, err = msgp.ReadNilBytes(bts)
					if err != nil {
						return
					}
					z.Stats[za0001] = nil
				} else {
					if z.Stats[za0001] == nil {
						z.Stats[za0001] = new(ClientGroupedStats)
					}
					bts, err = z.Stats[za0001].UnmarshalMsg(bts)
					if err != nil {
						err = msgp.WrapError(err, "Stats", za0001)
						return
					}
				}
			}
		case "AgentTimeShift":
			z.AgentTimeShift, bts, err = msgp.ReadInt64Bytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "AgentTimeShift")
				return
			}
		default:
			bts, err = msgp.Skip(bts)
			if err != nil {
				err = msgp.WrapError(err)
				return
			}
		}
	}
	o = bts
	return
}

// Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (z *ClientStatsBucket) Msgsize() (s int) {
	s = 1 + 6 + msgp.Uint64Size + 9 + msgp.Uint64Size + 6 + msgp.ArrayHeaderSize
	for za0001 := range z.Stats {
		if z.Stats[za0001] == nil {
			s += msgp.NilSize
		} else {
			s += z.Stats[za0001].Msgsize()
		}
	}
	s += 15 + msgp.Int64Size
	return
}

// DecodeMsg implements msgp.Decodable
func (z *ClientStatsPayload) DecodeMsg(dc *msgp.Reader) (err error) {
	var field []byte
	_ = field
	var zb0001 uint32
	zb0001, err = dc.ReadMapHeader()
	if err != nil {
		err = msgp.WrapError(err)
		return
	}
	for zb0001 > 0 {
		zb0001--
		field, err = dc.ReadMapKeyPtr()
		if err != nil {
			err = msgp.WrapError(err)
			return
		}
		switch msgp.UnsafeString(field) {
		case "Hostname":
			z.Hostname, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "Hostname")
				return
			}
		case "Env":
			z.Env, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "Env")
				return
			}
		case "Version":
			z.Version, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "Version")
				return
			}
		case "Stats":
			var zb0002 uint32
			zb0002, err = dc.ReadArrayHeader()
			if err != nil {
				err = msgp.WrapError(err, "Stats")
				return
			}
			if cap(z.Stats) >= int(zb0002) {
				z.Stats = (z.Stats)[:zb0002]
			} else {
				z.Stats = make([]*ClientStatsBucket, zb0002)
			}
			for za0001 := range z.Stats {
				if dc.IsNil() {
					err = dc.ReadNil()
					if err != nil {
						err = msgp.WrapError(err, "Stats", za0001)
						return
					}
					z.Stats[za0001] = nil
				} else {
					if z.Stats[za0001] == nil {
						z.Stats[za0001] = new(ClientStatsBucket)
					}
					err = z.Stats[za0001].DecodeMsg(dc)
					if err != nil {
						err = msgp.WrapError(err, "Stats", za0001)
						return
					}
				}
			}
		case "Lang":
			z.Lang, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "Lang")
				return
			}
		case "TracerVersion":
			z.TracerVersion, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "TracerVersion")
				return
			}
		case "RuntimeID":
			z.RuntimeID, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "RuntimeID")
				return
			}
		case "Sequence":
			z.Sequence, err = dc.ReadUint64()
			if err != nil {
				err = msgp.WrapError(err, "Sequence")
				return
			}
		case "AgentAggregation":
			z.AgentAggregation, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "AgentAggregation")
				return
			}
		case "Service":
			z.Service, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "Service")
				return
			}
		case "ContainerID":
			z.ContainerID, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "ContainerID")
				return
			}
		case "Tags":
			var zb0003 uint32
			zb0003, err = dc.ReadArrayHeader()
			if err != nil {
				err = msgp.WrapError(err, "Tags")
				return
			}
			if cap(z.Tags) >= int(zb0003) {
				z.Tags = (z.Tags)[:zb0003]
			} else {
				z.Tags = make([]string, zb0003)
			}
			for za0002 := range z.Tags {
				z.Tags[za0002], err = dc.ReadString()
				if err != nil {
					err = msgp.WrapError(err, "Tags", za0002)
					return
				}
			}
		case "GitCommitSha":
			z.GitCommitSha, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "GitCommitSha")
				return
			}
		case "ImageTag":
			z.ImageTag, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "ImageTag")
				return
			}
		case "ProcessTagsHash":
			z.ProcessTagsHash, err = dc.ReadUint64()
			if err != nil {
				err = msgp.WrapError(err, "ProcessTagsHash")
				return
			}
		case "ProcessTags":
			z.ProcessTags, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "ProcessTags")
				return
			}
		default:
			err = dc.Skip()
			if err != nil {
				err = msgp.WrapError(err)
				return
			}
		}
	}
	return
}

// EncodeMsg implements msgp.Encodable
func (z *ClientStatsPayload) EncodeMsg(en *msgp.Writer) (err error) {
	// check for omitted fields
	zb0001Len := uint32(16)
	var zb0001Mask uint16 /* 16 bits */
	_ = zb0001Mask
	if z.Stats == nil {
		zb0001Len--
		zb0001Mask |= 0x8
	}
	// variable map header, size zb0001Len
	err = en.WriteMapHeader(zb0001Len)
	if err != nil {
		return
	}

	// skip if no fields are to be emitted
	if zb0001Len != 0 {
		// write "Hostname"
		err = en.Append(0xa8, 0x48, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65)
		if err != nil {
			return
		}
		err = en.WriteString(z.Hostname)
		if err != nil {
			err = msgp.WrapError(err, "Hostname")
			return
		}
		// write "Env"
		err = en.Append(0xa3, 0x45, 0x6e, 0x76)
		if err != nil {
			return
		}
		err = en.WriteString(z.Env)
		if err != nil {
			err = msgp.WrapError(err, "Env")
			return
		}
		// write "Version"
		err = en.Append(0xa7, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e)
		if err != nil {
			return
		}
		err = en.WriteString(z.Version)
		if err != nil {
			err = msgp.WrapError(err, "Version")
			return
		}
		if (zb0001Mask & 0x8) == 0 { // if not omitted
			// write "Stats"
			err = en.Append(0xa5, 0x53, 0x74, 0x61, 0x74, 0x73)
			if err != nil {
				return
			}
			err = en.WriteArrayHeader(uint32(len(z.Stats)))
			if err != nil {
				err = msgp.WrapError(err, "Stats")
				return
			}
			for za0001 := range z.Stats {
				if z.Stats[za0001] == nil {
					err = en.WriteNil()
					if err != nil {
						return
					}
				} else {
					err = z.Stats[za0001].EncodeMsg(en)
					if err != nil {
						err = msgp.WrapError(err, "Stats", za0001)
						return
					}
				}
			}
		}
		// write "Lang"
		err = en.Append(0xa4, 0x4c, 0x61, 0x6e, 0x67)
		if err != nil {
			return
		}
		err = en.WriteString(z.Lang)
		if err != nil {
			err = msgp.WrapError(err, "Lang")
			return
		}
		// write "TracerVersion"
		err = en.Append(0xad, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e)
		if err != nil {
			return
		}
		err = en.WriteString(z.TracerVersion)
		if err != nil {
			err = msgp.WrapError(err, "TracerVersion")
			return
		}
		// write "RuntimeID"
		err = en.Append(0xa9, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x49, 0x44)
		if err != nil {
			return
		}
		err = en.WriteString(z.RuntimeID)
		if err != nil {
			err = msgp.WrapError(err, "RuntimeID")
			return
		}
		// write "Sequence"
		err = en.Append(0xa8, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65)
		if err != nil {
			return
		}
		err = en.WriteUint64(z.Sequence)
		if err != nil {
			err = msgp.WrapError(err, "Sequence")
			return
		}
		// write "AgentAggregation"
		err = en.Append(0xb0, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e)
		if err != nil {
			return
		}
		err = en.WriteString(z.AgentAggregation)
		if err != nil {
			err = msgp.WrapError(err, "AgentAggregation")
			return
		}
		// write "Service"
		err = en.Append(0xa7, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65)
		if err != nil {
			return
		}
		err = en.WriteString(z.Service)
		if err != nil {
			err = msgp.WrapError(err, "Service")
			return
		}
		// write "ContainerID"
		err = en.Append(0xab, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x44)
		if err != nil {
			return
		}
		err = en.WriteString(z.ContainerID)
		if err != nil {
			err = msgp.WrapError(err, "ContainerID")
			return
		}
		// write "Tags"
		err = en.Append(0xa4, 0x54, 0x61, 0x67, 0x73)
		if err != nil {
			return
		}
		err = en.WriteArrayHeader(uint32(len(z.Tags)))
		if err != nil {
			err = msgp.WrapError(err, "Tags")
			return
		}
		for za0002 := range z.Tags {
			err = en.WriteString(z.Tags[za0002])
			if err != nil {
				err = msgp.WrapError(err, "Tags", za0002)
				return
			}
		}
		// write "GitCommitSha"
		err = en.Append(0xac, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x68, 0x61)
		if err != nil {
			return
		}
		err = en.WriteString(z.GitCommitSha)
		if err != nil {
			err = msgp.WrapError(err, "GitCommitSha")
			return
		}
		// write "ImageTag"
		err = en.Append(0xa8, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x61, 0x67)
		if err != nil {
			return
		}
		err = en.WriteString(z.ImageTag)
		if err != nil {
			err = msgp.WrapError(err, "ImageTag")
			return
		}
		// write "ProcessTagsHash"
		err = en.Append(0xaf, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x54, 0x61, 0x67, 0x73, 0x48, 0x61, 0x73, 0x68)
		if err != nil {
			return
		}
		err = en.WriteUint64(z.ProcessTagsHash)
		if err != nil {
			err = msgp.WrapError(err, "ProcessTagsHash")
			return
		}
		// write "ProcessTags"
		err = en.Append(0xab, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x54, 0x61, 0x67, 0x73)
		if err != nil {
			return
		}
		err = en.WriteString(z.ProcessTags)
		if err != nil {
			err = msgp.WrapError(err, "ProcessTags")
			return
		}
	}
	return
}

// MarshalMsg implements msgp.Marshaler
func (z *ClientStatsPayload) MarshalMsg(b []byte) (o []byte, err error) {
	o = msgp.Require(b, z.Msgsize())
	// check for omitted fields
	zb0001Len := uint32(16)
	var zb0001Mask uint16 /* 16 bits */
	_ = zb0001Mask
	if z.Stats == nil {
		zb0001Len--
		zb0001Mask |= 0x8
	}
	// variable map header, size zb0001Len
	o = msgp.AppendMapHeader(o, zb0001Len)

	// skip if no fields are to be emitted
	if zb0001Len != 0 {
		// string "Hostname"
		o = append(o, 0xa8, 0x48, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65)
		o = msgp.AppendString(o, z.Hostname)
		// string "Env"
		o = append(o, 0xa3, 0x45, 0x6e, 0x76)
		o = msgp.AppendString(o, z.Env)
		// string "Version"
		o = append(o, 0xa7, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e)
		o = msgp.AppendString(o, z.Version)
		if (zb0001Mask & 0x8) == 0 { // if not omitted
			// string "Stats"
			o = append(o, 0xa5, 0x53, 0x74, 0x61, 0x74, 0x73)
			o = msgp.AppendArrayHeader(o, uint32(len(z.Stats)))
			for za0001 := range z.Stats {
				if z.Stats[za0001] == nil {
					o = msgp.AppendNil(o)
				} else {
					o, err = z.Stats[za0001].MarshalMsg(o)
					if err != nil {
						err = msgp.WrapError(err, "Stats", za0001)
						return
					}
				}
			}
		}
		// string "Lang"
		o = append(o, 0xa4, 0x4c, 0x61, 0x6e, 0x67)
		o = msgp.AppendString(o, z.Lang)
		// string "TracerVersion"
		o = append(o, 0xad, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e)
		o = msgp.AppendString(o, z.TracerVersion)
		// string "RuntimeID"
		o = append(o, 0xa9, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x49, 0x44)
		o = msgp.AppendString(o, z.RuntimeID)
		// string "Sequence"
		o = append(o, 0xa8, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65)
		o = msgp.AppendUint64(o, z.Sequence)
		// string "AgentAggregation"
		o = append(o, 0xb0, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e)
		o = msgp.AppendString(o, z.AgentAggregation)
		// string "Service"
		o = append(o, 0xa7, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65)
		o = msgp.AppendString(o, z.Service)
		// string "ContainerID"
		o = append(o, 0xab, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x44)
		o = msgp.AppendString(o, z.ContainerID)
		// string "Tags"
		o = append(o, 0xa4, 0x54, 0x61, 0x67, 0x73)
		o = msgp.AppendArrayHeader(o, uint32(len(z.Tags)))
		for za0002 := range z.Tags {
			o = msgp.AppendString(o, z.Tags[za0002])
		}
		// string "GitCommitSha"
		o = append(o, 0xac, 0x47, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x68, 0x61)
		o = msgp.AppendString(o, z.GitCommitSha)
		// string "ImageTag"
		o = append(o, 0xa8, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x61, 0x67)
		o = msgp.AppendString(o, z.ImageTag)
		// string "ProcessTagsHash"
		o = append(o, 0xaf, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x54, 0x61, 0x67, 0x73, 0x48, 0x61, 0x73, 0x68)
		o = msgp.AppendUint64(o, z.ProcessTagsHash)
		// string "ProcessTags"
		o = append(o, 0xab, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x54, 0x61, 0x67, 0x73)
		o = msgp.AppendString(o, z.ProcessTags)
	}
	return
}

// UnmarshalMsg implements msgp.Unmarshaler
func (z *ClientStatsPayload) UnmarshalMsg(bts []byte) (o []byte, err error) {
	var field []byte
	_ = field
	var zb0001 uint32
	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
	if err != nil {
		err = msgp.WrapError(err)
		return
	}
	for zb0001 > 0 {
		zb0001--
		field, bts, err = msgp.ReadMapKeyZC(bts)
		if err != nil {
			err = msgp.WrapError(err)
			return
		}
		switch msgp.UnsafeString(field) {
		case "Hostname":
			z.Hostname, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "Hostname")
				return
			}
		case "Env":
			z.Env, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "Env")
				return
			}
		case "Version":
			z.Version, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "Version")
				return
			}
		case "Stats":
			var zb0002 uint32
			zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "Stats")
				return
			}
			if cap(z.Stats) >= int(zb0002) {
				z.Stats = (z.Stats)[:zb0002]
			} else {
				z.Stats = make([]*ClientStatsBucket, zb0002)
			}
			for za0001 := range z.Stats {
				if msgp.IsNil(bts) {
					bts, err = msgp.ReadNilBytes(bts)
					if err != nil {
						return
					}
					z.Stats[za0001] = nil
				} else {
					if z.Stats[za0001] == nil {
						z.Stats[za0001] = new(ClientStatsBucket)
					}
					bts, err = z.Stats[za0001].UnmarshalMsg(bts)
					if err != nil {
						err = msgp.WrapError(err, "Stats", za0001)
						return
					}
				}
			}
		case "Lang":
			z.Lang, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "Lang")
				return
			}
		case "TracerVersion":
			z.TracerVersion, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "TracerVersion")
				return
			}
		case "RuntimeID":
			z.RuntimeID, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "RuntimeID")
				return
			}
		case "Sequence":
			z.Sequence, bts, err = msgp.ReadUint64Bytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "Sequence")
				return
			}
		case "AgentAggregation":
			z.AgentAggregation, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "AgentAggregation")
				return
			}
		case "Service":
			z.Service, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "Service")
				return
			}
		case "ContainerID":
			z.ContainerID, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "ContainerID")
				return
			}
		case "Tags":
			var zb0003 uint32
			zb0003, bts, err = msgp.ReadArrayHeaderBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "Tags")
				return
			}
			if cap(z.Tags) >= int(zb0003) {
				z.Tags = (z.Tags)[:zb0003]
			} else {
				z.Tags = make([]string, zb0003)
			}
			for za0002 := range z.Tags {
				z.Tags[za0002], bts, err = msgp.ReadStringBytes(bts)
				if err != nil {
					err = msgp.WrapError(err, "Tags", za0002)
					return
				}
			}
		case "GitCommitSha":
			z.GitCommitSha, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "GitCommitSha")
				return
			}
		case "ImageTag":
			z.ImageTag, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "ImageTag")
				return
			}
		case "ProcessTagsHash":
			z.ProcessTagsHash, bts, err = msgp.ReadUint64Bytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "ProcessTagsHash")
				return
			}
		case "ProcessTags":
			z.ProcessTags, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "ProcessTags")
				return
			}
		default:
			bts, err = msgp.Skip(bts)
			if err != nil {
				err = msgp.WrapError(err)
				return
			}
		}
	}
	o = bts
	return
}

// Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (z *ClientStatsPayload) Msgsize() (s int) {
	s = 3 + 9 + msgp.StringPrefixSize + len(z.Hostname) + 4 + msgp.StringPrefixSize + len(z.Env) + 8 + msgp.StringPrefixSize + len(z.Version) + 6 + msgp.ArrayHeaderSize
	for za0001 := range z.Stats {
		if z.Stats[za0001] == nil {
			s += msgp.NilSize
		} else {
			s += z.Stats[za0001].Msgsize()
		}
	}
	s += 5 + msgp.StringPrefixSize + len(z.Lang) + 14 + msgp.StringPrefixSize + len(z.TracerVersion) + 10 + msgp.StringPrefixSize + len(z.RuntimeID) + 9 + msgp.Uint64Size + 17 + msgp.StringPrefixSize + len(z.AgentAggregation) + 8 + msgp.StringPrefixSize + len(z.Service) + 12 + msgp.StringPrefixSize + len(z.ContainerID) + 5 + msgp.ArrayHeaderSize
	for za0002 := range z.Tags {
		s += msgp.StringPrefixSize + len(z.Tags[za0002])
	}
	s += 13 + msgp.StringPrefixSize + len(z.GitCommitSha) + 9 + msgp.StringPrefixSize + len(z.ImageTag) + 16 + msgp.Uint64Size + 12 + msgp.StringPrefixSize + len(z.ProcessTags)
	return
}

// DecodeMsg implements msgp.Decodable
func (z *StatsPayload) DecodeMsg(dc *msgp.Reader) (err error) {
	var field []byte
	_ = field
	var zb0001 uint32
	zb0001, err = dc.ReadMapHeader()
	if err != nil {
		err = msgp.WrapError(err)
		return
	}
	for zb0001 > 0 {
		zb0001--
		field, err = dc.ReadMapKeyPtr()
		if err != nil {
			err = msgp.WrapError(err)
			return
		}
		switch msgp.UnsafeString(field) {
		case "AgentHostname":
			z.AgentHostname, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "AgentHostname")
				return
			}
		case "AgentEnv":
			z.AgentEnv, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "AgentEnv")
				return
			}
		case "Stats":
			var zb0002 uint32
			zb0002, err = dc.ReadArrayHeader()
			if err != nil {
				err = msgp.WrapError(err, "Stats")
				return
			}
			if cap(z.Stats) >= int(zb0002) {
				z.Stats = (z.Stats)[:zb0002]
			} else {
				z.Stats = make([]*ClientStatsPayload, zb0002)
			}
			for za0001 := range z.Stats {
				if dc.IsNil() {
					err = dc.ReadNil()
					if err != nil {
						err = msgp.WrapError(err, "Stats", za0001)
						return
					}
					z.Stats[za0001] = nil
				} else {
					if z.Stats[za0001] == nil {
						z.Stats[za0001] = new(ClientStatsPayload)
					}
					err = z.Stats[za0001].DecodeMsg(dc)
					if err != nil {
						err = msgp.WrapError(err, "Stats", za0001)
						return
					}
				}
			}
		case "AgentVersion":
			z.AgentVersion, err = dc.ReadString()
			if err != nil {
				err = msgp.WrapError(err, "AgentVersion")
				return
			}
		case "ClientComputed":
			z.ClientComputed, err = dc.ReadBool()
			if err != nil {
				err = msgp.WrapError(err, "ClientComputed")
				return
			}
		case "SplitPayload":
			z.SplitPayload, err = dc.ReadBool()
			if err != nil {
				err = msgp.WrapError(err, "SplitPayload")
				return
			}
		default:
			err = dc.Skip()
			if err != nil {
				err = msgp.WrapError(err)
				return
			}
		}
	}
	return
}

// EncodeMsg implements msgp.Encodable
func (z *StatsPayload) EncodeMsg(en *msgp.Writer) (err error) {
	// check for omitted fields
	zb0001Len := uint32(6)
	var zb0001Mask uint8 /* 6 bits */
	_ = zb0001Mask
	if z.Stats == nil {
		zb0001Len--
		zb0001Mask |= 0x4
	}
	// variable map header, size zb0001Len
	err = en.Append(0x80 | uint8(zb0001Len))
	if err != nil {
		return
	}

	// skip if no fields are to be emitted
	if zb0001Len != 0 {
		// write "AgentHostname"
		err = en.Append(0xad, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x48, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65)
		if err != nil {
			return
		}
		err = en.WriteString(z.AgentHostname)
		if err != nil {
			err = msgp.WrapError(err, "AgentHostname")
			return
		}
		// write "AgentEnv"
		err = en.Append(0xa8, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x76)
		if err != nil {
			return
		}
		err = en.WriteString(z.AgentEnv)
		if err != nil {
			err = msgp.WrapError(err, "AgentEnv")
			return
		}
		if (zb0001Mask & 0x4) == 0 { // if not omitted
			// write "Stats"
			err = en.Append(0xa5, 0x53, 0x74, 0x61, 0x74, 0x73)
			if err != nil {
				return
			}
			err = en.WriteArrayHeader(uint32(len(z.Stats)))
			if err != nil {
				err = msgp.WrapError(err, "Stats")
				return
			}
			for za0001 := range z.Stats {
				if z.Stats[za0001] == nil {
					err = en.WriteNil()
					if err != nil {
						return
					}
				} else {
					err = z.Stats[za0001].EncodeMsg(en)
					if err != nil {
						err = msgp.WrapError(err, "Stats", za0001)
						return
					}
				}
			}
		}
		// write "AgentVersion"
		err = en.Append(0xac, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e)
		if err != nil {
			return
		}
		err = en.WriteString(z.AgentVersion)
		if err != nil {
			err = msgp.WrapError(err, "AgentVersion")
			return
		}
		// write "ClientComputed"
		err = en.Append(0xae, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x64)
		if err != nil {
			return
		}
		err = en.WriteBool(z.ClientComputed)
		if err != nil {
			err = msgp.WrapError(err, "ClientComputed")
			return
		}
		// write "SplitPayload"
		err = en.Append(0xac, 0x53, 0x70, 0x6c, 0x69, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64)
		if err != nil {
			return
		}
		err = en.WriteBool(z.SplitPayload)
		if err != nil {
			err = msgp.WrapError(err, "SplitPayload")
			return
		}
	}
	return
}

// MarshalMsg implements msgp.Marshaler
func (z *StatsPayload) MarshalMsg(b []byte) (o []byte, err error) {
	o = msgp.Require(b, z.Msgsize())
	// check for omitted fields
	zb0001Len := uint32(6)
	var zb0001Mask uint8 /* 6 bits */
	_ = zb0001Mask
	if z.Stats == nil {
		zb0001Len--
		zb0001Mask |= 0x4
	}
	// variable map header, size zb0001Len
	o = append(o, 0x80|uint8(zb0001Len))

	// skip if no fields are to be emitted
	if zb0001Len != 0 {
		// string "AgentHostname"
		o = append(o, 0xad, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x48, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65)
		o = msgp.AppendString(o, z.AgentHostname)
		// string "AgentEnv"
		o = append(o, 0xa8, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x76)
		o = msgp.AppendString(o, z.AgentEnv)
		if (zb0001Mask & 0x4) == 0 { // if not omitted
			// string "Stats"
			o = append(o, 0xa5, 0x53, 0x74, 0x61, 0x74, 0x73)
			o = msgp.AppendArrayHeader(o, uint32(len(z.Stats)))
			for za0001 := range z.Stats {
				if z.Stats[za0001] == nil {
					o = msgp.AppendNil(o)
				} else {
					o, err = z.Stats[za0001].MarshalMsg(o)
					if err != nil {
						err = msgp.WrapError(err, "Stats", za0001)
						return
					}
				}
			}
		}
		// string "AgentVersion"
		o = append(o, 0xac, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e)
		o = msgp.AppendString(o, z.AgentVersion)
		// string "ClientComputed"
		o = append(o, 0xae, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x64)
		o = msgp.AppendBool(o, z.ClientComputed)
		// string "SplitPayload"
		o = append(o, 0xac, 0x53, 0x70, 0x6c, 0x69, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64)
		o = msgp.AppendBool(o, z.SplitPayload)
	}
	return
}

// UnmarshalMsg implements msgp.Unmarshaler
func (z *StatsPayload) UnmarshalMsg(bts []byte) (o []byte, err error) {
	var field []byte
	_ = field
	var zb0001 uint32
	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
	if err != nil {
		err = msgp.WrapError(err)
		return
	}
	for zb0001 > 0 {
		zb0001--
		field, bts, err = msgp.ReadMapKeyZC(bts)
		if err != nil {
			err = msgp.WrapError(err)
			return
		}
		switch msgp.UnsafeString(field) {
		case "AgentHostname":
			z.AgentHostname, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "AgentHostname")
				return
			}
		case "AgentEnv":
			z.AgentEnv, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "AgentEnv")
				return
			}
		case "Stats":
			var zb0002 uint32
			zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "Stats")
				return
			}
			if cap(z.Stats) >= int(zb0002) {
				z.Stats = (z.Stats)[:zb0002]
			} else {
				z.Stats = make([]*ClientStatsPayload, zb0002)
			}
			for za0001 := range z.Stats {
				if msgp.IsNil(bts) {
					bts, err = msgp.ReadNilBytes(bts)
					if err != nil {
						return
					}
					z.Stats[za0001] = nil
				} else {
					if z.Stats[za0001] == nil {
						z.Stats[za0001] = new(ClientStatsPayload)
					}
					bts, err = z.Stats[za0001].UnmarshalMsg(bts)
					if err != nil {
						err = msgp.WrapError(err, "Stats", za0001)
						return
					}
				}
			}
		case "AgentVersion":
			z.AgentVersion, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "AgentVersion")
				return
			}
		case "ClientComputed":
			z.ClientComputed, bts, err = msgp.ReadBoolBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "ClientComputed")
				return
			}
		case "SplitPayload":
			z.SplitPayload, bts, err = msgp.ReadBoolBytes(bts)
			if err != nil {
				err = msgp.WrapError(err, "SplitPayload")
				return
			}
		default:
			bts, err = msgp.Skip(bts)
			if err != nil {
				err = msgp.WrapError(err)
				return
			}
		}
	}
	o = bts
	return
}

// Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (z *StatsPayload) Msgsize() (s int) {
	s = 1 + 14 + msgp.StringPrefixSize + len(z.AgentHostname) + 9 + msgp.StringPrefixSize + len(z.AgentEnv) + 6 + msgp.ArrayHeaderSize
	for za0001 := range z.Stats {
		if z.Stats[za0001] == nil {
			s += msgp.NilSize
		} else {
			s += z.Stats[za0001].Msgsize()
		}
	}
	s += 13 + msgp.StringPrefixSize + len(z.AgentVersion) + 15 + msgp.BoolSize + 13 + msgp.BoolSize
	return
}

// DecodeMsg implements msgp.Decodable
func (z *TraceRootFlag) DecodeMsg(dc *msgp.Reader) (err error) {
	{
		var zb0001 int32
		zb0001, err = dc.ReadInt32()
		if err != nil {
			err = msgp.WrapError(err)
			return
		}
		(*z) = TraceRootFlag(zb0001)
	}
	return
}

// EncodeMsg implements msgp.Encodable
func (z TraceRootFlag) EncodeMsg(en *msgp.Writer) (err error) {
	err = en.WriteInt32(int32(z))
	if err != nil {
		err = msgp.WrapError(err)
		return
	}
	return
}

// MarshalMsg implements msgp.Marshaler
func (z TraceRootFlag) MarshalMsg(b []byte) (o []byte, err error) {
	o = msgp.Require(b, z.Msgsize())
	o = msgp.AppendInt32(o, int32(z))
	return
}

// UnmarshalMsg implements msgp.Unmarshaler
func (z *TraceRootFlag) UnmarshalMsg(bts []byte) (o []byte, err error) {
	{
		var zb0001 int32
		zb0001, bts, err = msgp.ReadInt32Bytes(bts)
		if err != nil {
			err = msgp.WrapError(err)
			return
		}
		(*z) = TraceRootFlag(zb0001)
	}
	o = bts
	return
}

// Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (z TraceRootFlag) Msgsize() (s int) {
	s = msgp.Int32Size
	return
}

// DecodeMsg implements msgp.Decodable
func (z *Trilean) DecodeMsg(dc *msgp.Reader) (err error) {
	{
		var zb0001 int32
		zb0001, err = dc.ReadInt32()
		if err != nil {
			err = msgp.WrapError(err)
			return
		}
		(*z) = Trilean(zb0001)
	}
	return
}

// EncodeMsg implements msgp.Encodable
func (z Trilean) EncodeMsg(en *msgp.Writer) (err error) {
	err = en.WriteInt32(int32(z))
	if err != nil {
		err = msgp.WrapError(err)
		return
	}
	return
}

// MarshalMsg implements msgp.Marshaler
func (z Trilean) MarshalMsg(b []byte) (o []byte, err error) {
	o = msgp.Require(b, z.Msgsize())
	o = msgp.AppendInt32(o, int32(z))
	return
}

// UnmarshalMsg implements msgp.Unmarshaler
func (z *Trilean) UnmarshalMsg(bts []byte) (o []byte, err error) {
	{
		var zb0001 int32
		zb0001, bts, err = msgp.ReadInt32Bytes(bts)
		if err != nil {
			err = msgp.WrapError(err)
			return
		}
		(*z) = Trilean(zb0001)
	}
	o = bts
	return
}

// Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (z Trilean) Msgsize() (s int) {
	s = msgp.Int32Size
	return
}
