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_name: Annotated<String>,
pub distribution_version: Annotated<String>,
pub distribution_pretty_name: Annotated<String>,
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_name: Annotated<String>
Meta-data for the Linux Distribution.
distribution_version: Annotated<String>
§distribution_pretty_name: Annotated<String>
§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
.