add process.parent_pid attribute (#2691)

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>
This commit is contained in:
David Mirza 2022-07-28 07:54:58 -07:00 committed by GitHub
parent 298c566cf9
commit fca9616e41
2 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,11 @@ groups:
brief: > brief: >
Process identifier (PID). Process identifier (PID).
examples: [1234] examples: [1234]
- id: parent_pid
type: int
brief: >
Parent Process identifier (PID).
examples: [111]
- id: executable.name - id: executable.name
type: string type: string
requirement_level: requirement_level:

View File

@ -28,6 +28,7 @@
| Attribute | Type | Description | Examples | Requirement Level | | Attribute | Type | Description | Examples | Requirement Level |
|---|---|---|---|---| |---|---|---|---|---|
| `process.pid` | int | Process identifier (PID). | `1234` | Recommended | | `process.pid` | int | Process identifier (PID). | `1234` | Recommended |
| `process.parent_pid` | int | Parent Process identifier (PID). | `111` | Recommended |
| `process.executable.name` | string | The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`. | `otelcol` | Conditionally Required: See alternative attributes below. | | `process.executable.name` | string | The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`. | `otelcol` | Conditionally Required: See alternative attributes below. |
| `process.executable.path` | string | The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW`. | `/usr/bin/cmd/otelcol` | Conditionally Required: See alternative attributes below. | | `process.executable.path` | string | The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW`. | `/usr/bin/cmd/otelcol` | Conditionally Required: See alternative attributes below. |
| `process.command` | string | The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`. | `cmd/otelcol` | Conditionally Required: See alternative attributes below. | | `process.command` | string | The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`. | `cmd/otelcol` | Conditionally Required: See alternative attributes below. |