Module: Utrace
- Defined in:
- lib/utrace.rb,
lib/utrace/none.rb,
lib/utrace/otel.rb,
lib/utrace/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.2.0"
Class Attribute Summary collapse
Class Method Summary collapse
- .attrs(attrs) ⇒ Object
- .error(err) ⇒ Object
- .event(name, attrs: nil) ⇒ Object
- .new_span(name, &block) ⇒ Object
- .trace_id ⇒ Object
Class Attribute Details
.instance ⇒ Object
10 11 12 |
# File 'lib/utrace.rb', line 10 def instance @instance ||= None.new end |
Class Method Details
.attrs(attrs) ⇒ Object
26 27 28 |
# File 'lib/utrace.rb', line 26 def attrs(attrs) instance.attrs(attrs) end |
.error(err) ⇒ Object
22 23 24 |
# File 'lib/utrace.rb', line 22 def error(err) instance.error(err) end |
.event(name, attrs: nil) ⇒ Object
18 19 20 |
# File 'lib/utrace.rb', line 18 def event(name, attrs: nil) instance.event(name, attrs: attrs) end |
.new_span(name, &block) ⇒ Object
14 15 16 |
# File 'lib/utrace.rb', line 14 def new_span(name, &block) instance.new_span(name, &block) end |
.trace_id ⇒ Object
30 31 32 |
# File 'lib/utrace.rb', line 30 def trace_id instance.trace_id end |