Class: Riffer::Config::Tracing

Inherits:
Object
  • Object
show all
Defined in:
lib/riffer/config.rb,
sig/generated/riffer/config.rbs

Overview

Tracing-related global configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTracing

-- : () -> void



78
79
80
81
82
# File 'lib/riffer/config.rb', line 78

def initialize
  @enabled = true
  @capture_messages = false
  @backend = nil
end

Instance Attribute Details

#backendObject

The backend riffer routes spans through; defaults to nil, a no-op. Riffer auto-detects no backend; assigning one is opt-in.

Returns:

  • (Object)


74
75
76
# File 'lib/riffer/config.rb', line 74

def backend
  @backend
end

#capture_messagesBoolean

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.

Returns:

  • (Boolean)


70
71
72
# File 'lib/riffer/config.rb', line 70

def capture_messages
  @capture_messages
end

#enabledBoolean

Whether riffer emits OTEL spans; defaults to true, a no-op until a host wires an OTEL SDK.

Returns:

  • (Boolean)


64
65
66
# File 'lib/riffer/config.rb', line 64

def enabled
  @enabled
end