Skip to content

Commit a862b3b

Browse files
committed
Figure out a bug in the transport layer added with typing
1 parent 11695d1 commit a862b3b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lib/datadog/data_streams/processor.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -406,10 +406,13 @@ def send_stats_to_agent(payload)
406406
end
407407

408408
def transport
409-
@transport ||= Transport::HTTP.default(
410-
agent_settings: @agent_settings,
411-
logger: @logger
412-
)
409+
@transport ||= begin
410+
@logger.debug("[DSM] Building transport with agent_settings: adapter=#{@agent_settings.adapter}, hostname=#{@agent_settings.hostname}, port=#{@agent_settings.port}")
411+
Transport::HTTP.default(
412+
agent_settings: @agent_settings,
413+
logger: @logger
414+
)
415+
end
413416
end
414417

415418
def serialize_buckets

0 commit comments

Comments
 (0)