Skip to content

Commit

Permalink
add process.parent_pid attribute (#2691)
Browse files Browse the repository at this point in the history
Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>
  • Loading branch information
davidmirza408 and arminru committed Jul 28, 2022
1 parent 298c566 commit fca9616
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions semantic_conventions/resource/process.yaml
Expand Up @@ -10,6 +10,11 @@ groups:
brief: >
Process identifier (PID).
examples: [1234]
- id: parent_pid
type: int
brief: >
Parent Process identifier (PID).
examples: [111]
- id: executable.name
type: string
requirement_level:
Expand Down
1 change: 1 addition & 0 deletions specification/resource/semantic_conventions/process.md
Expand Up @@ -28,6 +28,7 @@
| Attribute | Type | Description | Examples | Requirement Level |
|---|---|---|---|---|
| `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.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. |
Expand Down

0 comments on commit fca9616

Please sign in to comment.