Skip to content

Add device/os attributes to logs #5112

@AbhiPrasad

Description

@AbhiPrasad

Description

Relevant discord thread: https://discord.com/channels/621778831602221064/1410602434610466836/1410602434610466836

https://develop.sentry.dev/sdk/telemetry/logs/#mobile-desktop-and-native-sdks

For mobile, desktop, and native SDKs (Android, Apple, Electron, etc.), the SDKs should attach the following:

  1. os.name: The name of the operating system. Maps to name in the Contexts payload.
  2. os.version: The version of the operating system. Maps to version in the Contexts payload.
  3. device.brand: The brand of the device. Maps to brand in the Contexts payload.
  4. device.model: The model of the device. Maps to model in the Contexts payload.
  5. device.family: The family of the device. Maps to family in the Contexts payload.

example:

{
  "os.name": "iOS",
  "os.version": "17.0",
  "device.brand": "Apple",
  "device.model": "iPhone 15 Pro Max",
  "device.family": "iPhone"
}

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions