Class: Datadog::Core::Transport::HTTP::Client Private

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/core/transport/http/client.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Routes, encodes, and sends DI data to the trace agent via HTTP.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api, logger:) ⇒ Client

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Client.



16
17
18
19
# File 'lib/datadog/core/transport/http/client.rb', line 16

def initialize(api, logger:)
  @api = api
  @logger = logger
end

Instance Attribute Details

#apiObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



14
15
16
# File 'lib/datadog/core/transport/http/client.rb', line 14

def api
  @api
end

#loggerObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



14
15
16
# File 'lib/datadog/core/transport/http/client.rb', line 14

def logger
  @logger
end