X3m.System.Message.new

You're seeing just the function new, go back to X3m.System.Message module for more information.
Link to this function

new(service_name, opts \\ [])

View Source

Specs

new(atom(), Keyword.t()) :: t()

Creates new message with given service_name and provided opts:

  • id - id of the message. If not provided it generates random one.
  • correlation_id - id of "conversation". If not provided it is set to id.
  • causation_id - id of message that "caused" this message. If not provided it is set to id.
  • reply_to - sets pid of process that expects response. If not provided it is set to self().
  • raw_request - sets raw request as it is received (i.e. params from controller action).
  • logger_metadata - if not provided Logger.metadata is used by default.