Class: NewRelic::Control::Frameworks::Sinatra

Inherits:
Ruby show all
Defined in:
lib/new_relic/control/frameworks/sinatra.rb

Overview

Contains basic control logic for Sinatra

Instance Attribute Summary

Attributes included from InstanceMethods

#local_env

Attributes included from LoggingMethods

#log_file

Instance Method Summary collapse

Methods inherited from Ruby

#config_file, #root, #to_stdout

Methods included from ClassMethods

#instance, #load_framework_class, #load_test_framework, #local_env, #new_instance, #newrelic_root

Methods included from InstanceMethods

#[], #app, #dispatcher, #init_plugin, #settings, #start_agent, #to_s

Methods included from LanguageSupport::Control

included

Methods included from LoggingMethods

#find_or_create_file_path, #log, #log!, #log_path, #log_to_stdout?, #set_log_format!, #set_log_level!, #setup_log, #should_log?, #to_stdout

Methods included from Instrumentation

#add_instrumentation, #install_instrumentation, #install_shim, #load_instrumentation_files, #load_samplers

Methods included from ServerMethods

#api_server, #cert_file_path, #convert_to_ip_address, #http_connection, #proxy_server, #resolve_ip_address, #server, #server_from_host

Methods included from Profiling

#profiling=, #profiling?, #profiling_available?

Instance Method Details

#envObject



9
10
11
# File 'lib/new_relic/control/frameworks/sinatra.rb', line 9

def env
  @env ||= ENV['RACK_ENV'] || ENV['RAILS_ENV'] || 'development'
end

#init_config(options = {}) ⇒ Object



13
14
15
# File 'lib/new_relic/control/frameworks/sinatra.rb', line 13

def init_config(options={})
  super
end