Sha256: 67201ca018dd1b08bfb599e55c2412ebb5803cb7de3c071ef5610b76f0d8b846

Contents?: true

Size: 516 Bytes

Versions: 5

Compression:

Stored size: 516 Bytes

Contents

require 'ddtrace/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

5 entries across 5 versions & 1 rubygems

Version Path
ddtrace-0.51.1 lib/ddtrace/profiling/exporter.rb
ddtrace-0.51.0 lib/ddtrace/profiling/exporter.rb
ddtrace-0.50.0 lib/ddtrace/profiling/exporter.rb
ddtrace-0.49.0 lib/ddtrace/profiling/exporter.rb
ddtrace-0.48.0 lib/ddtrace/profiling/exporter.rb