Mirror for Apache CouchDB

Clone this repo:
  1. 29ecff4 Merge pull request #4 from apache/update-passage-dep-for-otp-24 by Nick Vatamaniuc · 3 years ago main
  2. 91bff87 Update passage dependency after it was patched to handle Erlang 24 by Nick Vatamaniuc · 3 years ago CouchDB-0.1.14-4
  3. 275a110 Merge pull request #3 from apache/otp-23-support by Nick Vatamaniuc · 3 years, 1 month ago CouchDB-0.1.14-2 CouchDB-0.1.14-3
  4. adb0c7d Allow compiling on Erlang 23 by Nick Vatamaniuc · 3 years, 1 month ago
  5. 4aa2f49 Merge pull request #2 from apache/point-to-couchdb-deps by iilyak · 4 years, 3 months ago master CouchDB-0.1.14-1

jaeger_passage

hex.pm version Build Status Code Coverage License: MIT

Jaeger client library for Erlang.

This is an extension library of passage.

Documentation

A Running Example

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/

Selecting reporter

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:

protocolthrift_protocoljaeger portdescription
udpcompact6831accept jaeger.thrift over compact thrift protocol (default)
udpbinary6832accept jaeger.thrift over binary thrift protocol
httpN/A14268accept 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.

References