View Source CorrelationVector (ex_correlation_vector v0.1.0)
Link to this section Summary
Functions
Creates a new correlation vector by extending an existing value. This should be done at the entry point of an operation.
Increments the current extension by one. Do this before passing the value to an outbound message header.
Is the correlation vector immutable? Works on strings and structs.
Creates a new CorrelationVector of the given version
Parses a correlation vector into struct
Gets the value of the correlation vector as a string.
Link to this section Types
Link to this section Functions
Creates a new correlation vector by extending an existing value. This should be done at the entry point of an operation.
Works on parsed and string CVs
This function wil return {:ok, cv} or {:error, reason}. If you just
want to extend or create a new one use safe_extend/1
Increments the current extension by one. Do this before passing the value to an outbound message header.
Is the correlation vector immutable? Works on strings and structs.
Creates a new CorrelationVector of the given version
Parses a correlation vector into struct
This function wil return {:ok, cv} or {:error, reason}. If you just
want to parse or create a new one on failure use safe_parse/1
See extend/1
See safe_parse/1
Gets the value of the correlation vector as a string.