Tapper v0.6.0 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
Link to this type
annotation_delta()
View Source
annotation_delta()
View Source
annotation_delta() ::
{:annotate, {value :: annotation_value(), endpoint :: maybe_endpoint()}}
| annotation_value()
annotation_delta() :: {:annotate, {value :: annotation_value(), endpoint :: maybe_endpoint()}} | annotation_value()
Delta for simple annotations
Link to this type
annotation_value() View Source
Link to this type
async_delta()
View Source
async_delta()
View Source
async_delta() :: {:async, boolean()}
async_delta() :: {:async, boolean()}
Delta for async span
Link to this type
binary_annotation_delta()
View Source
binary_annotation_delta()
View Source
binary_annotation_delta() ::
{:binary_annotate,
{type :: binary_annotation_type(), key :: binary_annotation_key(),
value :: binary_annotation_value(), endpoint :: maybe_endpoint()}}
binary_annotation_delta() :: {:binary_annotate, {type :: binary_annotation_type(), key :: binary_annotation_key(), value :: binary_annotation_value(), endpoint :: maybe_endpoint()}}
Delta for binary annotations
Link to this type
binary_annotation_key() View Source
Link to this type
binary_annotation_type()
View Source
binary_annotation_type()
View Source
binary_annotation_type() ::
:string | :bool | :i16 | :i32 | :i64 | :double | :bytes
binary_annotation_type() :: :string | :bool | :i16 | :i32 | :i64 | :double | :bytes
Link to this type
binary_annotation_value() View Source
Link to this type
delta()
View Source
delta()
View Source
delta() ::
name_delta() | async_delta() | annotation_delta() | binary_annotation_delta()
delta() :: name_delta() | async_delta() | annotation_delta() | binary_annotation_delta()
Link to this type
maybe_endpoint()
View Source
maybe_endpoint()
View Source
maybe_endpoint() :: Tapper.Endpoint.t() | nil
maybe_endpoint() :: Tapper.Endpoint.t() | nil
Link to this type
name_delta() View Source
Delta for span name
Link to this type
span_type()
View Source
span_type()
View Source
span_type() :: :client | :server
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
Link to this callback
finish(tapper_id, opts)
View Source
finish(tapper_id, opts)
View Source
finish(tapper_id :: Tapper.Id.t(), opts :: Keyword.t()) :: :ok
finish(tapper_id :: Tapper.Id.t(), opts :: Keyword.t()) :: :ok
Link to this callback
finish_span(tapper_id, opts)
View Source
finish_span(tapper_id, opts)
View Source
finish_span(tapper_id :: Tapper.Id.t(), opts :: Keyword.t()) :: Tapper.Id.t()
finish_span(tapper_id :: Tapper.Id.t(), opts :: Keyword.t()) :: Tapper.Id.t()
Link to this callback
join(trace_id, span_id, parent_id, sample, debug, opts)
View Source
join(trace_id, span_id, parent_id, sample, debug, opts)
View Source
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()
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()
Link to this callback
start(opts)
View Source
start(opts)
View Source
start(opts :: Keyword.t()) :: Tapper.Id.t()
start(opts :: Keyword.t()) :: Tapper.Id.t()
Link to this callback
start_span(tapper_id, opts)
View Source
start_span(tapper_id, opts)
View Source
start_span(tapper_id :: Tapper.Id.t(), opts :: Keyword.t()) :: Tapper.Id.t()
start_span(tapper_id :: Tapper.Id.t(), opts :: Keyword.t()) :: Tapper.Id.t()
Link to this callback
update_span(tapper_id, deltas, opts)
View Source
update_span(tapper_id, deltas, opts)
View Source
update_span(
tapper_id :: Tapper.Id.t(),
deltas :: delta() | [delta()],
opts :: Keyword.t()
) :: Tapper.Id.t()
update_span( tapper_id :: Tapper.Id.t(), deltas :: delta() | [delta()], opts :: Keyword.t() ) :: Tapper.Id.t()