Sha256: 87cc187b66efe448cbfa4ff52b2b0ad714a12e6e195103cde82f28f658963540

Contents?: true

Size: 1.94 KB

Versions: 21

Compression:

Stored size: 1.94 KB

Contents

#!/usr/bin/env ruby
# 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.

ENV["NEW_RELIC_LOG_FILE_PATH"] = "STDOUT"

# This file tries to require the minimum amount of the agent, and then call
# public API methods on it to ensure that they don't raise exceptions. It is
# expected to be called from a driver test which will check for failure in the
# status code and/or output.

require 'new_relic/agent'

NewRelic::Agent.record_metric("Custom/Record", 1)
NewRelic::Agent.increment_metric("Custom/Increment", 1)

NewRelic::Agent.require_test_helper
NewRelic::Agent.add_instrumentation("*_foobar.rb")

NewRelic::Agent.ignore_error_filter do
end

NewRelic::Agent.notice_error(StandardError.new("Always an option"))

NewRelic::Agent.record_custom_event(:DontStart, :dont => "even")

NewRelic::Agent.ignore_transaction
NewRelic::Agent.ignore_apdex
NewRelic::Agent.ignore_enduser

NewRelic::Agent.disable_all_tracing do
end

NewRelic::Agent.disable_transaction_tracing do
end

NewRelic::Agent.disable_sql_recording do
end

NewRelic::Agent.set_transaction_name("Something/Different")
NewRelic::Agent.get_transaction_name

NewRelic::Agent.with_database_metric_name("Model", "Method") do
end

NewRelic::Agent.set_sql_obfuscator do
end

NewRelic::Agent.browser_timing_header
NewRelic::Agent.browser_timing_footer

NewRelic::Agent.add_custom_attributes(:custom => "attributes")
NewRelic::Agent.add_custom_parameters(:custom => "parameters")
NewRelic::Agent.add_request_parameters(:request => "parameters")
NewRelic::Agent.set_user_attributes(:user => "attributes")

NewRelic::Agent.get_stats("Foo/Bar")
NewRelic::Agent.get_stats_no_scope("Foo/Bar")
NewRelic::Agent.reset_stats
NewRelic::Agent.drop_buffered_data

NewRelic::Agent.abort_transaction!

NewRelic::Agent.after_fork(options={})
NewRelic::Agent.shutdown(options={})

NewRelic::Agent::Deprecator.deprecate("SomeClass#old_method")

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
newrelic_rpm-3.18.1.330 test/multiverse/suites/agent_only/script/public_api_when_disabled.rb
newrelic_rpm-3.18.0.329 test/multiverse/suites/agent_only/script/public_api_when_disabled.rb
newrelic_rpm-3.17.2.327 test/multiverse/suites/agent_only/script/public_api_when_disabled.rb
newrelic_rpm-3.17.1.326 test/multiverse/suites/agent_only/script/public_api_when_disabled.rb
newrelic_rpm-3.17.0.325 test/multiverse/suites/agent_only/script/public_api_when_disabled.rb
newrelic_rpm-3.16.3.323 test/multiverse/suites/agent_only/script/public_api_when_disabled.rb
newrelic_rpm-3.16.2.321 test/multiverse/suites/agent_only/script/public_api_when_disabled.rb
newrelic_rpm-3.16.1.320 test/multiverse/suites/agent_only/script/public_api_when_disabled.rb
newrelic_rpm-3.16.0.318 test/multiverse/suites/agent_only/script/public_api_when_disabled.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-3.15.2.317/test/multiverse/suites/agent_only/script/public_api_when_disabled.rb
newrelic_rpm-3.15.2.317 test/multiverse/suites/agent_only/script/public_api_when_disabled.rb
newrelic_rpm-3.15.1.316 test/multiverse/suites/agent_only/script/public_api_when_disabled.rb
newrelic_rpm-3.15.0.314 test/multiverse/suites/agent_only/script/public_api_when_disabled.rb
newrelic_rpm-3.14.3.313 test/multiverse/suites/agent_only/script/public_api_when_disabled.rb
newrelic_rpm-3.14.2.312 test/multiverse/suites/agent_only/script/public_api_when_disabled.rb
newrelic_rpm-3.14.1.311 test/multiverse/suites/agent_only/script/public_api_when_disabled.rb
newrelic_rpm-3.14.0.305 test/multiverse/suites/agent_only/script/public_api_when_disabled.rb
newrelic_rpm-3.13.2.302 test/multiverse/suites/agent_only/script/public_api_when_disabled.rb
newrelic_rpm-3.13.1.300 test/multiverse/suites/agent_only/script/public_api_when_disabled.rb
newrelic_rpm-3.13.0.299 test/multiverse/suites/agent_only/script/public_api_when_disabled.rb