Module: Datadog::Transport::IO
- Defined in:
- lib/ddtrace/transport/io.rb,
lib/ddtrace/transport/io/client.rb,
lib/ddtrace/transport/io/traces.rb,
lib/ddtrace/transport/io/response.rb
Overview
Namespace for IO transport components
Defined Under Namespace
Modules: Traces Classes: Client, Response
Class Method Summary collapse
-
.default(options = {}) ⇒ Object
Builds a new Transport::IO::Client with default settings Pass options to override any settings.
-
.new(out, encoder) ⇒ Object
Builds a new Transport::IO::Client.
Class Method Details
.default(options = {}) ⇒ Object
Builds a new Transport::IO::Client with default settings Pass options to override any settings.
18 19 20 21 22 23 |
# File 'lib/ddtrace/transport/io.rb', line 18 def default( = {}) new( .fetch(:out, STDOUT), .fetch(:encoder, Encoding::JSONEncoder::V2) ) end |
.new(out, encoder) ⇒ Object
Builds a new Transport::IO::Client
12 13 14 |
# File 'lib/ddtrace/transport/io.rb', line 12 def new(out, encoder) Client.new(out, encoder) end |