ex_ray v0.1.4 ExRay.Span View Source

A set of convenience functions to manage spans.

Link to this section Summary

Functions

Closes the given span and pops the span state in the associated ETS span chain

Create a new root span with a given name and unique request chain ID. The request ID uniquely identifies the call chain and will be used as the primary key in the ETS table tracking the span chain

Creates a new span with a given parent span

Convenience to retrive the parent span ID from a given span

Link to this section Functions

Link to this function close(span, req_id) View Source
close(any(), String.t()) :: any()

Closes the given span and pops the span state in the associated ETS span chain.

Link to this function open(name, req_id) View Source
open(String.t(), String.t()) :: any()

Create a new root span with a given name and unique request chain ID. The request ID uniquely identifies the call chain and will be used as the primary key in the ETS table tracking the span chain.

Link to this function open(name, req_id, p_span) View Source
open(String.t(), String.t(), any()) :: any()

Creates a new span with a given parent span

Link to this function parent_id(arg) View Source
parent_id({:span, integer(), integer(), String.t(), integer()}) :: String.t()

Convenience to retrive the parent span ID from a given span