Method: ApplicationInsights::Channel::AsynchronousSender#initialize

Defined in:
lib/application_insights/channel/asynchronous_sender.rb

#initialize(service_endpoint_uri = SERVICE_ENDPOINT_URI) ⇒ AsynchronousSender

Initializes a new instance of the class.

Parameters:

  • service_endpoint_uri (String) (defaults to: SERVICE_ENDPOINT_URI)

    the address of the service to send telemetry data to.



24
25
26
27
28
29
30
31
32
# File 'lib/application_insights/channel/asynchronous_sender.rb', line 24

def initialize(service_endpoint_uri = SERVICE_ENDPOINT_URI)
  @send_interval = 1.0
  @send_remaining_time = 0
  @send_time = 3.0
  @lock_work_thread = Mutex.new
  @work_thread = nil
  @start_notification_processed = true
  super service_endpoint_uri
end