Method: ElasticAPM::Spies::SneakersSpy#install

Defined in:
lib/elastic_apm/spies/sneakers.rb

#installObject

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.



31
32
33
34
35
36
37
38
39
40
# File 'lib/elastic_apm/spies/sneakers.rb', line 31

def install
  unless SneakersSpy.supported_version?
    warn(
      'Sneakers version is below 2.12.0. Sneakers spy installation failed'
    )
    return
  end

  Sneakers.middleware.use(Middleware, nil)
end