MCPcopy
hub / github.com/unkeyed/unkey / NewCorrelationID

Function NewCorrelationID

pkg/auditlog/correlation.go:44–46  ·  view source on GitHub ↗

NewCorrelationID mints a fresh opaque correlation ID. Use at the top of a multi-Insert flow: ctx = auditlog.WithCorrelation(ctx, auditlog.NewCorrelationID())

()

Source from the content-addressed store, hash-verified

42//
43// ctx = auditlog.WithCorrelation(ctx, auditlog.NewCorrelationID())
44func NewCorrelationID() string {
45 return uid.New(uid.CorrelationPrefix)
46}

Callers 9

insertLogsMethod · 0.92
HandleMethod · 0.92
HandleMethod · 0.92
HandleMethod · 0.92
HandleMethod · 0.92
HandleMethod · 0.92
HandleMethod · 0.92
HandleMethod · 0.92
HandleMethod · 0.92

Calls 1

NewFunction · 0.92

Tested by

no test coverage detected