MCPcopy Index your code
hub / github.com/cloudfoundry/cli / GenerateUUIDTraceID

Function GenerateUUIDTraceID

util/trace/trace.go:12–15  ·  view source on GitHub ↗

GenerateUUIDTraceID returns a UUID v4 string with the dashes removed as a 32 lower-hex encoded string.

()

Source from the content-addressed store, hash-verified

10
11// GenerateUUIDTraceID returns a UUID v4 string with the dashes removed as a 32 lower-hex encoded string.
12func GenerateUUIDTraceID() string {
13 uuidV4 := uuid.New()
14 return strings.ReplaceAll(uuidV4.String(), "-", "")
15}
16
17// GenerateRandomTraceID returns a random hex string of the given length.
18func GenerateRandomTraceID(length int) string {

Callers 2

B3TraceIDMethod · 0.92
trace_test.goFile · 0.92

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected