X3m.System.Message.new
You're seeing just the function
new
, go back to X3m.System.Message module for more information.
Specs
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 toid
.causation_id
- id of message that "caused" this message. If not provided it is set toid
.reply_to
- sets pid of process that expects response. If not provided it is set toself()
.raw_request
- sets raw request as it is received (i.e.params
from controller action).logger_metadata
- if not providedLogger.metadata
is used by default.