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.



22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/pyroscope.rb', line 22

def initialize(*)
  self.application_name = ''
  self.server_address = 'http://localhost:4040'
  self.auth_token = ''
  self.sample_rate = 100
  self.detect_subprocesses = false
  self.on_cpu = true
  self.report_pid = false
  self.report_thread_id = false
  self.log_level = 'info'
  self.tags = {}
  super
end

Instance Attribute Details

#app_nameObject

Returns the value of attribute app_name

Returns:

  • (Object)

    the current value of app_name



21
22
23
# File 'lib/pyroscope.rb', line 21

def app_name
  @app_name
end

#application_nameObject

Returns the value of attribute application_name

Returns:

  • (Object)

    the current value of application_name



21
22
23
# File 'lib/pyroscope.rb', line 21

def application_name
  @application_name
end

#auth_tokenObject

Returns the value of attribute auth_token

Returns:

  • (Object)

    the current value of auth_token



21
22
23
# File 'lib/pyroscope.rb', line 21

def auth_token
  @auth_token
end

#detect_subprocessesObject

Returns the value of attribute detect_subprocesses

Returns:

  • (Object)

    the current value of detect_subprocesses



21
22
23
# File 'lib/pyroscope.rb', line 21

def detect_subprocesses
  @detect_subprocesses
end

#log_levelObject

Returns the value of attribute log_level

Returns:

  • (Object)

    the current value of log_level



21
22
23
# File 'lib/pyroscope.rb', line 21

def log_level
  @log_level
end

#on_cpuObject

Returns the value of attribute on_cpu

Returns:

  • (Object)

    the current value of on_cpu



21
22
23
# File 'lib/pyroscope.rb', line 21

def on_cpu
  @on_cpu
end

#report_pidObject

Returns the value of attribute report_pid

Returns:

  • (Object)

    the current value of report_pid



21
22
23
# File 'lib/pyroscope.rb', line 21

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



21
22
23
# File 'lib/pyroscope.rb', line 21

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



21
22
23
# File 'lib/pyroscope.rb', line 21

def sample_rate
  @sample_rate
end

#server_addressObject

Returns the value of attribute server_address

Returns:

  • (Object)

    the current value of server_address



21
22
23
# File 'lib/pyroscope.rb', line 21

def server_address
  @server_address
end

#tagsObject

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



21
22
23
# File 'lib/pyroscope.rb', line 21

def tags
  @tags
end