commit | d548b0283929966a50dbb82e98234c52c24b9543 | [log] [tgz] |
---|---|---|
author | Takeru Ohta <phjgt308@gmail.com> | Mon Dec 25 22:07:17 2017 +0900 |
committer | Takeru Ohta <phjgt308@gmail.com> | Mon Dec 25 22:07:17 2017 +0900 |
tree | 97f6369d329abd62d761177833d6a86b00e130c8 | |
parent | 0c5486b4edcaa44dd9e124ae4f53475a0062cdbf [diff] |
Use the identifier of the root span as the tracer identifier
Jaeger client library for Erlang.
This is an extension library of passage.
Starts Jaeger in the background:
$ docker run -d -p6831:6831/udp -p6832:6832/udp -p16686:16686 jaegertracing/all-in-one:latest
Starts Erlang Shell:
$ rebar3 shell % Starts `example_tracer` > Sampler = passage_sampler_all:new(). > ok = jaeger_passage:start_tracer(example_tracer, Sampler). % Starts a root span. > RootSpan = passage:start_span(example_root, [{tracer, example_tracer}]). % Starts a child span. > ChildSpan = passage:start_span(example_child, [{child_of, RootSpan}]). % Finishes the spans > passage:finish_span(ChildSpan). > passage:finish_span(RootSpan).
Browses the tracing result:
$ firefox http://localhost:16686/