Class: Sentry::Agents::Configuration
- Inherits:
-
Object
- Object
- Sentry::Agents::Configuration
- Defined in:
- lib/sentry/agents/configuration.rb
Overview
Configuration class for sentry-agents gem
Instance Attribute Summary collapse
-
#auto_instrument_langchainrb ⇒ Boolean
Enable auto-instrumentation for LangChain.rb gem.
-
#auto_instrument_ruby_llm ⇒ Boolean
Enable auto-instrumentation for RubyLLM gem.
-
#data_filter ⇒ Proc?
Custom data filter hook for sanitizing span data.
-
#debug ⇒ Boolean
Enable debug logging.
-
#default_system ⇒ String
Default LLM provider system name (e.g., "anthropic", "openai", "cohere").
-
#max_string_length ⇒ Integer
Maximum length for serialized strings in span attributes.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
38 39 40 41 42 43 44 45 |
# File 'lib/sentry/agents/configuration.rb', line 38 def initialize @default_system = "anthropic" @auto_instrument_ruby_llm = false @auto_instrument_langchainrb = false @max_string_length = 1000 @debug = false @data_filter = nil end |
Instance Attribute Details
#auto_instrument_langchainrb ⇒ Boolean
Enable auto-instrumentation for LangChain.rb gem
24 25 26 |
# File 'lib/sentry/agents/configuration.rb', line 24 def auto_instrument_langchainrb @auto_instrument_langchainrb end |
#auto_instrument_ruby_llm ⇒ Boolean
Enable auto-instrumentation for RubyLLM gem
20 21 22 |
# File 'lib/sentry/agents/configuration.rb', line 20 def auto_instrument_ruby_llm @auto_instrument_ruby_llm end |
#data_filter ⇒ Proc?
Custom data filter hook for sanitizing span data
36 37 38 |
# File 'lib/sentry/agents/configuration.rb', line 36 def data_filter @data_filter end |
#debug ⇒ Boolean
Enable debug logging
32 33 34 |
# File 'lib/sentry/agents/configuration.rb', line 32 def debug @debug end |
#default_system ⇒ String
Default LLM provider system name (e.g., "anthropic", "openai", "cohere")
16 17 18 |
# File 'lib/sentry/agents/configuration.rb', line 16 def default_system @default_system end |
#max_string_length ⇒ Integer
Maximum length for serialized strings in span attributes
28 29 30 |
# File 'lib/sentry/agents/configuration.rb', line 28 def max_string_length @max_string_length end |