GenerateUUIDTraceID returns a UUID v4 string with the dashes removed as a 32 lower-hex encoded string.
()
| 10 | |
| 11 | // GenerateUUIDTraceID returns a UUID v4 string with the dashes removed as a 32 lower-hex encoded string. |
| 12 | func 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. |
| 18 | func GenerateRandomTraceID(length int) string { |
no test coverage detected