Class: Riffer::Tracing::NoOp::Span

Inherits:
Object
  • Object
show all
Defined in:
lib/riffer/tracing/no_op.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

--

Signature:

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



18
# File 'lib/riffer/tracing/no_op.rb', line 18

def add_event(name, attributes: nil); end

#error!(description = "") ⇒ Object

--

Signature:

  • (?String) -> void



26
# File 'lib/riffer/tracing/no_op.rb', line 26

def error!(description = ""); end

#record_exception(exception) ⇒ Object

--

Signature:

  • (Exception) -> void



22
# File 'lib/riffer/tracing/no_op.rb', line 22

def record_exception(exception); end

#recording?Boolean

--

Signature:

  • () -> bool

Returns:

  • (Boolean)


30
31
32
# File 'lib/riffer/tracing/no_op.rb', line 30

def recording?
  false
end

#set_attribute(key, value) ⇒ Object

--

Signature:

  • (String, untyped) -> void



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

def set_attribute(key, value); end