30. www.erlang-solutions.com
Spandex library
- Each query is a new Trace
- Trace have spans. Spans have metadata
- Spans storage in process dictionary or in ETS
- start_span/1, finish_span/1
https://github.com/spandex-project/spandex
Tracing - method
50. www.erlang-solutions.com
- Number of traces/number of spans sent should be controlled. Configurable in
spandex (batch_size and sync_threshold options)
- Metadata size consumes network between node and agent and agent and
datadog
- How track asynchronously spawned processes
- For query that involves more than one node distributed tracing in spandex can
be used.
- Tracing overhead. Few hundreds spans per trace still consumes few
milliseconds per query, measured with xprof
https://github.com/Appliscale/xprof
- Telemetry integration ?
Tracing - issues