manually triggering newrelic errors

Developer from somewhere

I triggered an error manually from the console like this:

irb(main):008:0> NewRelic::Agent.manual_start
=> [NewRelic::Agent::Samplers::CpuSampler, NewRelic::Agent::Samplers::MemorySampler, NewRelic::Agent::Samplers::ObjectSampler, NewRelic::Agent::
Samplers::DelayedJobSampler]
irb(main):009:0> NewRelic::Agent.notice_error(RuntimeError.new("no way"))

Of course when running in an environment where the agent is already started, you’d have to call only notice_error.