Class: Riffer::Tracing::Null::Span

Inherits:
Object
  • Object
show all
Defined in:
lib/riffer/tracing/null.rb

Overview

No-op stand-in for a span; answers recording? with false so callers can skip expensive attribute serialization.

Instance Method Summary collapse

Instance Method Details

#add_event(name, attributes: nil) ⇒ Object

– : (String, ?attributes: Hash[String, untyped]?) -> void



19
20
# File 'lib/riffer/tracing/null.rb', line 19

def add_event(name, attributes: nil)
end

#error!(description = "") ⇒ Object

– : (?String) -> void



29
30
# File 'lib/riffer/tracing/null.rb', line 29

def error!(description = "")
end

#record_exception(exception) ⇒ Object

– : (Exception) -> void



24
25
# File 'lib/riffer/tracing/null.rb', line 24

def record_exception(exception)
end

#recording?Boolean

– : () -> bool

Returns:

  • (Boolean)


34
35
36
# File 'lib/riffer/tracing/null.rb', line 34

def recording?
  false
end

#set_attribute(key, value) ⇒ Object

– : (String, untyped) -> void



14
15
# File 'lib/riffer/tracing/null.rb', line 14

def set_attribute(key, value)
end