NewCorrelationID mints a fresh opaque correlation ID. Use at the top of a multi-Insert flow: ctx = auditlog.WithCorrelation(ctx, auditlog.NewCorrelationID())
()
| 42 | // |
| 43 | // ctx = auditlog.WithCorrelation(ctx, auditlog.NewCorrelationID()) |
| 44 | func NewCorrelationID() string { |
| 45 | return uid.New(uid.CorrelationPrefix) |
| 46 | } |