Tapper v0.6.2 Tapper.Tracer.Trace View Source

Tracer internal state, and functions to convert this to protocol spans (Tapper.Protocol.Span)

Link to this section Summary

Types

t()

Tracer state: the state of a single trace session.

Link to this section Types

Specs

t() :: trace()

Specs

trace() :: %Tapper.Tracer.Trace{
  async: nil | true,
  config: map(),
  debug: boolean(),
  end_timestamp: Tapper.Timestamp.t(),
  last_activity: Tapper.Timestamp.t(),
  parent_id: Tapper.SpanId.t() | :root,
  sample: boolean(),
  span_id: Tapper.SpanId.t(),
  spans: %{required(Tapper.SpanId.t()) => Tapper.Tracer.Trace.SpanInfo.t()},
  timestamp: Tapper.Timestamp.t(),
  trace_id: Tapper.TraceId.t(),
  ttl: integer()
}

Tracer state: the state of a single trace session.