Class: Labkit::Tracing::Rails::ActiveSupport::CacheReadInstrumenter Private

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

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

API:

  • private

Instance Method Summary collapse

Methods inherited from AbstractInstrumenter

#finish, #scope_stack, #start

Instance Method Details

#span_name(payload) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



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

def span_name(payload)
  "cache_read"
end

#tags(payload) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



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