Version:

Modules reference / tracing / Module zipkin.tracer
Modules reference / tracing / Module zipkin.tracer

Module zipkin.tracer

Module zipkin.tracer

Client for Zipkin

Functions

new (config, sampler)

Init new Zipkin Tracer

Parameters:

  • config: Table with Zipkin configuration
    • base_url: (table) Zipkin API base url
    • api_method: (table) API method to send spans to zipkin
    • report_interval: (table) Interval of reports to zipkin
    • spans_limit: (optional number) Limit of a spans buffer (1k by default)
    • on_error: (optional function) On error callback that apply error in string format
    • spans_limit: (optional number) Limit of a spans buffer (1k by default)
  • sampler: (table) Table that contains function sample that is apply span name and mark this span for further report

Returns:

(table) context

Or

(nil) nil (string) error