Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Make service endpoint uri configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Trautwein committed Aug 7, 2019
1 parent b1ea4eb commit b13bc73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/fluent/plugin/out_application_insights.rb
Expand Up @@ -15,6 +15,8 @@ class ApplicationInsightsOutput < Output

# The Application Insights instrumentation key
config_param :instrumentation_key, :string
# The service endpoint uri to push the telemetry to
config_param :service_endpoint_uri, :string, value_type: :string
# The batch size to send data to Application Insights service.
config_param :send_buffer_size, :integer, default: 1000
# The parameter indication whether the record is in standard schema. i.e., the format that is recognized by Application Insights backend.
Expand Down Expand Up @@ -72,7 +74,7 @@ def configure(conf)
def start
super

sender = Channel::AsynchronousSender.new
sender = Channel::AsynchronousSender.new if variable.nil? || variable.empty? else Channel::AsynchronousSender.new @service_endpoint_uri end

This comment has been minimized.

Copy link
@mamboking

mamboking Dec 4, 2019

This is broken under ruby 2.6. Gives error "else without rescue is useless"

queue = Channel::AsynchronousQueue.new sender
channel = Channel::TelemetryChannel.new nil, queue
@tc = TelemetryClient.new @instrumentation_key, channel
Expand Down

0 comments on commit b13bc73

Please sign in to comment.