Class: Pyroscope::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/pyroscope.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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.tags = {}
  self.compression = 'gzip'
  self.report_encoding = 'pprof'
  self.autoinstrument_rails = true
  self.tenant_id = ''
  self.http_headers = {}
end

Instance Attribute Details

#app_nameObject

Returns the value of attribute app_name

Returns:

  • (Object)

    the current value of app_name



36
37
38
# File 'lib/pyroscope.rb', line 36

def app_name
  @app_name
end

#application_nameObject

Returns the value of attribute application_name

Returns:

  • (Object)

    the current value of application_name



36
37
38
# File 'lib/pyroscope.rb', line 36

def application_name
  @application_name
end

#auth_tokenObject

Returns the value of attribute auth_token

Returns:

  • (Object)

    the current value of auth_token



36
37
38
# File 'lib/pyroscope.rb', line 36

def auth_token
  @auth_token
end

#autoinstrument_railsObject

Returns the value of attribute autoinstrument_rails

Returns:

  • (Object)

    the current value of autoinstrument_rails



36
37
38
# File 'lib/pyroscope.rb', line 36

def autoinstrument_rails
  @autoinstrument_rails
end

#basic_auth_passwordObject

Returns the value of attribute basic_auth_password

Returns:

  • (Object)

    the current value of basic_auth_password



36
37
38
# File 'lib/pyroscope.rb', line 36

def basic_auth_password
  @basic_auth_password
end

#basic_auth_usernameObject

Returns the value of attribute basic_auth_username

Returns:

  • (Object)

    the current value of basic_auth_username



36
37
38
# File 'lib/pyroscope.rb', line 36

def basic_auth_username
  @basic_auth_username
end

#compressionObject

Returns the value of attribute compression

Returns:

  • (Object)

    the current value of compression



36
37
38
# File 'lib/pyroscope.rb', line 36

def compression
  @compression
end

#detect_subprocessesObject

Returns the value of attribute detect_subprocesses

Returns:

  • (Object)

    the current value of detect_subprocesses



36
37
38
# File 'lib/pyroscope.rb', line 36

def detect_subprocesses
  @detect_subprocesses
end

#http_headersObject

Returns the value of attribute http_headers

Returns:

  • (Object)

    the current value of http_headers



36
37
38
# File 'lib/pyroscope.rb', line 36

def http_headers
  @http_headers
end

#log_levelObject

Returns the value of attribute log_level

Returns:

  • (Object)

    the current value of log_level



36
37
38
# File 'lib/pyroscope.rb', line 36

def log_level
  @log_level
end

#oncpuObject

Returns the value of attribute oncpu

Returns:

  • (Object)

    the current value of oncpu



36
37
38
# File 'lib/pyroscope.rb', line 36

def oncpu
  @oncpu
end

#report_encodingObject

Returns the value of attribute report_encoding

Returns:

  • (Object)

    the current value of report_encoding



36
37
38
# File 'lib/pyroscope.rb', line 36

def report_encoding
  @report_encoding
end

#report_pidObject

Returns the value of attribute report_pid

Returns:

  • (Object)

    the current value of report_pid



36
37
38
# File 'lib/pyroscope.rb', line 36

def report_pid
  @report_pid
end

#report_thread_idObject

Returns the value of attribute report_thread_id

Returns:

  • (Object)

    the current value of report_thread_id



36
37
38
# File 'lib/pyroscope.rb', line 36

def report_thread_id
  @report_thread_id
end

#sample_rateObject

Returns the value of attribute sample_rate

Returns:

  • (Object)

    the current value of sample_rate



36
37
38
# File 'lib/pyroscope.rb', line 36

def sample_rate
  @sample_rate
end

#server_addressObject

Returns the value of attribute server_address

Returns:

  • (Object)

    the current value of server_address



36
37
38
# File 'lib/pyroscope.rb', line 36

def server_address
  @server_address
end

#tagsObject

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



36
37
38
# File 'lib/pyroscope.rb', line 36

def tags
  @tags
end

#tenant_idObject

Returns the value of attribute tenant_id

Returns:

  • (Object)

    the current value of tenant_id



36
37
38
# File 'lib/pyroscope.rb', line 36

def tenant_id
  @tenant_id
end