Module: Instana::Instrumentation::DalliRequestHandler

Defined in:
lib/instana/instrumentation/dalli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



60
61
62
# File 'lib/instana/instrumentation/dalli.rb', line 60

def self.included(klass)
  ::Instana::Util.method_alias(klass, :request)
end

Instance Method Details

#request(op, *args) ⇒ Object



64
65
66
67
68
69
70
71
# File 'lib/instana/instrumentation/dalli.rb', line 64

def request(op, *args)
  if ::Instana.tracer.tracing? || ::Instana.tracer.tracing_span?(:memcache)
    info_payload = { :memcache => {} }
    info_payload[:memcache][:server] = "#{hostname}:#{port}"
    ::Instana.tracer.log_info(info_payload)
  end
  super(op, *args)
end