Method: Mongo::Monitoring.next_operation_id

Defined in:
lib/mongo/monitoring.rb

.next_operation_idInteger

Used for generating unique operation ids to link events together.

Examples:

Get the next operation id.

Monitoring.next_operation_id

Returns:

  • (Integer)

    The next operation id.

Since:

  • 2.1.0



79
80
81
# File 'lib/mongo/monitoring.rb', line 79

def self.next_operation_id
  self.next_id
end