Struct relay_event_schema::protocol::LogEntry
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"}
}
}
Fields§
§message: Annotated<Message>
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.
formatted: Annotated<Message>
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.
params: Annotated<Value>
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.
other: Object<Value>
Additional arbitrary fields for forwards compatibility.
Trait Implementations§
source§impl FromValue for LogEntry
impl FromValue for LogEntry
source§fn from_value(value: Annotated<Value>) -> Annotated<Self>
fn from_value(value: Annotated<Value>) -> Annotated<Self>
source§impl IntoValue for LogEntry
impl IntoValue for LogEntry
source§fn into_value(self) -> Value
fn into_value(self) -> Value
source§fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
source§fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
§fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
source§impl ProcessValue for LogEntry
impl ProcessValue for LogEntry
source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
source§fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
source§fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
impl StructuralPartialEq for LogEntry
Auto Trait Implementations§
impl Freeze for LogEntry
impl RefUnwindSafe for LogEntry
impl Send for LogEntry
impl Sync for LogEntry
impl Unpin for LogEntry
impl UnwindSafe for LogEntry
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)