class Labkit::Tracing::Rails::ActiveSupport::CacheReadInstrumenter

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

Public Instance Methods

span_name(payload) click to toggle source
# File lib/labkit/tracing/rails/active_support/cache_read_instrumenter.rb, line 9
def span_name(payload)
  "cache_read"
end
tags(payload) click to toggle source
# File lib/labkit/tracing/rails/active_support/cache_read_instrumenter.rb, line 13
def tags(payload)
  {
    "component" => COMPONENT_TAG,
    "cache.key" => payload[:key],
    "cache.hit" => payload[:hit],
    "cache.super_operation" => payload[:super_operation],
  }
end