Module jaeger_passage_reporter_udp

A reporter that sends the spans to an jaeger agent using UDP.

Behaviours: gen_server.

Description

A reporter that sends the spans to an jaeger agent using UDP.

To start a reporter process, please use jaeger_passage_reporter:start/1 or jaeger_passage_reporter:start/2.

Examples

  %% Starts `example_reporter'
  {ok, Reporter} = jaeger_passage_reporter:start(example_reporter, [{protocol, udp}]).
  [example_reporter] = jaeger_passage_reporter:which_reporters().
 
  %% Registers `example_tracer'
  Context = jaeger_passage_span_context.
  Sampler = passage_sampler_all:new().
  ok = passage_tracer_registry:register(example_tracer, Context, Sampler, Reporter).
 
  %% Starts and finishes a span
  Span = passage:start_span(example, [{tracer, example_tracer}]).
 
  passage:finish_span(Span). % The span will send to the jaeger agent on the localhost

Data Types

start_option()

start_option() = {default_service_name, atom()} | {process_tags, passage:tags()} | {thrift_format, thrift_protocol:format()} | {agent_host, inet:hostname()} | {agent_port, inet:port_number()}

start_options()

start_options() = [start_option()]

Options for jaeger_passage_reporter:start/2.


Generated by EDoc, Jan 23 2020, 22:32:01.