pub struct OurLog {
pub timestamp: Annotated<Timestamp>,
pub trace_id: Annotated<TraceId>,
pub span_id: Annotated<SpanId>,
pub level: Annotated<OurLogLevel>,
pub body: Annotated<String>,
pub attributes: Annotated<Object<Attribute>>,
pub other: Object<Value>,
}
Fields§
§timestamp: Annotated<Timestamp>
Timestamp when the log was created.
trace_id: Annotated<TraceId>
The ID of the trace the log belongs to.
span_id: Annotated<SpanId>
The Span this log entry belongs to.
level: Annotated<OurLogLevel>
The log level.
body: Annotated<String>
Log body.
attributes: Annotated<Object<Attribute>>
Arbitrary attributes on a log.
other: Object<Value>
Additional arbitrary fields for forwards compatibility.
Implementations§
Trait Implementations§
Source§impl FromObjectRef for OurLog
impl FromObjectRef for OurLog
Source§fn from_object_ref(__obj: &mut Object<Value>) -> Self
fn from_object_ref(__obj: &mut Object<Value>) -> Self
Creates a meta structure from key value pairs. Read more
Source§impl FromValue for OurLog
impl FromValue for OurLog
Source§fn from_value(__value: Annotated<Value>) -> Annotated<Self>
fn from_value(__value: Annotated<Value>) -> Annotated<Self>
Creates a meta structure from an annotated boxed value.
Source§impl IntoObjectRef for OurLog
impl IntoObjectRef for OurLog
Source§fn into_object_ref(self, __map: &mut Object<Value>)
fn into_object_ref(self, __map: &mut Object<Value>)
Boxes the meta structure back into an object of values. Read more
Source§impl IntoValue for OurLog
impl IntoValue for OurLog
Source§fn into_value(self) -> Value
fn into_value(self) -> Value
Boxes the meta structure back into a 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,
Efficiently serializes the payload directly.
Source§fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
Extracts children meta map out of a value.
§fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
Extracts the meta tree out of annotated value. Read more
Source§impl ProcessValue for OurLog
impl ProcessValue for OurLog
Source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
Returns the type of the value.
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,
Executes a processor on this value.
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,
Recurses into children of this value.
impl StructuralPartialEq for OurLog
Auto Trait Implementations§
impl Freeze for OurLog
impl RefUnwindSafe for OurLog
impl Send for OurLog
impl Sync for OurLog
impl Unpin for OurLog
impl UnwindSafe for OurLog
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
Mutably borrows from an owned value. Read more