Conduit v0.12.10 Conduit.Plug.DeadLetter View Source

Publishes messages that were nacked or raised an exception to a dead letter destination.

The following options are required:

  • broker - The broker to publish the message with.
  • publish_to - The place to publish the message.

In order for this to work, you must also define an outgoing publish with the same name as the publish_to option in your broker.

publish :error, to: "my_app.error"

Examples

plug Conduit.Plug.DeadLetter, broker: MyApp.Broker, publish_to: :error

Link to this section Summary

Functions

Publishes messages that were nacked or raised an exception to a dead letter destination

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

Publishes messages that were nacked or raised an exception to a dead letter destination.

Callback implementation for Conduit.Plug.init/1.

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

Callback implementation for Conduit.Plug.run/2.