module WCC::Contentful::Store::InstrumentationWrapper

Public Instance Methods

find(key, **options) click to toggle source
Calls superclass method
# File lib/wcc/contentful/store/instrumentation.rb, line 22
def find(key, **options)
  _instrument 'find', id: key, options: options do
    super
  end
end
find_all(**params) click to toggle source
Calls superclass method
# File lib/wcc/contentful/store/instrumentation.rb, line 40
def find_all(**params)
  # end happens when query is executed - todo.
  _instrument 'find_all', params.slice(:content_type, :options)
  super
end
find_by(**params) click to toggle source
Calls superclass method
# File lib/wcc/contentful/store/instrumentation.rb, line 34
def find_by(**params)
  _instrument 'find_by', params.slice(:content_type, :filter, :options) do
    super
  end
end
index(json) click to toggle source
Calls superclass method
# File lib/wcc/contentful/store/instrumentation.rb, line 28
def index(json)
  _instrument 'index', id: json.dig('sys', 'id') do
    super
  end
end