Sha256: f1d26f22b4f02e96012fcd7c9e3082b2e446cfcab9398a726488a0cd71d4a4bf
Contents?: true
Size: 1002 Bytes
Versions: 5
Compression:
Stored size: 1002 Bytes
Contents
# typed: true require 'ddtrace/transport/http/client' require 'ddtrace/profiling/transport/client' module Datadog module Profiling module Transport module HTTP # Routes, encodes, and sends tracer data to the trace agent via HTTP. class Client < Datadog::Transport::HTTP::Client include Transport::Client def send_profiling_flush(flush) # Build a request request = Profiling::Transport::Request.new(flush) send_payload(request).tap do |response| if response.ok? Datadog.logger.debug('Successfully reported profiling data') else Datadog.logger.debug { "Failed to report profiling data -- #{response.inspect}" } end end end def send_payload(request) send_request(request) do |api, env| api.send_profiling_flush(env) end end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems