From a4fc971e0c7ffa4b9572654f075d3cb8560db770 Mon Sep 17 00:00:00 2001 From: Liudmila Molkova Date: Mon, 12 Aug 2024 11:49:52 -0700 Subject: [PATCH] Fix `process.args_count` attribute (#1331) --- docs/attributes-registry/process.md | 2 +- model/registry/process.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/attributes-registry/process.md b/docs/attributes-registry/process.md index 58e3b1e07e..9c55c2a4b3 100644 --- a/docs/attributes-registry/process.md +++ b/docs/attributes-registry/process.md @@ -15,7 +15,7 @@ An operating system process. | Attribute | Type | Description | Examples | Stability | | ----------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- | ---------------------------------------------------------------- | -| `args_count` | int | Length of the process.command_args array [1] | `4` | ![Experimental](https://img.shields.io/badge/-experimental-blue) | +| `process.args_count` | int | Length of the process.command_args array [1] | `4` | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | `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` | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | `process.command_args` | 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`. | `["cmd/otecol", "--config=config.yaml"]` | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | `process.command_line` | 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. | `C:\cmd\otecol --config="my directory\config.yaml"` | ![Experimental](https://img.shields.io/badge/-experimental-blue) | diff --git a/model/registry/process.yaml b/model/registry/process.yaml index 175faea5ec..e070dc431b 100644 --- a/model/registry/process.yaml +++ b/model/registry/process.yaml @@ -85,7 +85,7 @@ groups: executables, this would be the full argv vector passed to `main`. examples: - ['cmd/otecol', '--config=config.yaml'] - - id: args_count + - id: process.args_count type: int stability: experimental brief: >