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.
-
#autoinstrument_rails ⇒ Object
Returns the value of attribute autoinstrument_rails.
-
#basic_auth_password ⇒ Object
Returns the value of attribute basic_auth_password.
-
#basic_auth_username ⇒ Object
Returns the value of attribute basic_auth_username.
-
#compression ⇒ Object
Returns the value of attribute compression.
-
#http_headers ⇒ Object
Returns the value of attribute http_headers.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#oncpu ⇒ Object
Returns the value of attribute oncpu.
-
#report_encoding ⇒ Object
Returns the value of attribute report_encoding.
-
#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.
-
#tenant_id ⇒ Object
Returns the value of attribute tenant_id.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/pyroscope.rb', line 46 def initialize(*) super # defaults: self.application_name = '' self.server_address = 'http://localhost:4040' self.basic_auth_username = '' self.basic_auth_password = '' self.sample_rate = 100 self.oncpu = true self.report_pid = false self.report_thread_id = false self.log_level = 'error' self. = {} self.compression = 'gzip' self.report_encoding = 'pprof' self.autoinstrument_rails = true self.tenant_id = '' self.http_headers = {} end |
Instance Attribute Details
#app_name ⇒ Object
Returns the value of attribute app_name
28 29 30 |
# File 'lib/pyroscope.rb', line 28 def app_name @app_name end |
#application_name ⇒ Object
Returns the value of attribute application_name
28 29 30 |
# File 'lib/pyroscope.rb', line 28 def application_name @application_name end |
#autoinstrument_rails ⇒ Object
Returns the value of attribute autoinstrument_rails
28 29 30 |
# File 'lib/pyroscope.rb', line 28 def autoinstrument_rails @autoinstrument_rails end |
#basic_auth_password ⇒ Object
Returns the value of attribute basic_auth_password
28 29 30 |
# File 'lib/pyroscope.rb', line 28 def basic_auth_password @basic_auth_password end |
#basic_auth_username ⇒ Object
Returns the value of attribute basic_auth_username
28 29 30 |
# File 'lib/pyroscope.rb', line 28 def basic_auth_username @basic_auth_username end |
#compression ⇒ Object
Returns the value of attribute compression
28 29 30 |
# File 'lib/pyroscope.rb', line 28 def compression @compression end |
#http_headers ⇒ Object
Returns the value of attribute http_headers
28 29 30 |
# File 'lib/pyroscope.rb', line 28 def http_headers @http_headers end |
#log_level ⇒ Object
Returns the value of attribute log_level
28 29 30 |
# File 'lib/pyroscope.rb', line 28 def log_level @log_level end |
#oncpu ⇒ Object
Returns the value of attribute oncpu
28 29 30 |
# File 'lib/pyroscope.rb', line 28 def oncpu @oncpu end |
#report_encoding ⇒ Object
Returns the value of attribute report_encoding
28 29 30 |
# File 'lib/pyroscope.rb', line 28 def report_encoding @report_encoding end |
#report_pid ⇒ Object
Returns the value of attribute report_pid
28 29 30 |
# File 'lib/pyroscope.rb', line 28 def report_pid @report_pid end |
#report_thread_id ⇒ Object
Returns the value of attribute report_thread_id
28 29 30 |
# File 'lib/pyroscope.rb', line 28 def report_thread_id @report_thread_id end |
#sample_rate ⇒ Object
Returns the value of attribute sample_rate
28 29 30 |
# File 'lib/pyroscope.rb', line 28 def sample_rate @sample_rate end |
#server_address ⇒ Object
Returns the value of attribute server_address
28 29 30 |
# File 'lib/pyroscope.rb', line 28 def server_address @server_address end |
#tags ⇒ Object
Returns the value of attribute tags
28 29 30 |
# File 'lib/pyroscope.rb', line 28 def @tags end |
#tenant_id ⇒ Object
Returns the value of attribute tenant_id
28 29 30 |
# File 'lib/pyroscope.rb', line 28 def tenant_id @tenant_id end |