Module: Datadog::Tracing::Transport::IO
- Defined in:
- lib/datadog/tracing/transport/io.rb,
lib/datadog/tracing/transport/io/client.rb,
lib/datadog/tracing/transport/io/traces.rb,
lib/datadog/tracing/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.
21 22 23 24 25 26 |
# File 'lib/datadog/tracing/transport/io.rb', line 21 def default( = {}) new( .fetch(:out, $stdout), .fetch(:encoder, Core::Encoding::JSONEncoder) ) end |
.new(out, encoder) ⇒ Object
Builds a new Transport::IO::Client
15 16 17 |
# File 'lib/datadog/tracing/transport/io.rb', line 15 def new(out, encoder) Client.new(out, encoder) end |