class Datadog::Profiling::Exporter

Writes profiling data to a given transport

Attributes

transport[R]

Public Class Methods

new(transport) click to toggle source
# File lib/ddtrace/profiling/exporter.rb, line 11
def initialize(transport)
  unless transport.is_a?(Profiling::Transport::Client)
    raise ArgumentError, 'Unsupported transport for profiling exporter.'
  end

  @transport = transport
end

Public Instance Methods

export(flush) click to toggle source
# File lib/ddtrace/profiling/exporter.rb, line 19
def export(flush)
  transport.send_profiling_flush(flush)
end