Class: Datadog::Transport::HTTP::Adapters::UnixSocket
- Defined in:
- lib/ddtrace/transport/http/adapters/unix_socket.rb
Overview
Adapter for Unix sockets
Defined Under Namespace
Classes: HTTP
Constant Summary collapse
- DEFAULT_TIMEOUT =
1
Instance Attribute Summary collapse
-
#filepath ⇒ Object
readonly
Returns the value of attribute filepath.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Attributes inherited from Net
Instance Method Summary collapse
-
#initialize(filepath, options = {}) ⇒ UnixSocket
constructor
A new instance of UnixSocket.
- #open ⇒ Object
Methods inherited from Net
Constructor Details
#initialize(filepath, options = {}) ⇒ UnixSocket
Returns a new instance of UnixSocket.
16 17 18 19 |
# File 'lib/ddtrace/transport/http/adapters/unix_socket.rb', line 16 def initialize(filepath, = {}) @filepath = filepath @timeout = .fetch(:timeout, DEFAULT_TIMEOUT) end |
Instance Attribute Details
#filepath ⇒ Object (readonly)
Returns the value of attribute filepath.
12 13 14 |
# File 'lib/ddtrace/transport/http/adapters/unix_socket.rb', line 12 def filepath @filepath end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
12 13 14 |
# File 'lib/ddtrace/transport/http/adapters/unix_socket.rb', line 12 def timeout @timeout end |