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.1.1 lib/initializers/goliath.rb
oneapm_rpm-1.1.0 lib/initializers/goliath.rb