Modules

oc_reporter oc_reporter_noop oc_reporter_sequential oc_reporter_zipkin oc_sampler oc_sampler_always oc_sampler_never oc_sampler_probability oc_server oc_span oc_span_ctx_binary oc_span_ctx_header oc_stat oc_stat_aggregation oc_stat_aggregation_count oc_stat_aggregation_distribution oc_stat_aggregation_latest oc_stat_aggregation_sum oc_stat_config oc_stat_exporter oc_stat_exporter_prometheus oc_stat_measure oc_stat_view oc_std_encoder oc_tag_ctx_binary oc_tag_ctx_header oc_tags oc_trace oc_trace_pb oc_transform ocp opencensus opencensus_app opencensus_sup

Module oc_reporter

This module has the behaviour that each reporter must implement and creates the buffer of trace spans to be reported.

Behaviours: gen_server.

This module defines the oc_reporter behaviour. Required callback functions: init/1, report/2.

Function Index

code_change/3
handle_call/3
handle_cast/2
handle_info/2
init/1
register/1Equivalent to register(Reporter, []).
register/2 Register new traces reporter Reporter with Config.
start_link/0
store_span/1
terminate/2

Function Details

code_change/3

code_change(X1, State, X3) -> any()

handle_call/3

handle_call(X1, From, State) -> any()

handle_cast/2

handle_cast(X1, State) -> any()

handle_info/2

handle_info(X1, State) -> any()

init/1

init(Args) -> any()

register/1

register(Reporter) -> any()

Equivalent to register(Reporter, []).

register/2


      register(Reporter::module(), Options::term()) -> ok
      

Register new traces reporter Reporter with Config.

start_link/0

start_link() -> any()

store_span/1


      store_span(Span::opencensus:span()) -> true | {error, invalid_span} | {error, no_report_buffer}
      

terminate/2

terminate(X1, State) -> any()