Skip to content
Permalink
Browse files
Filter reporter options (for dialyzer)
  • Loading branch information
sile committed Dec 21, 2017
1 parent b4fb52a commit 60957bd5f14ec805d1e3c9be1f9ff33a03873287
Showing 1 changed file with 8 additions and 1 deletion.
@@ -84,7 +84,14 @@ start_tracer(Tracer, Sampler0, Options) ->
error(badarg, [Tracer, Sampler0, Options]),
jaeger_passage_sampler_queue_limit:new(Sampler0, ReporterId, Max)
end,
case jaeger_passage_reporter:start(ReporterId, Options) of

ReporterOptions =
lists:filter(fun ({reporter_id, _}) -> false;
({max_queue_len, _}) -> false;
(_) -> true
end,
Options),
case jaeger_passage_reporter:start(ReporterId, ReporterOptions) of
{error, Reason} -> {error, Reason};
{ok, Reporter} ->
passage_tracer_registry:register(Tracer, Context, Sampler1, Reporter)

0 comments on commit 60957bd

Please sign in to comment.