Sha256: a2e23c4163bea5d9828393a688629b87232fcf7da2b31b3b6fdc2adecf796973

Contents?: true

Size: 730 Bytes

Versions: 5

Compression:

Stored size: 730 Bytes

Contents

require 'ddtrace/transport/io/client'
require 'ddtrace/profiling/transport/client'
require 'ddtrace/profiling/transport/request'
require 'ddtrace/profiling/transport/io/response'

module Datadog
  module Profiling
    module Transport
      module IO
        # IO transport for profiling
        class Client < Datadog::Transport::IO::Client
          include Transport::Client

          def send_profiling_flush(flush)
            # Build a request
            request = Profiling::Transport::Request.new(flush)
            send_request(request)
          end

          def build_response(_request, _data, result)
            Profiling::Transport::IO::Response.new(result)
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ddtrace-0.51.1 lib/ddtrace/profiling/transport/io/client.rb
ddtrace-0.51.0 lib/ddtrace/profiling/transport/io/client.rb
ddtrace-0.50.0 lib/ddtrace/profiling/transport/io/client.rb
ddtrace-0.49.0 lib/ddtrace/profiling/transport/io/client.rb
ddtrace-0.48.0 lib/ddtrace/profiling/transport/io/client.rb