Class: ApplicationInsights::Channel::SynchronousSender

Inherits:
SenderBase
  • Object
show all
Defined in:
lib/application_insights/channel/synchronous_sender.rb

Overview

A synchronous sender that works in conjunction with the SynchronousQueue. The queue will call ApplicationInsights::Channel::SenderBase#send on the current instance with the data to send.

Instance Attribute Summary

Attributes inherited from SenderBase

#queue, #send_buffer_size, #service_endpoint_uri

Instance Method Summary collapse

Methods inherited from SenderBase

#send

Constructor Details

#initialize(service_endpoint_uri = 'https://dc.services.visualstudio.com/v2/track') ⇒ SynchronousSender

Initializes a new instance of the class.

Parameters:

  • service_endpoint_uri (String) (defaults to: 'https://dc.services.visualstudio.com/v2/track')

    the address of the service to send telemetry data to.



10
11
12
# File 'lib/application_insights/channel/synchronous_sender.rb', line 10

def initialize(service_endpoint_uri='https://dc.services.visualstudio.com/v2/track')
  super service_endpoint_uri
end