Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

feat: add Linux distributions to the os context #1227

Merged
merged 2 commits into from
Apr 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions src/docs/sdk/event-payloads/contexts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,14 @@ output of the `uname` syscall.
system. For some well-known runtimes, Sentry will attempt to parse `name` and
`version` from this string, if they are not explicitly given.

`distribution`

: _Optional_. An object that provides meta-data for Linux distributions. Contains the following keys:

- `name`: A name that is stable for each distribution (examples: `ubuntu`, `rhel`, `alpine`).
supervacuus marked this conversation as resolved.
Show resolved Hide resolved
- `version`: _Optional_. Typically identifies at least the major release version number. Distributions with rolling releases only, will not provide a version.
- `pretty_name`: _Optional_. Typically provides the full name, full version, and release alias (examples: `Ubuntu 22.04.4 LTS`, `Raspian GNU/Linux 10 (buster)`).

### Example OS Context

The OS Context for the 3 major OSs should look like this:
Expand All @@ -295,8 +303,12 @@ The OS Context for the 3 major OSs should look like this:
"linux": {
"type": "os",
"name": "Linux",
"version": "5.10.6",
"build": "arch1-1"
"version": "6.1.82(99.168.amzn2023.x86_64)",
"distribution": {
"name": "amzn",
"version": "2023",
"pretty_name": "Amazon Linux 2023.4.20240401"
}
}
}
```
Expand Down
Loading