Class: Datadog::Tracing::Workers::AsyncTransport

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/tracing/workers.rb

Overview

Asynchronous worker that executes a +Send()+ operation after given seconds. Under the hood, it uses +Concurrent::TimerTask+ so that the thread will perform a task at regular intervals. The thread can be stopped with the +stop()+ method and can start with the +start()+ method.

Constant Summary collapse

DEFAULT_BUFFER_MAX_SIZE =
1000
DEFAULT_FLUSH_INTERVAL =
1
DEFAULT_TIMEOUT =
5
BACK_OFF_RATIO =
1.2
BACK_OFF_MAX =
5
DEFAULT_SHUTDOWN_TIMEOUT =
1