Class: Labkit::Tracing::Rails::ActiveSupport::CacheReadInstrumenter
Overview
Instance Method Summary
collapse
#finish, #scope_stack, #start
Instance Method Details
#span_name(payload) ⇒ Object
9
10
11
|
# File 'lib/labkit/tracing/rails/active_support/cache_read_instrumenter.rb', line 9
def span_name(payload)
"cache_read"
end
|
13
14
15
16
17
18
19
20
|
# 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
|