Method: ElasticAPM::Context::Request::Socket#initialize
- Defined in:
- lib/elastic_apm/context/request/socket.rb
#initialize(req) ⇒ Socket
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.
Returns a new instance of Socket.
27 28 29 |
# File 'lib/elastic_apm/context/request/socket.rb', line 27 def initialize(req) @remote_addr = req.env['REMOTE_ADDR'] end |