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 to interpolate the message.

It must not exceed 8192 characters. Longer messages will be truncated. Sentry also accepts a message where this is not set to support legacy SDKs.

message

Optional. The raw message string (uninterpolated).

It must not exceed 8192 characters. Longer messages will be truncated.

params

Optional: A list of formatting parameters, preferably strings. Non-strings will be coerced to strings.

Copied
{
  "logentry": {
    "message": "My raw message with interpreted strings like %s",
    "params": ["this"]
  }
}
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").