Class: Langfuse::Configuration

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

Overview

Configuration class for Langfuse client settings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



164
165
166
167
168
169
170
171
172
173
174
# File 'lib/langfuse.rb', line 164

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
end

Instance Attribute Details

#auto_flushObject

Returns the value of attribute auto_flush.



161
162
163
# File 'lib/langfuse.rb', line 161

def auto_flush
  @auto_flush
end

#debugObject

Returns the value of attribute debug.



161
162
163
# File 'lib/langfuse.rb', line 161

def debug
  @debug
end

#flush_intervalObject

Returns the value of attribute flush_interval.



161
162
163
# File 'lib/langfuse.rb', line 161

def flush_interval
  @flush_interval
end

#hostObject

Returns the value of attribute host.



161
162
163
# File 'lib/langfuse.rb', line 161

def host
  @host
end

#ingestion_modeObject

Returns the value of attribute ingestion_mode.



161
162
163
# File 'lib/langfuse.rb', line 161

def ingestion_mode
  @ingestion_mode
end

#public_keyObject

Returns the value of attribute public_key.



161
162
163
# File 'lib/langfuse.rb', line 161

def public_key
  @public_key
end

#retriesObject

Returns the value of attribute retries.



161
162
163
# File 'lib/langfuse.rb', line 161

def retries
  @retries
end

#secret_keyObject

Returns the value of attribute secret_key.



161
162
163
# File 'lib/langfuse.rb', line 161

def secret_key
  @secret_key
end

#timeoutObject

Returns the value of attribute timeout.



161
162
163
# File 'lib/langfuse.rb', line 161

def timeout
  @timeout
end