Struct relay_event_schema::protocol::OsContext
source · pub struct OsContext {
pub os: Annotated<String>,
pub name: Annotated<String>,
pub version: Annotated<String>,
pub build: Annotated<LenientString>,
pub kernel_version: Annotated<String>,
pub rooted: Annotated<bool>,
pub distribution: Annotated<LinuxDistribution>,
pub raw_description: Annotated<String>,
pub other: Object<Value>,
}
Expand description
Operating system information.
OS context describes the operating system on which the event was created. In web contexts, this is the operating system of the browser (generally pulled from the User-Agent string).
Fields§
§os: Annotated<String>
Computed field from name
and version
. Needed by the metrics extraction.
name: Annotated<String>
Name of the operating system.
version: Annotated<String>
Version of the operating system.
build: Annotated<LenientString>
Internal build number of the operating system.
kernel_version: Annotated<String>
Current kernel version.
This is typically the entire output of the uname
syscall.
rooted: Annotated<bool>
Indicator if the OS is rooted (mobile mostly).
distribution: Annotated<LinuxDistribution>
Meta-data for the Linux Distribution.
raw_description: Annotated<String>
Unprocessed operating system info.
An unprocessed description string obtained by the operating system. For some well-known
runtimes, Sentry will attempt to parse name
and version
from this string, if they are
not explicitly given.
other: Object<Value>
Additional arbitrary fields for forwards compatibility.
Trait Implementations§
source§impl DefaultContext for OsContext
impl DefaultContext for OsContext
source§fn default_key() -> &'static str
fn default_key() -> &'static str
Contexts
.source§fn from_context(context: Context) -> Option<Self>
fn from_context(context: Context) -> Option<Self>
source§fn cast(context: &Context) -> Option<&Self>
fn cast(context: &Context) -> Option<&Self>
source§fn cast_mut(context: &mut Context) -> Option<&mut Self>
fn cast_mut(context: &mut Context) -> Option<&mut Self>
source§fn into_context(self) -> Context
fn into_context(self) -> Context
source§impl FromValue for OsContext
impl FromValue for OsContext
source§fn from_value(__value: Annotated<Value>) -> Annotated<Self>
fn from_value(__value: Annotated<Value>) -> Annotated<Self>
source§impl IntoValue for OsContext
impl IntoValue for OsContext
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 OsContext
impl ProcessValue for OsContext
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 OsContext
Auto Trait Implementations§
impl Freeze for OsContext
impl RefUnwindSafe for OsContext
impl Send for OsContext
impl Sync for OsContext
impl Unpin for OsContext
impl UnwindSafe for OsContext
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
)