Copyright © 2017 Takeru Ohta <phjgt308@gmail.com>
This module defines the passage_reporter behaviour.
Required callback functions: report/2.
Span Reporter.
Note that this component has not been described in the OpenTracing Specification.
This module requires following callback:
%% @doc Reports the finished span to an external observer (e.g., Jaeger agent). -callback report(state(), FinishedSpan :: passage_span:span()) -> Ignored :: term().
abstract datatype: reporter()
Reporter.
state() = term()
Implementation-dependent state.
| get_module/1 | Returns the module of Reporter. |
| get_state/1 | Returns the state of Reporter. |
| is_reporter/1 | Returns true if X is a reporter, otherwise false. |
| new/2 | Makes a new reporter. |
| report/2 | Reports the given finished span. |
get_module(Reporter::reporter()) -> module()
Returns the module of Reporter.
get_state(Reporter::reporter()) -> state()
Returns the state of Reporter.
is_reporter(X::reporter() | term()) -> boolean()
Returns true if X is a reporter, otherwise false.
new(Module::module(), State::state()) -> passage_reporter:reporter()
Makes a new reporter.
report(Passage_reporter::reporter(), Span::passage_span:span()) -> ok
Reports the given finished span.
Generated by EDoc, Nov 1 2017, 22:10:30.