You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/registry/attributes/process.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ An operating system process.
17
17
| <aid="process-command"href="#process-command">`process.command`</a> | 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`||
18
18
| <aid="process-command-args"href="#process-command-args">`process.command_args`</a> | string[]| All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`. SHOULD NOT be collected by default unless there is sanitization that excludes sensitive data. |`["cmd/otecol", "--config=config.yaml"]`||
19
19
| <aid="process-command-line"href="#process-command-line">`process.command_line`</a> | string | The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead. SHOULD NOT be collected by default unless there is sanitization that excludes sensitive data. |`C:\cmd\otecol --config="my directory\config.yaml"`||
20
-
| <aid="process-context-switch-type"href="#process-context-switch-type">`process.context_switch_type`</a> | string | Specifies whether the context switches for this data point were voluntary or involuntary. |`voluntary`; `involuntary`||
20
+
| <aid="process-context-switch-type"href="#process-context-switch-type">`process.context_switch.type`</a> | string | Specifies whether the context switches for this data point were voluntary or involuntary. |`voluntary`; `involuntary`||
21
21
| <aid="process-creation-time"href="#process-creation-time">`process.creation.time`</a> | string | The date and time the process was created, in ISO 8601 format. |`2023-11-21T09:25:34.853Z`||
22
22
| <aid="process-environment-variable"href="#process-environment-variable">`process.environment_variable.<key>`</a> | string | Process environment variables, `<key>` being the environment variable name, the value being the environment variable value. [2]|`ubuntu`; `/usr/local/bin:/usr/bin`||
23
23
| <aid="process-executable-build-id-gnu"href="#process-executable-build-id-gnu">`process.executable.build_id.gnu`</a> | string | The GNU build ID as found in the `.note.gnu.build-id` ELF section (hex string). |`c89b11207f6479603b0d49bf291c092c2b719293`||
@@ -64,7 +64,7 @@ with value `"/usr/local/bin:/usr/bin"`.
64
64
65
65
---
66
66
67
-
`process.context_switch_type` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
67
+
`process.context_switch.type` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
68
68
69
69
| Value | Description | Stability |
70
70
|---|---|---|
@@ -96,11 +96,21 @@ Deprecated process attributes.
| <aid="process-context-switch-type"href="#process-context-switch-type">`process.context_switch_type`</a> | string | "Deprecated, use `process.context_switch.type` instead." |`voluntary`; `involuntary`|<br>Replaced by `process.context_switch.type`. |
99
100
| <aid="process-cpu-state"href="#process-cpu-state">`process.cpu.state`</a> | string | Deprecated, use `cpu.mode` instead. |`system`; `user`; `wait`|<br>Replaced by `cpu.mode`. |
100
101
| <aid="process-executable-build-id-profiling"href="#process-executable-build-id-profiling">`process.executable.build_id.profiling`</a> | string | "Deprecated, use `process.executable.build_id.htlhash` instead." |`600DCAFE4A110000F2BF38C493F5FB92`|<br>Replaced by `process.executable.build_id.htlhash`. |
101
102
102
103
---
103
104
105
+
`process.context_switch_type` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
`process.cpu.state` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
|[`process.context_switch_type`](/docs/registry/attributes/process.md)| string | Specifies whether the context switches for this data point were voluntary or involuntary. |`voluntary`; `involuntary`|`Recommended`||
292
+
|[`process.context_switch.type`](/docs/registry/attributes/process.md)| string | Specifies whether the context switches for this data point were voluntary or involuntary. |`voluntary`; `involuntary`|`Recommended`||
293
293
294
294
---
295
295
296
-
`process.context_switch_type` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
296
+
`process.context_switch.type` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
0 commit comments