Sha256: c5edd4a1a4785b3172f13e1894f0ba3431b00169dc5b4f6e7ea4765ab4999e8c

Contents?: true

Size: 285 Bytes

Versions: 1

Compression:

Stored size: 285 Bytes

Contents

# frozen_string_literal: true

module ElasticAPM
  # Defines a before_first_fork hook for starting the ElasticAPM agent
  # with Resque.
  module Resque
    ::Resque.before_first_fork do
      ::Resque.logger.debug('Starting ElasticAPM agent')
      ElasticAPM.start
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
elastic-apm-3.6.0 lib/elastic_apm/resque.rb