Struct LogEntry Copy item path Source pub struct LogEntry {
pub message: Annotated<Message >,
pub formatted: Annotated<Message >,
pub params: Annotated<Value>,
pub other: Object<Value>,
}
Expand description A log entry message.
A log message is similar to the message
attribute on the event itself but
can additionally hold optional parameters.
{
"logentry": {
"message": "My raw message with interpreted strings like %s",
"params": ["this"]
}
}
{
"logentry": {
"message": "My raw message with interpreted strings like {foo}",
"params": {"foo": "this"}
}
}
The log message with parameter placeholders.
This attribute is primarily used for grouping related events together into issues.
Therefore this really should just be a string template, i.e. Sending %d requests
instead
of Sending 9999 requests
. The latter is much better at home in formatted
.
It must not exceed 8192 characters. Longer messages will be truncated.
The formatted message. If message
and params
are given, Sentry
will attempt to backfill formatted
if empty.
It must not exceed 8192 characters. Longer messages will be truncated.
Parameters to be interpolated into the log message. This can be an array of positional
parameters as well as a mapping of named arguments to their values.
Additional arbitrary fields for forwards compatibility.
Performs copy-assignment from
source
.
Read more Formats the value using the given formatter.
Read more Returns the “default value” for a type.
Read more Returns whether this value is empty.
Returns whether this value is empty or all of its descendants are empty.
Read more Converts to this type from the input type.
Creates a meta structure from an annotated boxed value.
Boxes the meta structure back into an object of values.
Read more Boxes the meta structure back into a value.
Efficiently serializes the payload directly.
Extracts children meta map out of a value.
Extracts the meta tree out of annotated value.
Read more Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Returns the type of the value.
Executes a processor on this value.
Recurses into children of this value.
Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit
)
Performs copy-assignment from
self
to
dest
.
Read more Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From <T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.