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.

Constant Summary collapse

SERVICE_ENDPOINT_URI =
'https://dc.services.visualstudio.com/v2/track'

Instance Attribute Summary

Attributes inherited from SenderBase

#logger, #queue, #send_buffer_size, #service_endpoint_uri

Instance Method Summary collapse

Methods inherited from SenderBase

#send

Constructor Details

#initialize(service_endpoint_uri = SERVICE_ENDPOINT_URI) ⇒ SynchronousSender

Initializes a new instance of the class. telemetry data to.

Parameters:

  • service_endpoint_uri (String) (defaults to: SERVICE_ENDPOINT_URI)

    the address of the service to send



12
13
14
# File 'lib/application_insights/channel/synchronous_sender.rb', line 12

def initialize(service_endpoint_uri = SERVICE_ENDPOINT_URI)
  super service_endpoint_uri
end