Copyright © 2017 Takeru Ohta <phjgt308@gmail.com>
Tracer Registry.
Context = passage_span_context_null, Sampler = passage_sampler_null:new(), Reporter = passage_reporter_null:new(), %% Registers ok = passage_tracer_registry:register(foo, Context, Sampler, Reporter), [foo] = passage_tracer_registry:which_tracers(), %% Deregisters ok = passage_tracer_registry:deregister(foo), [] = passage_tracer_registry:which_tracers()
| deregister/1 | Deregisters the tracer. |
| get_reporter/1 | Returns the reporter associated with Tracer. |
| get_sampler/1 | Returns the sampler associated with Tracer. |
| get_span_context_module/1 | Returns the passage_span_context implementation module associated with Tracer. |
| register/4 | Registers the tracer. |
| set_reporter/2 | Updates the reporter associated with Tracer to Reporter. |
| set_sampler/2 | Updates the sampler associated with Tracer to Sampler. |
| which_tracers/0 | Returns the list of the registered tracers. |
deregister(Tracer::passage:tracer_id()) -> ok
Deregisters the tracer.
IfTracer has not been registered, it will be simply ignored.
get_reporter(TracerId::passage:tracer_id()) -> {ok, passage_reporter:reporter()} | error
Returns the reporter associated with Tracer.
Tracer has not been registered, it will return error.
get_sampler(Tracer::passage:tracer_id()) -> {ok, passage_sampler:sampler()} | error
Returns the sampler associated with Tracer.
Tracer has not been registered, it will return error.
get_span_context_module(Tracer::passage:tracer_id()) -> {ok, Module} | error
Returns the passage_span_context implementation module associated with Tracer.
Tracer has not been registered, it will return error.
register(Tracer, Module, Sampler, Reporter) -> ok | {error, Reason}
Registers the tracer.
set_reporter(Tracer::passage:tracer_id(), Reporter::passage_reporter:reporter()) -> ok
Updates the reporter associated with Tracer to Reporter.
Tracer has not been registered, it will be simply ignored.
set_sampler(Tracer::passage:tracer_id(), Sampler::passage_sampler:sampler()) -> ok
Updates the sampler associated with Tracer to Sampler.
Tracer has not been registered, it will be simply ignored.
which_tracers() -> [passage:tracer_id()]
Returns the list of the registered tracers.
Generated by EDoc, Nov 1 2017, 22:10:30.