Class: Pyroscope::Config
- Inherits:
-
Struct
- Object
- Struct
- Pyroscope::Config
- Defined in:
- lib/pyroscope.rb
Instance Attribute Summary collapse
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#application_name ⇒ Object
Returns the value of attribute application_name.
-
#auth_token ⇒ Object
Returns the value of attribute auth_token.
-
#detect_subprocesses ⇒ Object
Returns the value of attribute detect_subprocesses.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#on_cpu ⇒ Object
Returns the value of attribute on_cpu.
-
#report_pid ⇒ Object
Returns the value of attribute report_pid.
-
#report_thread_id ⇒ Object
Returns the value of attribute report_thread_id.
-
#sample_rate ⇒ Object
Returns the value of attribute sample_rate.
-
#server_address ⇒ Object
Returns the value of attribute server_address.
-
#tags ⇒ Object
Returns the value of attribute tags.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/pyroscope.rb', line 20 def initialize(*) super self.application_name ||= '' self.server_address ||= 'http://localhost:4040' self.auth_token ||= '' self.sample_rate ||= 100 self.detect_subprocesses ||= true self.on_cpu ||= true self.report_pid ||= false self.report_thread_id ||= false self.log_level ||= 'info' self. ||= [] end |
Instance Attribute Details
#app_name ⇒ Object
Returns the value of attribute app_name
19 20 21 |
# File 'lib/pyroscope.rb', line 19 def app_name @app_name end |
#application_name ⇒ Object
Returns the value of attribute application_name
19 20 21 |
# File 'lib/pyroscope.rb', line 19 def application_name @application_name end |
#auth_token ⇒ Object
Returns the value of attribute auth_token
19 20 21 |
# File 'lib/pyroscope.rb', line 19 def auth_token @auth_token end |
#detect_subprocesses ⇒ Object
Returns the value of attribute detect_subprocesses
19 20 21 |
# File 'lib/pyroscope.rb', line 19 def detect_subprocesses @detect_subprocesses end |
#log_level ⇒ Object
Returns the value of attribute log_level
19 20 21 |
# File 'lib/pyroscope.rb', line 19 def log_level @log_level end |
#on_cpu ⇒ Object
Returns the value of attribute on_cpu
19 20 21 |
# File 'lib/pyroscope.rb', line 19 def on_cpu @on_cpu end |
#report_pid ⇒ Object
Returns the value of attribute report_pid
19 20 21 |
# File 'lib/pyroscope.rb', line 19 def report_pid @report_pid end |
#report_thread_id ⇒ Object
Returns the value of attribute report_thread_id
19 20 21 |
# File 'lib/pyroscope.rb', line 19 def report_thread_id @report_thread_id end |
#sample_rate ⇒ Object
Returns the value of attribute sample_rate
19 20 21 |
# File 'lib/pyroscope.rb', line 19 def sample_rate @sample_rate end |
#server_address ⇒ Object
Returns the value of attribute server_address
19 20 21 |
# File 'lib/pyroscope.rb', line 19 def server_address @server_address end |
#tags ⇒ Object
Returns the value of attribute tags
19 20 21 |
# File 'lib/pyroscope.rb', line 19 def @tags end |