Conduit v0.12.10 Conduit.Plug.MessageId View Source

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

Examples

plug Conduit.Plug.MessageId

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

Link to this section Summary

Functions

Assigns a UUID for the message 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 message 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.