lib/posthog/client.rb
# private: Enqueues the action.
#
# returns Boolean of whether the item was added to the queue.
Enqueues the action.
returns Boolean of whether the item was added to the queue.
Enqueues the action . returns Boolean of whether the item was added to the queue .
def enqueue(action)
      action[:messageId] ||= uid
      if @queue.length < @max_queue_size
        @queue << action
        ensure_worker_running
        true
      else
        logger.warn(
          'Queue is full, dropping events. The :max_queue_size ' \
            'configuration parameter can be increased to prevent this from ' \
            'happening.'
        )
        false
      end
    end
def enqueue ( action ) action [ :messageId ] ||= uid if @queue . length < @max_queue_size @queue << action ensure_worker_running true else logger . warn ( 'Queue is full, dropping events. The :max_queue_size ' 'configuration parameter can be increased to prevent this from ' 'happening.' ) false end end
private: Enqueues the action.
private : Enqueues the action .
# add our request id for tracing purposes
action