Starts a flow timer for a named user or app flow (e.g., "checkout", "search_to_results").
Returns an object with end() and fail() methods to mark completion or failure.
Parameters
name: string
A unique name for this flow type (e.g., "checkout", "search_to_results")
ctx: Record<string,unknown> = {}
Optional initial context to include in all events for this flow
Starts a flow timer for a named user or app flow (e.g., "checkout", "search_to_results"). Returns an object with
end()
andfail()
methods to mark completion or failure.