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

Classes: Client, Response

Class Method Summary collapse

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(options = {})
  options = options.dup

  new(
    options.delete(:out) || $stdout,
    options.delete(:encoder) || Profiling::Encoding::Profile::Protobuf,
    options
  )
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, options = {})
  Client.new(out, encoder, options)
end