Sha256: 9751dc855e2a847080dcca82ab48981496541995add69941d42c1b62a6406272

Contents?: true

Size: 263 Bytes

Versions: 42

Compression:

Stored size: 263 Bytes

Contents

module Goliath::Application
  singleton_class.class_eval do
    def run_with_oneapm
      OneApm::Probe.init :env => Goliath.env.to_s
      run_without_oneapm
    end

    alias_method :run_without_oneapm, :run!
    alias_method :run!, :run_with_oneapm
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
oneapm_rpm-1.4.2 lib/initializers/goliath.rb
oneapm_rpm-1.4.1 lib/initializers/goliath.rb
oneapm_rpm-1.4.0 lib/initializers/goliath.rb
oneapm_rpm-1.3.7 lib/initializers/goliath.rb
oneapm_rpm-1.3.7.rc1 lib/initializers/goliath.rb
oneapm_rpm-1.3.6 lib/initializers/goliath.rb
oneapm_rpm-1.3.6.rc1 lib/initializers/goliath.rb
oneapm_rpm-1.3.5 lib/initializers/goliath.rb
oneapm_rpm-1.3.5.rc1 lib/initializers/goliath.rb
oneapm_rpm-1.3.4 lib/initializers/goliath.rb
oneapm_rpm-1.3.4.rc1 lib/initializers/goliath.rb
oneapm_rpm-1.3.3 lib/initializers/goliath.rb
oneapm_rpm-1.3.3.rc1 lib/initializers/goliath.rb
oneapm_rpm-1.3.2 lib/initializers/goliath.rb
oneapm_rpm-1.3.2.rc1 lib/initializers/goliath.rb
oneapm_rpm-1.3.1 lib/initializers/goliath.rb
oneapm_rpm-1.3.1.rc1 lib/initializers/goliath.rb
oneapm_rpm-1.3.0 lib/initializers/goliath.rb
oneapm_rpm-1.3.0.rc1 lib/initializers/goliath.rb
oneapm_rpm-1.2.9 lib/initializers/goliath.rb