MCPcopy
hub / github.com/grafana/tempo / estimateEventsSize

Function estimateEventsSize

tempodb/encoding/vparquet3/create.go:285–291  ·  view source on GitHub ↗
(events []Event)

Source from the content-addressed store, hash-verified

283}
284
285func estimateEventsSize(events []Event) (size int) {
286 for _, e := range events {
287 size += 4 // 4 event lvl fields
288 size += 4 * len(e.Attrs) // 2 event attribute fields
289 }
290 return
291}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected