Class: Riffer::Config::Tracing
- Inherits:
-
Object
- Object
- Riffer::Config::Tracing
- Defined in:
- lib/riffer/config.rb,
sig/generated/riffer/config.rbs
Overview
Tracing-related global configuration.
Instance Attribute Summary collapse
-
#backend ⇒ Object
The backend riffer routes spans through; defaults to
nil, a no-op. -
#capture_messages ⇒ Boolean
Whether LLM-call spans capture full message content (gen_ai.input.messages, gen_ai.output.messages, gen_ai.system_instructions); defaults to
false— message content routinely carries sensitive data. -
#enabled ⇒ Boolean
Whether riffer emits OTEL spans; defaults to
true, a no-op until a host wires an OTEL SDK.
Instance Method Summary collapse
-
#initialize ⇒ Tracing
constructor
-- : () -> void.
Constructor Details
#initialize ⇒ Tracing
-- : () -> void
70 71 72 73 74 |
# File 'lib/riffer/config.rb', line 70 def initialize @enabled = true @capture_messages = false @backend = nil end |
Instance Attribute Details
#backend ⇒ Object
The backend riffer routes spans through; defaults to nil, a no-op.
Riffer auto-detects no backend; assigning one is opt-in.
66 67 68 |
# File 'lib/riffer/config.rb', line 66 def backend @backend end |
#capture_messages ⇒ Boolean
Whether LLM-call spans capture full message content
(gen_ai.input.messages, gen_ai.output.messages,
gen_ai.system_instructions); defaults to false — message
content routinely carries sensitive data.
62 63 64 |
# File 'lib/riffer/config.rb', line 62 def @capture_messages end |
#enabled ⇒ Boolean
Whether riffer emits OTEL spans; defaults to true, a no-op until a
host wires an OTEL SDK.
56 57 58 |
# File 'lib/riffer/config.rb', line 56 def enabled @enabled end |