Sha256: be618db489d33253eaa2ef302e53c363b128a7d9f805e1339451337efce171a2
Contents?: true
Size: 755 Bytes
Versions: 19
Compression:
Stored size: 755 Bytes
Contents
# encoding: utf-8 # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. class ErrorCollectorTests < Performance::TestCase def setup @txn_name = "Controller/blogs/index".freeze @err_msg = "Sorry!".freeze end def test_notice_error measure do in_transaction :name => @txn_name do NewRelic::Agent.notice_error StandardError.new @err_msg end end end def test_notice_error_with_custom_attributes opts = {:custom_params => {:name => "Wes Mantooth", :channel => 9}} measure do in_transaction :name => @txn_name do NewRelic::Agent.notice_error StandardError.new(@err_msg), opts end end end end
Version data entries
19 entries across 19 versions & 2 rubygems