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.

Attributes

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
OptionalA list of formatting parameters, preferably strings. Non-strings will be coerced to strings.

Examples

Copied
{
  "logentry": {
    "message": "My raw message with interpreted strings like %s",
    "params": ["this"]
  }
}
You can edit this page on GitHub.