-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1658 from newrelic/bugfix/rails-frameworks-forced…
…-to-load-during-agent-initialization Defer agent initialization in Rails until after :load_config_initializers
- Loading branch information
Showing
17 changed files
with
330 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This file is distributed under New Relic's license terms. | ||
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. | ||
# frozen_string_literal: true | ||
|
||
require 'new_relic/agent/method_tracer' | ||
|
||
class Bloodhound < ActiveRecord::Base | ||
include ::NewRelic::Agent::MethodTracer | ||
|
||
def sniff | ||
puts "When a bloodhound sniffs a scent article (a piece of clothing or item touched only by the subject), " \ | ||
"air rushes through its nasal cavity and chemical vapors — or odors — lodge in the mucus and bombard the dog's " \ | ||
"scent receptors. " \ | ||
"Source: https://www.pbs.org/wnet/nature/underdogs-the-bloodhounds-amazing-sense-of-smell/350/" | ||
end | ||
|
||
add_method_tracer :sniff | ||
end | ||
|
||
Rails.application.config.active_record.timestamped_migrations = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# This file is distributed under New Relic's license terms. | ||
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. | ||
# frozen_string_literal: true | ||
|
||
require 'new_relic/agent/method_tracer' | ||
|
||
class Bloodhound < ActiveRecord::Base | ||
include ::NewRelic::Agent::MethodTracer | ||
|
||
def sniff | ||
puts "When a bloodhound sniffs a scent article (a piece of clothing or item touched only by the subject)," \ | ||
"air rushes through its nasal cavity and chemical vapors — or odors — lodge in the mucus and bombard the dog's scent receptors. " \ | ||
"Source: https://www.pbs.org/wnet/nature/underdogs-the-bloodhounds-amazing-sense-of-smell/350/" | ||
end | ||
|
||
add_method_tracer :sniff | ||
end | ||
|
||
Rails.application.config.active_record.timestamped_migrations = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This file is distributed under New Relic's license terms. | ||
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. | ||
# frozen_string_literal: true | ||
|
||
require 'new_relic/agent/method_tracer' | ||
|
||
class Bloodhound < ActiveRecord::Base | ||
include ::NewRelic::Agent::MethodTracer | ||
|
||
def sniff | ||
puts "When a bloodhound sniffs a scent article (a piece of clothing or item touched only by the subject), " \ | ||
"air rushes through its nasal cavity and chemical vapors — or odors — lodge in the mucus and bombard the dog's " \ | ||
"scent receptors. " \ | ||
"Source: https://www.pbs.org/wnet/nature/underdogs-the-bloodhounds-amazing-sense-of-smell/350/" | ||
end | ||
|
||
add_method_tracer :sniff | ||
end | ||
|
||
Rails.application.config.active_record.timestamped_migrations = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This file is distributed under New Relic's license terms. | ||
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. | ||
# frozen_string_literal: true | ||
|
||
require 'new_relic/agent/method_tracer' | ||
|
||
class Bloodhound < ActiveRecord::Base | ||
include ::NewRelic::Agent::MethodTracer | ||
|
||
def sniff | ||
puts "When a bloodhound sniffs a scent article (a piece of clothing or item touched only by the subject), " \ | ||
"air rushes through its nasal cavity and chemical vapors — or odors — lodge in the mucus and bombard the dog's " \ | ||
"scent receptors. " \ | ||
"Source: https://www.pbs.org/wnet/nature/underdogs-the-bloodhounds-amazing-sense-of-smell/350/" | ||
end | ||
|
||
add_method_tracer :sniff | ||
end | ||
|
||
Rails.application.config.active_record.timestamped_migrations = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This file is distributed under New Relic's license terms. | ||
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. | ||
# frozen_string_literal: true | ||
|
||
require 'new_relic/agent/method_tracer' | ||
|
||
class Bloodhound < ActiveRecord::Base | ||
include ::NewRelic::Agent::MethodTracer | ||
|
||
def sniff | ||
puts "When a bloodhound sniffs a scent article (a piece of clothing or item touched only by the subject), " \ | ||
"air rushes through its nasal cavity and chemical vapors — or odors — lodge in the mucus and bombard the dog's " \ | ||
"scent receptors. " \ | ||
"Source: https://www.pbs.org/wnet/nature/underdogs-the-bloodhounds-amazing-sense-of-smell/350/" | ||
end | ||
|
||
add_method_tracer :sniff | ||
end | ||
|
||
Rails.application.config.active_record.timestamped_migrations = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This file is distributed under New Relic's license terms. | ||
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. | ||
# frozen_string_literal: true | ||
|
||
require 'new_relic/agent/method_tracer' | ||
|
||
class Bloodhound < ActiveRecord::Base | ||
include ::NewRelic::Agent::MethodTracer | ||
|
||
def sniff | ||
puts "When a bloodhound sniffs a scent article (a piece of clothing or item touched only by the subject), " \ | ||
"air rushes through its nasal cavity and chemical vapors — or odors — lodge in the mucus and bombard the dog's " \ | ||
"scent receptors. " \ | ||
"Source: https://www.pbs.org/wnet/nature/underdogs-the-bloodhounds-amazing-sense-of-smell/350/" | ||
end | ||
|
||
add_method_tracer :sniff | ||
end | ||
|
||
Rails.application.config.active_record.timestamped_migrations = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This file is distributed under New Relic's license terms. | ||
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. | ||
# frozen_string_literal: true | ||
|
||
require 'new_relic/agent/method_tracer' | ||
|
||
class Bloodhound < ActiveRecord::Base | ||
include ::NewRelic::Agent::MethodTracer | ||
|
||
def sniff | ||
puts "When a bloodhound sniffs a scent article (a piece of clothing or item touched only by the subject), " \ | ||
"air rushes through its nasal cavity and chemical vapors — or odors — lodge in the mucus and bombard the dog's " \ | ||
"scent receptors. " \ | ||
"Source: https://www.pbs.org/wnet/nature/underdogs-the-bloodhounds-amazing-sense-of-smell/350/" | ||
end | ||
|
||
add_method_tracer :sniff | ||
end | ||
|
||
Rails.application.config.active_record.timestamped_migrations = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This file is distributed under New Relic's license terms. | ||
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. | ||
# frozen_string_literal: true | ||
|
||
require 'new_relic/agent/method_tracer' | ||
|
||
class Bloodhound < ActiveRecord::Base | ||
include ::NewRelic::Agent::MethodTracer | ||
|
||
def sniff | ||
puts "When a bloodhound sniffs a scent article (a piece of clothing or item touched only by the subject), " \ | ||
"air rushes through its nasal cavity and chemical vapors — or odors — lodge in the mucus and bombard the dog's " \ | ||
"scent receptors. " \ | ||
"Source: https://www.pbs.org/wnet/nature/underdogs-the-bloodhounds-amazing-sense-of-smell/350/" | ||
end | ||
|
||
add_method_tracer :sniff | ||
end | ||
|
||
Rails.application.config.active_record.timestamped_migrations = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This file is distributed under New Relic's license terms. | ||
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. | ||
# frozen_string_literal: true | ||
|
||
require 'new_relic/agent/method_tracer' | ||
|
||
class Bloodhound < ActiveRecord::Base | ||
include ::NewRelic::Agent::MethodTracer | ||
|
||
def sniff | ||
puts "When a bloodhound sniffs a scent article (a piece of clothing or item touched only by the subject), " \ | ||
"air rushes through its nasal cavity and chemical vapors — or odors — lodge in the mucus and bombard the dog's " \ | ||
"scent receptors. " \ | ||
"Source: https://www.pbs.org/wnet/nature/underdogs-the-bloodhounds-amazing-sense-of-smell/350/" | ||
end | ||
|
||
add_method_tracer :sniff | ||
end | ||
|
||
Rails.application.config.active_record.timestamped_migrations = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This file is distributed under New Relic's license terms. | ||
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. | ||
# frozen_string_literal: true | ||
|
||
require 'new_relic/agent/method_tracer' | ||
|
||
class Bloodhound < ActiveRecord::Base | ||
include ::NewRelic::Agent::MethodTracer | ||
|
||
def sniff | ||
puts "When a bloodhound sniffs a scent article (a piece of clothing or item touched only by the subject), " \ | ||
"air rushes through its nasal cavity and chemical vapors — or odors — lodge in the mucus and bombard the dog's " \ | ||
"scent receptors. " \ | ||
"Source: https://www.pbs.org/wnet/nature/underdogs-the-bloodhounds-amazing-sense-of-smell/350/" | ||
end | ||
|
||
add_method_tracer :sniff | ||
end | ||
|
||
Rails.application.config.active_record.timestamped_migrations = false |
Oops, something went wrong.