Class: Pyroscope::Config
- Inherits:
-
Struct
- Object
- Struct
- Pyroscope::Config
- Defined in:
- lib/pyroscope_beta.rb
Instance Attribute Summary collapse
-
#application_name ⇒ Object
Returns the value of attribute application_name.
-
#detect_subprocesses ⇒ Object
Returns the value of attribute detect_subprocesses.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#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.
18 19 20 21 22 23 24 25 26 |
# File 'lib/pyroscope_beta.rb', line 18 def initialize(*) super self.application_name ||= '' self.server_address ||= 'http://localhost:4040' self.sample_rate ||= 100 self.detect_subprocesses ||= true self.log_level ||= 'info' self. ||= [] end |
Instance Attribute Details
#application_name ⇒ Object
Returns the value of attribute application_name
17 18 19 |
# File 'lib/pyroscope_beta.rb', line 17 def application_name @application_name end |
#detect_subprocesses ⇒ Object
Returns the value of attribute detect_subprocesses
17 18 19 |
# File 'lib/pyroscope_beta.rb', line 17 def detect_subprocesses @detect_subprocesses end |
#log_level ⇒ Object
Returns the value of attribute log_level
17 18 19 |
# File 'lib/pyroscope_beta.rb', line 17 def log_level @log_level end |
#sample_rate ⇒ Object
Returns the value of attribute sample_rate
17 18 19 |
# File 'lib/pyroscope_beta.rb', line 17 def sample_rate @sample_rate end |
#server_address ⇒ Object
Returns the value of attribute server_address
17 18 19 |
# File 'lib/pyroscope_beta.rb', line 17 def server_address @server_address end |
#tags ⇒ Object
Returns the value of attribute tags
17 18 19 |
# File 'lib/pyroscope_beta.rb', line 17 def @tags end |