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

Function HexStringToSpanID

pkg/util/traceid.go:56–59  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

54}
55
56func HexStringToSpanID(id string) ([]byte, error) {
57 id = strings.TrimLeft(id, "0")
58 return hexStringToID(id, true)
59}
60
61// spanKindFNVHashes contains pre-calculated FNV hashes for all span kind values (and two spares)
62// defined in the OTEL spec.

Callers 6

createBytesPredicateFunction · 0.92
createBytesPredicateFunction · 0.92
createBytesPredicateFunction · 0.92
TestHexStringToSpanIDFunction · 0.85

Calls 1

hexStringToIDFunction · 0.85

Tested by 3

TestHexStringToSpanIDFunction · 0.68