RUM JavaScript API - 1.345.1
    Preparing search index...

    Interface UserActionActivityTrackerContextExperimental

    Context passed to a custom user-action activity tracker. A tracker can pulse non-blocking activity with notifyActivity() or keep the action open with idempotent block()/release() calls.

    interface UserActionActivityTrackerContext {
        actionId: string;
        block(): void;
        notifyActivity(timestamp?: number): void;
        release(timestamp?: number): void;
    }
    Index

    Methods

    • Experimental

      Marks this tracker as blocked and keeps the user action open. This is idempotent while the tracker is already blocked. Trackers with concurrent work should keep their own pending count; they may call block() on every start, but should call release() only when the count returns to zero.

      Returns void

    • Experimental

      Signals non-blocking activity observed by the tracker. This extends the user action's quiet window without blocking automatic completion. The optional timestamp is used as activity time and is applied monotonically by the agent. Older timestamps never move the user action end time backwards.

      Parameters

      • Optionaltimestamp: number

        Optional activity timestamp in milliseconds.

      Returns void

    • Experimental

      Releases this tracker's blocked state. This is idempotent while the tracker is not blocked. If no tracker remains blocked, the action may complete after the configured quiet window. The optional timestamp is used as activity time and is applied monotonically by the agent. Older timestamps never move the user action end time backwards.

      Parameters

      • Optionaltimestamp: number

        Optional activity timestamp in milliseconds.

      Returns void

    Properties

    actionId: string

    The user action instance ID this tracker is attached to.