Module: Datadog::Profiling::Transport::IO
- Defined in:
- lib/ddtrace/profiling/transport/io.rb,
lib/ddtrace/profiling/transport/io/client.rb,
lib/ddtrace/profiling/transport/io/response.rb
Overview
IO transport behavior for profiling
Defined Under Namespace
Class Method Summary collapse
-
.default(options = {}) ⇒ Object
Builds a new Profiling::Transport::IO::Client with default settings Pass options to override any settings.
-
.new(out, encoder, options = {}) ⇒ Object
Builds a new Profiling::Transport::IO::Client.
Class Method Details
.default(options = {}) ⇒ Object
Builds a new Profiling::Transport::IO::Client with default settings Pass options to override any settings.
19 20 21 22 23 24 25 26 27 |
# File 'lib/ddtrace/profiling/transport/io.rb', line 19 def default( = {}) = .dup new( .delete(:out) || $stdout, .delete(:encoder) || Profiling::Encoding::Profile::Protobuf, ) end |
.new(out, encoder, options = {}) ⇒ Object
Builds a new Profiling::Transport::IO::Client
13 14 15 |
# File 'lib/ddtrace/profiling/transport/io.rb', line 13 def new(out, encoder, = {}) Client.new(out, encoder, ) end |