Class: Elasticsearch::Tracer::TracingClient

Inherits:
Elasticsearch::Transport::Client
  • Object
show all
Defined in:
lib/elasticsearch/tracer/tracing_client.rb

Instance Method Summary collapse

Instance Method Details

#index(arguments = {}) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/elasticsearch/tracer/tracing_client.rb', line 16

def index(arguments = {})
  # trace this request without tagging the request body
  Thread.current[@transport.object_id.to_s] = true
  super
ensure
  Thread.current[@transport.object_id.to_s] = nil
end