commit | adb0c7dbee54ee3a5d4d3405dba192cdae8e1e46 | [log] [tgz] |
---|---|---|
author | Nick Vatamaniuc <vatamane@gmail.com> | Sat Apr 17 23:35:34 2021 -0400 |
committer | Nick Vatamaniuc <vatamane@gmail.com> | Sat Apr 17 23:54:49 2021 -0400 |
tree | b47617bd261e6fc058a0c4394cbc604a46b29a8e | |
parent | 4aa2f4975799bad70d2188fc1ae6334b25181862 [diff] |
Allow compiling on Erlang 23 `http_uri` module will be removed in Erlang 25. There is no obvious replacement in `uri_string` so for now just ignore the deprecation warning.
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/
By default ‘compact’ jaeger.thrift over UDP reporter is used. However it is possible to select different reporter. Bellow is a configuration matrics for available options:
protocol | thrift_protocol | jaeger port | description |
---|---|---|---|
udp | compact | 6831 | accept jaeger.thrift over compact thrift protocol (default) |
udp | binary | 6832 | accept jaeger.thrift over binary thrift protocol |
http | N/A | 14268 | accept jaeger.thrift directly from clients |
The HTTP version is beneficial if you don't have jaeger agents deployed or your spans are greater than max udp packet size (65Kb). Otherwise it is better to use default.