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

Function sovPush

pkg/ingest/encoding.go:148–150  ·  view source on GitHub ↗

sovPush calculates the size of varint-encoded uint64. It is used to determine the number of bytes needed to encode an uint64 value in Protocol Buffers' variable-length integer format.

(x uint64)

Source from the content-addressed store, hash-verified

146// It is used to determine the number of bytes needed to encode an uint64 value
147// in Protocol Buffers' variable-length integer format.
148func sovPush(x uint64) (n int) {
149 return (math_bits.Len64(x|1) + 6) / 7
150}
151
152// GeneratorCodec is the interface used to convert data from Kafka records to the
153// tempopb.PushSpansRequest expected by the generator processors.

Callers 1

EncodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected