Module: Consumer::PositionStore::Get
- Defined in:
- lib/consumer/position_store.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.prepended(cls) ⇒ Object
57 58 59 |
# File 'lib/consumer/position_store.rb', line 57 def self.prepended(cls) Virtual::PureMethod.define(cls, :get) end |
Instance Method Details
#get ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/consumer/position_store.rb', line 61 def get logger.trace(tags: [:position_store, :get]) { "Get position" } position = super logger.debug(tags: [:position_store, :get]) { "Get position done (Position: #{position || '(none)'})" } telemetry.record(:get, Telemetry::Get.new(position)) position end |