Conduit v0.12.10 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
iex> defmodule MyPipeline do
iex> use Conduit.Plug.Builder
iex> plug Conduit.Plug.CorrelationId
iex> end
iex>
iex> message = MyPipeline.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
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
.