Sha256: 5f615e186a3c9f57d63d4136c34f8807ebbbf96f30487e8911011a1bc99bc6f7

Contents?: true

Size: 530 Bytes

Versions: 5

Compression:

Stored size: 530 Bytes

Contents

# typed: true
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.54.2 lib/ddtrace/profiling/exporter.rb
ddtrace-0.54.1 lib/ddtrace/profiling/exporter.rb
ddtrace-0.54.0 lib/ddtrace/profiling/exporter.rb
ddtrace-0.53.0 lib/ddtrace/profiling/exporter.rb
ddtrace-0.52.0 lib/ddtrace/profiling/exporter.rb