pub struct OurLog {
pub timestamp_nanos: Annotated<u64>,
pub observed_timestamp_nanos: Annotated<u64>,
pub trace_id: Annotated<TraceId>,
pub span_id: Annotated<SpanId>,
pub trace_flags: Annotated<f64>,
pub severity_text: Annotated<String>,
pub severity_number: Annotated<i64>,
pub body: Annotated<String>,
pub attributes: Annotated<Object<AttributeValue>>,
pub other: Object<Value>,
}
Fields§
§timestamp_nanos: Annotated<u64>
Time when the event occurred.
observed_timestamp_nanos: Annotated<u64>
Time when the event was observed.
trace_id: Annotated<TraceId>
The ID of the trace the log belongs to.
span_id: Annotated<SpanId>
The Span id.
trace_flags: Annotated<f64>
Trace flag bitfield.
severity_text: Annotated<String>
This is the original string representation of the severity as it is known at the source
severity_number: Annotated<i64>
Numerical representation of the severity level
body: Annotated<String>
Log body.
attributes: Annotated<Object<AttributeValue>>
Arbitrary attributes on a log.
other: Object<Value>
Additional arbitrary fields for forwards compatibility.
Trait Implementations§
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 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