ex_ray v0.1.4 ExRay.Store View Source

Store the span chains in an ETS table. The table must be created during the application initialization using the create call. The span chain acts like a call stack by pushing and popping spans as they come in and out of scope.

Link to this section Summary

Functions

Initializes the spans ETS table. The span table can be shared across process boundary

Fetch the top level span for a given key

Fetch span stack for the given key

Pops the top span off the stack

Pushes a new span to the span stack. The key must be unique

Link to this section Functions

Link to this function create() View Source
create() :: any()

Initializes the spans ETS table. The span table can be shared across process boundary.

Link to this function current(key) View Source
current(String.t()) :: [any()]

Fetch the top level span for a given key

Fetch span stack for the given key

Pops the top span off the stack.

Link to this function push(key, val) View Source
push(String.t(), any()) :: any()

Pushes a new span to the span stack. The key must be unique.