ExperimentalExperimentalTrue if this user action completes automatically. If false, the user action has to be completed with a call to complete.
ExperimentalAllows to configure this user action to complete automatically.
If set to false, the user action has to be completed with a call to complete.
ExperimentalRetrieves the custom name of the user action.
The custom name of the user action.
ExperimentalSets the custom name of the user action.
The custom name to set for the user action.
ExperimentalRetrieves the event properties for the user action.
The event properties for the user action.
ExperimentalSets the event properties for the user action.
The properties to set for the event.
ExperimentalRetrieves the start time of the user action.
The start time of the user action.
ExperimentalSets the start time of the user action.
The start time to set for the user action. Must not be in the future.
ExperimentalRetrieves the current state of the user action, which can be either "active" or "complete".
The current state of the user action.
ExperimentalCompletes this user action and sends a user action event for it.
ExperimentalRegisters a custom activity tracker on this user action. The agent calls
create with an activity context. notifyActivity() extends the quiet
window without blocking completion; block() keeps the tracker blocked
until release() is called. block() and release() are idempotent
per tracker.
create may return a stop function for the simple case, or a richer
handle { stop, getEventProperties? } when the tracker contributes
event_properties.* to the final user action event.
Reentrant: may be called any time while the user action is still active.
Calling on an already-completed action is a no-op (logged to the console).
Multiple trackers may be registered; the action stays open while any one
of them — internal or custom — is blocked. The agent owns the tracker
lifecycle: it calls stop() on each registered tracker when the action
completes (naturally, by timeout, page hide, or interruption).
Human-readable tracker name surfaced in diagnostics. Must be a non-empty string.
Builds the tracker for this user action. Invoked synchronously with the agent's activity context.
ExperimentalSubscribes to this user action to be notified when it would automatically complete.
The listener to be called.
An object to work with user actions.