Class: Tracekit::Config::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/tracekit/config.rb

Overview

Builder class for constructing Config instances

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBuilder

Returns a new instance of Builder.



43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/tracekit/config.rb', line 43

def initialize
  # Set defaults in builder
  @endpoint = "app.tracekit.dev"
  @use_ssl = true
  @environment = "production"
  @service_version = "1.0.0"
  @enable_code_monitoring = true
  @code_monitoring_poll_interval = 30
  @local_ui_port = 9999
  @sampling_rate = 1.0
  @llm = { enabled: true, openai: true, anthropic: true, capture_content: false }
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



38
39
40
# File 'lib/tracekit/config.rb', line 38

def api_key
  @api_key
end

#code_monitoring_poll_intervalObject

Returns the value of attribute code_monitoring_poll_interval.



38
39
40
# File 'lib/tracekit/config.rb', line 38

def code_monitoring_poll_interval
  @code_monitoring_poll_interval
end

#enable_code_monitoringObject

Returns the value of attribute enable_code_monitoring.



38
39
40
# File 'lib/tracekit/config.rb', line 38

def enable_code_monitoring
  @enable_code_monitoring
end

#endpointObject

Returns the value of attribute endpoint.



38
39
40
# File 'lib/tracekit/config.rb', line 38

def endpoint
  @endpoint
end

#environmentObject

Returns the value of attribute environment.



38
39
40
# File 'lib/tracekit/config.rb', line 38

def environment
  @environment
end

#llmObject

Returns the value of attribute llm.



38
39
40
# File 'lib/tracekit/config.rb', line 38

def llm
  @llm
end

#local_ui_portObject

Returns the value of attribute local_ui_port.



38
39
40
# File 'lib/tracekit/config.rb', line 38

def local_ui_port
  @local_ui_port
end

#sampling_rateObject

Returns the value of attribute sampling_rate.



38
39
40
# File 'lib/tracekit/config.rb', line 38

def sampling_rate
  @sampling_rate
end

#service_nameObject

Returns the value of attribute service_name.



38
39
40
# File 'lib/tracekit/config.rb', line 38

def service_name
  @service_name
end

#service_versionObject

Returns the value of attribute service_version.



38
39
40
# File 'lib/tracekit/config.rb', line 38

def service_version
  @service_version
end

#use_sslObject

Returns the value of attribute use_ssl.



38
39
40
# File 'lib/tracekit/config.rb', line 38

def use_ssl
  @use_ssl
end