Module: WCC::Contentful::Store::InstrumentationWrapper
- Defined in:
- lib/wcc/contentful/store/instrumentation.rb
Instance Method Summary collapse
- #find(key, **options) ⇒ Object
- #find_all(**params) ⇒ Object
- #find_by(**params) ⇒ Object
- #index(json) ⇒ Object
Instance Method Details
#find(key, **options) ⇒ Object
22 23 24 25 26 |
# File 'lib/wcc/contentful/store/instrumentation.rb', line 22 def find(key, **) _instrument 'find', id: key, options: do super end end |
#find_all(**params) ⇒ Object
40 41 42 43 44 |
# 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) ⇒ Object
34 35 36 37 38 |
# 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) ⇒ Object
28 29 30 31 32 |
# File 'lib/wcc/contentful/store/instrumentation.rb', line 28 def index(json) _instrument 'index', id: json.dig('sys', 'id') do super end end |