Tapper v0.6.2 Tapper.Tracer.Api behaviour View Source
The (minimal) low-level API for the Tapper.Tracer
; clients will normally use the Tapper
module.
Link to this section Summary
Types
Delta for simple annotations
Delta for async span
Delta for binary annotations
Delta for span name
Denote a client span or a server span; used to automatically add :sr
or :cs
annotation.
Link to this section Types
Specs
annotation_delta() :: {:annotate, {value :: annotation_value(), endpoint :: maybe_endpoint()}} | annotation_value()
Delta for simple annotations
Specs
Specs
async_delta() :: {:async, boolean()}
Delta for async span
Specs
binary_annotation_delta() :: {:binary_annotate, {type :: binary_annotation_type(), key :: binary_annotation_key(), value :: binary_annotation_value(), endpoint :: maybe_endpoint()}}
Delta for binary annotations
Specs
Specs
binary_annotation_type() :: :string | :bool | :i16 | :i32 | :i64 | :double | :bytes
Specs
Specs
delta() :: name_delta() | async_delta() | annotation_delta() | binary_annotation_delta()
Specs
maybe_endpoint() :: Tapper.Endpoint.t() | nil
Specs
Delta for span name
Specs
span_type() :: :client | :server
Denote a client span or a server span; used to automatically add :sr
or :cs
annotation.
Link to this section Callbacks
Specs
finish(tapper_id :: Tapper.Id.t(), opts :: Keyword.t()) :: :ok
Specs
finish_span(tapper_id :: Tapper.Id.t(), opts :: Keyword.t()) :: Tapper.Id.t()
Specs
join( trace_id :: Tapper.TraceId.t(), span_id :: Tapper.SpanId.t(), parent_id :: Tapper.SpanId.t() | :root, sample :: boolean(), debug :: boolean(), opts :: Keyword.t() ) :: Tapper.Id.t()
Specs
start(opts :: Keyword.t()) :: Tapper.Id.t()
Specs
start_span(tapper_id :: Tapper.Id.t(), opts :: Keyword.t()) :: Tapper.Id.t()