Class: Pyroscope::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



18
19
20
21
22
23
24
25
26
# File 'lib/pyroscope_beta.rb', line 18

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

Instance Attribute Details

#application_nameObject

Returns the value of attribute application_name

Returns:

  • (Object)

    the current value of application_name



17
18
19
# File 'lib/pyroscope_beta.rb', line 17

def application_name
  @application_name
end

#detect_subprocessesObject

Returns the value of attribute detect_subprocesses

Returns:

  • (Object)

    the current value of detect_subprocesses



17
18
19
# File 'lib/pyroscope_beta.rb', line 17

def detect_subprocesses
  @detect_subprocesses
end

#log_levelObject

Returns the value of attribute log_level

Returns:

  • (Object)

    the current value of log_level



17
18
19
# File 'lib/pyroscope_beta.rb', line 17

def log_level
  @log_level
end

#sample_rateObject

Returns the value of attribute sample_rate

Returns:

  • (Object)

    the current value of sample_rate



17
18
19
# File 'lib/pyroscope_beta.rb', line 17

def sample_rate
  @sample_rate
end

#server_addressObject

Returns the value of attribute server_address

Returns:

  • (Object)

    the current value of server_address



17
18
19
# File 'lib/pyroscope_beta.rb', line 17

def server_address
  @server_address
end

#tagsObject

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



17
18
19
# File 'lib/pyroscope_beta.rb', line 17

def tags
  @tags
end