Message Interface
The Message Interface carries a log message that describes an event or error. Optionally, it can carry a format string and structured parameters. This can help to group similar messages into the same issue.
formatted
- Required. The fully formatted message. If missing, Sentry will try tointerpolate the message.
A limit of 8192 characters is exposed in Relay and longer messages will be truncated. SDKs should not enforce this limit. Sentry also accepts a message where this is not set to support legacy SDKs.
message
- Optional. The raw message string (uninterpolated).
A limit of 8192 characters is exposed in Relay and longer messages will be truncated. SDKs should not enforce this limit.
params
- Optional: A list of formatting parameters, preferably strings. Non-stringswill be coerced to strings.
Copied
{ "logentry": { "message": "My raw message with interpreted strings like %s", "params": ["this"] } }
Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").