Sha256: 649205dc82ce9b7e3ae58553d949e7a615dd64e6d158685a3d18a263ddb23c83
Contents?: true
Size: 393 Bytes
Versions: 2
Compression:
Stored size: 393 Bytes
Contents
# frozen_string_literal: true require "newrelic_rpm" require "shoryuken" module ShoryukenNewrelic # This class sent errors to Newrelic class ErrorLogger def call(_worker_instance, _queue, _sqs_msg, _body) yield rescue StandardError => e NewRelic::Agent.notice_error(e) raise e end end end Shoryuken.server_middleware.add(ShoryukenNewrelic::ErrorLogger)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shoryuken_newrelic-0.1.1 | lib/shoryuken_newrelic/error_logger.rb |
shoryuken_newrelic-0.1.0 | lib/shoryuken_newrelic/error_logger.rb |