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.



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

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

Instance Attribute Details

#app_nameObject

Returns the value of attribute app_name

Returns:

  • (Object)

    the current value of app_name



19
20
21
# File 'lib/pyroscope.rb', line 19

def app_name
  @app_name
end

#application_nameObject

Returns the value of attribute application_name

Returns:

  • (Object)

    the current value of application_name



19
20
21
# File 'lib/pyroscope.rb', line 19

def application_name
  @application_name
end

#auth_tokenObject

Returns the value of attribute auth_token

Returns:

  • (Object)

    the current value of auth_token



19
20
21
# File 'lib/pyroscope.rb', line 19

def auth_token
  @auth_token
end

#detect_subprocessesObject

Returns the value of attribute detect_subprocesses

Returns:

  • (Object)

    the current value of detect_subprocesses



19
20
21
# File 'lib/pyroscope.rb', line 19

def detect_subprocesses
  @detect_subprocesses
end

#log_levelObject

Returns the value of attribute log_level

Returns:

  • (Object)

    the current value of log_level



19
20
21
# File 'lib/pyroscope.rb', line 19

def log_level
  @log_level
end

#on_cpuObject

Returns the value of attribute on_cpu

Returns:

  • (Object)

    the current value of on_cpu



19
20
21
# File 'lib/pyroscope.rb', line 19

def on_cpu
  @on_cpu
end

#report_pidObject

Returns the value of attribute report_pid

Returns:

  • (Object)

    the current value of report_pid



19
20
21
# File 'lib/pyroscope.rb', line 19

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



19
20
21
# File 'lib/pyroscope.rb', line 19

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



19
20
21
# File 'lib/pyroscope.rb', line 19

def sample_rate
  @sample_rate
end

#server_addressObject

Returns the value of attribute server_address

Returns:

  • (Object)

    the current value of server_address



19
20
21
# File 'lib/pyroscope.rb', line 19

def server_address
  @server_address
end

#tagsObject

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



19
20
21
# File 'lib/pyroscope.rb', line 19

def tags
  @tags
end