ExRay.Span (ex_ray_d v0.1.0) 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

Specs

close(any(), String.t()) :: any()

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

Specs

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

Specs

open(String.t(), String.t(), any()) :: any()

Creates a new span with a given parent span

Specs

parent_id({:span, integer(), integer(), String.t(), integer()}) :: String.t()

Convenience to retrive the parent span ID from a given span