MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / NewCorrelationID

Function NewCorrelationID

pkg/events/correlation_context.go:50–52  ·  view source on GitHub ↗

NewCorrelationID returns a new random correlation ID.

()

Source from the content-addressed store, hash-verified

48
49// NewCorrelationID returns a new random correlation ID.
50func 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,

Callers 11

handleUpstreamMethod · 0.92
ExampleFunction · 0.92
StreamMethod · 0.92
grpcStreamUpResourceFunction · 0.92
runMethod · 0.92
sendUplinkMethod · 0.92
HandleUpMethod · 0.92
NewMethod · 0.85

Calls 2

StringMethod · 0.65
NowMethod · 0.65

Tested by 1

ExampleFunction · 0.74