module Raven::Transports::FluentdExt

Public Instance Methods

transport() click to toggle source
# File lib/raven/transports/fluentd_ext.rb, line 4
def transport
  @transport ||=
    case self.configuration.scheme
    when 'udp'
      Transports::UDP.new self.configuration
    when 'http', 'https'
      Transports::HTTP.new self.configuration
    when 'fluentd'
      Transports::Fluentd.new self.configuration
    else
      raise Error.new("Unknown transport scheme '#{self.configuration.scheme}'")
    end
end