NewCorrelationID returns a new random correlation ID.
()
| 48 | |
| 49 | // NewCorrelationID returns a new random correlation ID. |
| 50 | func NewCorrelationID() string { |
| 51 | return ulid.MustNew(ulid.Now(), rand.Reader).String() |
| 52 | } |
| 53 | |
| 54 | // uniqueStrings returns a slice with the unique elements of |
| 55 | // the provided slice. The provided slice must be sorted, |