Sha256: fc84df23f9b1c6255786d2b9a12f68071d3cb845301d741b142f7c13907e1164

Contents?: true

Size: 745 Bytes

Versions: 3

Compression:

Stored size: 745 Bytes

Contents

# typed: true

require 'ddtrace/transport/io/client'
require 'datadog/profiling/transport/client'
require 'datadog/profiling/transport/request'
require 'datadog/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

3 entries across 3 versions & 1 rubygems

Version Path
ddtrace-1.1.0 lib/datadog/profiling/transport/io/client.rb
ddtrace-1.0.0 lib/datadog/profiling/transport/io/client.rb
ddtrace-1.0.0.beta2 lib/datadog/profiling/transport/io/client.rb