Class: Tracekit::Config::Builder
- Inherits:
-
Object
- Object
- Tracekit::Config::Builder
- Defined in:
- lib/tracekit/config.rb
Overview
Builder class for constructing Config instances
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#code_monitoring_poll_interval ⇒ Object
Returns the value of attribute code_monitoring_poll_interval.
-
#enable_code_monitoring ⇒ Object
Returns the value of attribute enable_code_monitoring.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#llm ⇒ Object
Returns the value of attribute llm.
-
#local_ui_port ⇒ Object
Returns the value of attribute local_ui_port.
-
#sampling_rate ⇒ Object
Returns the value of attribute sampling_rate.
-
#service_name ⇒ Object
Returns the value of attribute service_name.
-
#service_version ⇒ Object
Returns the value of attribute service_version.
-
#use_ssl ⇒ Object
Returns the value of attribute use_ssl.
Instance Method Summary collapse
-
#initialize ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize ⇒ Builder
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_key ⇒ Object
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_interval ⇒ Object
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_monitoring ⇒ Object
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 |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
38 39 40 |
# File 'lib/tracekit/config.rb', line 38 def endpoint @endpoint end |
#environment ⇒ Object
Returns the value of attribute environment.
38 39 40 |
# File 'lib/tracekit/config.rb', line 38 def environment @environment end |
#llm ⇒ Object
Returns the value of attribute llm.
38 39 40 |
# File 'lib/tracekit/config.rb', line 38 def llm @llm end |
#local_ui_port ⇒ Object
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_rate ⇒ Object
Returns the value of attribute sampling_rate.
38 39 40 |
# File 'lib/tracekit/config.rb', line 38 def sampling_rate @sampling_rate end |
#service_name ⇒ Object
Returns the value of attribute service_name.
38 39 40 |
# File 'lib/tracekit/config.rb', line 38 def service_name @service_name end |
#service_version ⇒ Object
Returns the value of attribute service_version.
38 39 40 |
# File 'lib/tracekit/config.rb', line 38 def service_version @service_version end |
#use_ssl ⇒ Object
Returns the value of attribute use_ssl.
38 39 40 |
# File 'lib/tracekit/config.rb', line 38 def use_ssl @use_ssl end |