Class: Riffer::Config::Tracing
- Inherits:
-
Object
- Object
- Riffer::Config::Tracing
- Defined in:
- lib/riffer/config.rb
Overview
Tracing-related global configuration.
Instance Attribute Summary collapse
-
#capture_messages ⇒ Object
Whether LLM-call spans capture full message content (
gen_ai.input.messages,gen_ai.output.messages,gen_ai.system_instructions); defaults tofalse— message content routinely carries sensitive data. -
#enabled ⇒ Object
Whether riffer emits OTEL spans; defaults to
true, a no-op until a host wires an OTEL SDK. -
#tracer_provider ⇒ Object
Explicit OTEL tracer provider; defaults to
nil, which resolves the globalOpenTelemetry.tracer_providerat first span.
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 @tracer_provider = nil end |
Instance Attribute Details
#capture_messages ⇒ Object
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 ⇒ Object
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 |
#tracer_provider ⇒ Object
Explicit OTEL tracer provider; defaults to nil, which resolves the global OpenTelemetry.tracer_provider at first span.
66 67 68 |
# File 'lib/riffer/config.rb', line 66 def tracer_provider @tracer_provider end |