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

Function HexStringToTraceID

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

Source from the content-addressed store, hash-verified

13)
14
15func HexStringToTraceID(id string) ([]byte, error) {
16 return hexStringToID(id, false)
17}
18
19// traceIDPadding is a string of 32 zeros used for left-padding trace IDs.
20const traceIDPadding = "00000000000000000000000000000000"

Callers 15

createBytesPredicateFunction · 0.92
createBytesPredicateFunction · 0.92
createBytesPredicateFunction · 0.92
TestRequestsByTraceIDFunction · 0.92
TestForwarderFunction · 0.92
TestForwarder_shutdownFunction · 0.92
checkEqualFunction · 0.92
ParseTraceIDFunction · 0.92

Calls 1

hexStringToIDFunction · 0.85

Tested by 11

TestRequestsByTraceIDFunction · 0.74
TestForwarderFunction · 0.74
TestForwarder_shutdownFunction · 0.74
checkEqualFunction · 0.74
TestRedactCmdSubmitFunction · 0.74
TestHashForNoCollisionsFunction · 0.68
TestHexStringToTraceIDFunction · 0.68