Conduit v0.11.0 Conduit.Plug.CorrelationId View Source

Assigns a UUID for the correlation ID of the message if one isn’t present and always assigns it to the logger metadata.

Examples

plug Conduit.Plug.CorrelationId

iex> message = Conduit.Plug.CorrelationId.run(%Conduit.Message{})
iex> message.correlation_id == Logger.metadata[:correlation_id]
true

Link to this section Summary

Functions

Assigns a UUID for the correlation ID of the message if one isn’t present and always assigns it to the logger metadata

Callback implementation for Conduit.Plug.init/1

Callback implementation for Conduit.Plug.run/2

Link to this section Functions

Link to this function call(message, next, opts) View Source

Assigns a UUID for the correlation ID of the message if one isn’t present and always assigns it to the logger metadata.

Callback implementation for Conduit.Plug.init/1.

Link to this function run(message, opts \\ []) View Source

Callback implementation for Conduit.Plug.run/2.