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.
-
#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.
-
#detect_subprocesses ⇒ Object
Returns the value of attribute detect_subprocesses.
-
#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.
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/pyroscope.rb', line 56 def initialize(*) super # defaults: self.application_name = '' self.server_address = 'http://localhost:4040' self.auth_token = '' self.basic_auth_username = '' self.basic_auth_password = '' self.sample_rate = 100 self.detect_subprocesses = false 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
36 37 38 |
# File 'lib/pyroscope.rb', line 36 def app_name @app_name end |
#application_name ⇒ Object
Returns the value of attribute application_name
36 37 38 |
# File 'lib/pyroscope.rb', line 36 def application_name @application_name end |
#auth_token ⇒ Object
Returns the value of attribute auth_token
36 37 38 |
# File 'lib/pyroscope.rb', line 36 def auth_token @auth_token end |
#autoinstrument_rails ⇒ Object
Returns the value of attribute autoinstrument_rails
36 37 38 |
# File 'lib/pyroscope.rb', line 36 def autoinstrument_rails @autoinstrument_rails end |
#basic_auth_password ⇒ Object
Returns the value of attribute basic_auth_password
36 37 38 |
# File 'lib/pyroscope.rb', line 36 def basic_auth_password @basic_auth_password end |
#basic_auth_username ⇒ Object
Returns the value of attribute basic_auth_username
36 37 38 |
# File 'lib/pyroscope.rb', line 36 def basic_auth_username @basic_auth_username end |
#compression ⇒ Object
Returns the value of attribute compression
36 37 38 |
# File 'lib/pyroscope.rb', line 36 def compression @compression end |
#detect_subprocesses ⇒ Object
Returns the value of attribute detect_subprocesses
36 37 38 |
# File 'lib/pyroscope.rb', line 36 def detect_subprocesses @detect_subprocesses end |
#http_headers ⇒ Object
Returns the value of attribute http_headers
36 37 38 |
# File 'lib/pyroscope.rb', line 36 def http_headers @http_headers end |
#log_level ⇒ Object
Returns the value of attribute log_level
36 37 38 |
# File 'lib/pyroscope.rb', line 36 def log_level @log_level end |
#oncpu ⇒ Object
Returns the value of attribute oncpu
36 37 38 |
# File 'lib/pyroscope.rb', line 36 def oncpu @oncpu end |
#report_encoding ⇒ Object
Returns the value of attribute report_encoding
36 37 38 |
# File 'lib/pyroscope.rb', line 36 def report_encoding @report_encoding end |
#report_pid ⇒ Object
Returns the value of attribute report_pid
36 37 38 |
# File 'lib/pyroscope.rb', line 36 def report_pid @report_pid end |
#report_thread_id ⇒ Object
Returns the value of attribute report_thread_id
36 37 38 |
# File 'lib/pyroscope.rb', line 36 def report_thread_id @report_thread_id end |
#sample_rate ⇒ Object
Returns the value of attribute sample_rate
36 37 38 |
# File 'lib/pyroscope.rb', line 36 def sample_rate @sample_rate end |
#server_address ⇒ Object
Returns the value of attribute server_address
36 37 38 |
# File 'lib/pyroscope.rb', line 36 def server_address @server_address end |
#tags ⇒ Object
Returns the value of attribute tags
36 37 38 |
# File 'lib/pyroscope.rb', line 36 def end |
#tenant_id ⇒ Object
Returns the value of attribute tenant_id
36 37 38 |
# File 'lib/pyroscope.rb', line 36 def tenant_id @tenant_id end |