class Raven::Transports::Fluentd
Public Instance Methods
send_event(auth_header, data, options = {})
click to toggle source
# File lib/raven/transports/fluentd.rb, line 12 def send_event(auth_header, data, options = {}) unless configuration.sending_allowed? configuration.logger.debug("Event not sent: #{configuration.error_messages}") end conn.post('error', auth_header: auth_header, data: data, options: options, project_id: configuration.project_id) end
Private Instance Methods
conn()
click to toggle source
# File lib/raven/transports/fluentd.rb, line 22 def conn @conn ||= begin uri = URI.parse(self.configuration.server) ::Fluent::Logger::FluentLogger.new('sentry', host: uri.host, port: uri.port) end end