Class: Deimos::Tracing::Provider
- Inherits:
-
Object
- Object
- Deimos::Tracing::Provider
- Defined in:
- lib/deimos/tracing/provider.rb
Overview
Base class for all tracing providers.
Instance Method Summary collapse
-
#active_span ⇒ Object
Get the currently activated span.
-
#finish(span) ⇒ Object
Finishes the trace on the span object.
-
#set_error(span, exception) ⇒ Object
Set an error on the span.
-
#set_tag(tag, value, span = nil) ⇒ Object
Set a tag to a span.
-
#start(span_name, options = {}) ⇒ Object
Returns a span object and starts the trace.
Instance Method Details
#active_span ⇒ Object
Get the currently activated span.
29 30 31 |
# File 'lib/deimos/tracing/provider.rb', line 29 def active_span raise NotImplementedError end |
#finish(span) ⇒ Object
Finishes the trace on the span object.
17 18 19 |
# File 'lib/deimos/tracing/provider.rb', line 17 def finish(span) raise NotImplementedError end |
#set_error(span, exception) ⇒ Object
Set an error on the span.
24 25 26 |
# File 'lib/deimos/tracing/provider.rb', line 24 def set_error(span, exception) raise NotImplementedError end |
#set_tag(tag, value, span = nil) ⇒ Object
Set a tag to a span. Use the currently active span if not given.
36 37 38 |
# File 'lib/deimos/tracing/provider.rb', line 36 def set_tag(tag, value, span=nil) raise NotImplementedError end |
#start(span_name, options = {}) ⇒ Object
Returns a span object and starts the trace.
11 12 13 |
# File 'lib/deimos/tracing/provider.rb', line 11 def start(span_name, ={}) raise NotImplementedError end |