EventIdGenerator

fun interface EventIdGenerator

Generates a unique identifier for each event.

The generated id is stamped into the event envelope and — depending on the transport — used as the transport-level message id (e.g. Segment's messageId), so downstream systems can deduplicate on it.

Functions

Link copied to clipboard
abstract fun next(): String

Returns a new unique id. Must be safe to call from any thread.