Class: Labkit::Tracing::Rails::ActiveSupport::CacheFetchHitInstrumenter

Inherits:
AbstractInstrumenter show all
Defined in:
lib/labkit/tracing/rails/active_support/cache_fetch_hit_instrumenter.rb

Overview

For more information on the payloads: guides.rubyonrails.org/active_support_instrumentation.html

Instance Method Summary collapse

Methods inherited from AbstractInstrumenter

#finish, #scope_stack, #start

Instance Method Details

#span_name(payload) ⇒ Object



9
10
11
# File 'lib/labkit/tracing/rails/active_support/cache_fetch_hit_instrumenter.rb', line 9

def span_name(payload)
  "cache_fetch_hit"
end

#tags(payload) ⇒ Object



13
14
15
# File 'lib/labkit/tracing/rails/active_support/cache_fetch_hit_instrumenter.rb', line 13

def tags(payload)
  { "component" => COMPONENT_TAG, "cache.key" => payload[:key] }
end