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

Specs

create() :: any()

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

Specs

current(String.t()) :: [any()]

Fetch the top level span for a given key

Specs

get(String.t()) :: [any()]

Fetch span stack for the given key

Specs

pop(String.t()) :: any()

Pops the top span off the stack.

Specs

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

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