Sha256: 640e69bb7356eccb6113703dd64b1c0825a269a51c12770797f2237afa58a97a

Contents?: true

Size: 531 Bytes

Versions: 3

Compression:

Stored size: 531 Bytes

Contents

# typed: true

require 'datadog/profiling/transport/io/client'

module Datadog
  module Profiling
    # Writes profiling data to a given transport
    class Exporter
      attr_reader \
        :transport

      def initialize(transport)
        unless transport.is_a?(Profiling::Transport::Client)
          raise ArgumentError, 'Unsupported transport for profiling exporter.'
        end

        @transport = transport
      end

      def export(flush)
        transport.send_profiling_flush(flush)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ddtrace-1.1.0 lib/datadog/profiling/exporter.rb
ddtrace-1.0.0 lib/datadog/profiling/exporter.rb
ddtrace-1.0.0.beta2 lib/datadog/profiling/exporter.rb