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.



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.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



28
29
30
# File 'lib/pyroscope.rb', line 28

def app_name
  @app_name
end

#application_nameObject

Returns the value of attribute application_name

Returns:

  • (Object)

    the current value of application_name



28
29
30
# File 'lib/pyroscope.rb', line 28

def application_name
  @application_name
end

#autoinstrument_railsObject

Returns the value of attribute autoinstrument_rails

Returns:

  • (Object)

    the current value of autoinstrument_rails



28
29
30
# File 'lib/pyroscope.rb', line 28

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



28
29
30
# File 'lib/pyroscope.rb', line 28

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



28
29
30
# File 'lib/pyroscope.rb', line 28

def basic_auth_username
  @basic_auth_username
end

#compressionObject

Returns the value of attribute compression

Returns:

  • (Object)

    the current value of compression



28
29
30
# File 'lib/pyroscope.rb', line 28

def compression
  @compression
end

#http_headersObject

Returns the value of attribute http_headers

Returns:

  • (Object)

    the current value of http_headers



28
29
30
# File 'lib/pyroscope.rb', line 28

def http_headers
  @http_headers
end

#log_levelObject

Returns the value of attribute log_level

Returns:

  • (Object)

    the current value of log_level



28
29
30
# File 'lib/pyroscope.rb', line 28

def log_level
  @log_level
end

#oncpuObject

Returns the value of attribute oncpu

Returns:

  • (Object)

    the current value of oncpu



28
29
30
# File 'lib/pyroscope.rb', line 28

def oncpu
  @oncpu
end

#report_encodingObject

Returns the value of attribute report_encoding

Returns:

  • (Object)

    the current value of report_encoding



28
29
30
# File 'lib/pyroscope.rb', line 28

def report_encoding
  @report_encoding
end

#report_pidObject

Returns the value of attribute report_pid

Returns:

  • (Object)

    the current value of report_pid



28
29
30
# File 'lib/pyroscope.rb', line 28

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



28
29
30
# File 'lib/pyroscope.rb', line 28

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



28
29
30
# File 'lib/pyroscope.rb', line 28

def sample_rate
  @sample_rate
end

#server_addressObject

Returns the value of attribute server_address

Returns:

  • (Object)

    the current value of server_address



28
29
30
# File 'lib/pyroscope.rb', line 28

def server_address
  @server_address
end

#tagsObject

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



28
29
30
# File 'lib/pyroscope.rb', line 28

def tags
  @tags
end

#tenant_idObject

Returns the value of attribute tenant_id

Returns:

  • (Object)

    the current value of tenant_id



28
29
30
# File 'lib/pyroscope.rb', line 28

def tenant_id
  @tenant_id
end