Class: Langfuse::Configuration
- Inherits:
-
Object
- Object
- Langfuse::Configuration
- Defined in:
- lib/langfuse.rb
Overview
Configuration class for Langfuse client settings
Instance Attribute Summary collapse
-
#auto_flush ⇒ Object
Returns the value of attribute auto_flush.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#flush_at ⇒ Object
Returns the value of attribute flush_at.
-
#flush_interval ⇒ Object
Returns the value of attribute flush_interval.
-
#host ⇒ Object
Returns the value of attribute host.
-
#ingestion_mode ⇒ Object
Returns the value of attribute ingestion_mode.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#mask ⇒ Object
Returns the value of attribute mask.
-
#public_key ⇒ Object
Returns the value of attribute public_key.
-
#retries ⇒ Object
Returns the value of attribute retries.
-
#sample_rate ⇒ Object
Returns the value of attribute sample_rate.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#shutdown_on_exit ⇒ Object
Returns the value of attribute shutdown_on_exit.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/langfuse.rb', line 166 def initialize @public_key = nil @secret_key = nil @host = 'https://us.cloud.langfuse.com' @debug = false @timeout = 30 @retries = 3 @flush_interval = 5 @auto_flush = true @ingestion_mode = :legacy # :legacy or :otel @environment = nil # default tracing environment for all events @sample_rate = nil # 0.0..1.0, nil disables sampling @mask = nil # callable applied to input/output/metadata before sending @flush_at = 15 # flush as soon as this many events are queued @logger = nil # custom Logger instance @shutdown_on_exit = true # register an at_exit hook that flushes pending events end |
Instance Attribute Details
#auto_flush ⇒ Object
Returns the value of attribute auto_flush.
163 164 165 |
# File 'lib/langfuse.rb', line 163 def auto_flush @auto_flush end |
#debug ⇒ Object
Returns the value of attribute debug.
163 164 165 |
# File 'lib/langfuse.rb', line 163 def debug @debug end |
#environment ⇒ Object
Returns the value of attribute environment.
163 164 165 |
# File 'lib/langfuse.rb', line 163 def environment @environment end |
#flush_at ⇒ Object
Returns the value of attribute flush_at.
163 164 165 |
# File 'lib/langfuse.rb', line 163 def flush_at @flush_at end |
#flush_interval ⇒ Object
Returns the value of attribute flush_interval.
163 164 165 |
# File 'lib/langfuse.rb', line 163 def flush_interval @flush_interval end |
#host ⇒ Object
Returns the value of attribute host.
163 164 165 |
# File 'lib/langfuse.rb', line 163 def host @host end |
#ingestion_mode ⇒ Object
Returns the value of attribute ingestion_mode.
163 164 165 |
# File 'lib/langfuse.rb', line 163 def ingestion_mode @ingestion_mode end |
#logger ⇒ Object
Returns the value of attribute logger.
163 164 165 |
# File 'lib/langfuse.rb', line 163 def logger @logger end |
#mask ⇒ Object
Returns the value of attribute mask.
163 164 165 |
# File 'lib/langfuse.rb', line 163 def mask @mask end |
#public_key ⇒ Object
Returns the value of attribute public_key.
163 164 165 |
# File 'lib/langfuse.rb', line 163 def public_key @public_key end |
#retries ⇒ Object
Returns the value of attribute retries.
163 164 165 |
# File 'lib/langfuse.rb', line 163 def retries @retries end |
#sample_rate ⇒ Object
Returns the value of attribute sample_rate.
163 164 165 |
# File 'lib/langfuse.rb', line 163 def sample_rate @sample_rate end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
163 164 165 |
# File 'lib/langfuse.rb', line 163 def secret_key @secret_key end |
#shutdown_on_exit ⇒ Object
Returns the value of attribute shutdown_on_exit.
163 164 165 |
# File 'lib/langfuse.rb', line 163 def shutdown_on_exit @shutdown_on_exit end |
#timeout ⇒ Object
Returns the value of attribute timeout.
163 164 165 |
# File 'lib/langfuse.rb', line 163 def timeout @timeout end |