Skip to content

Commit 60c08f2

Browse files
committed
Set role on entity attributes
1 parent 57c0d70 commit 60c08f2

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

docs/registry/entities/process.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,19 @@
5050

5151
**Description:** The executable which is being run by the process.
5252

53-
**Other Attributes:**
53+
**Identifying Attributes:**
5454

55-
> :warning: This entity definition contains attributes without a role.
56-
> Stable Entities MUST NOT have attributes without a defined role.
55+
| Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability |
56+
|---|---|---|---|---|---|
57+
| [`process.executable.name`](/docs/registry/attributes/process.md) | string | The name of the process executable. On Linux based systems, this SHOULD be set to the base name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to the base name of `GetProcessImageFileNameW`. | `otelcol` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
58+
59+
**Descriptive Attributes:**
5760

5861
| Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability |
5962
|---|---|---|---|---|---|
6063
| [`process.executable.build_id.gnu`](/docs/registry/attributes/process.md) | string | The GNU build ID as found in the `.note.gnu.build-id` ELF section (hex string). | `c89b11207f6479603b0d49bf291c092c2b719293` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
6164
| [`process.executable.build_id.go`](/docs/registry/attributes/process.md) | string | The Go build ID as retrieved by `go tool buildid <go executable>`. | `foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
6265
| [`process.executable.build_id.htlhash`](/docs/registry/attributes/process.md) | string | Profiling specific build ID for executables. See the OTel specification for Profiles for more information. | `600DCAFE4A110000F2BF38C493F5FB92` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
63-
| [`process.executable.name`](/docs/registry/attributes/process.md) | string | The name of the process executable. On Linux based systems, this SHOULD be set to the base name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to the base name of `GetProcessImageFileNameW`. | `otelcol` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
64-
| [`process.executable.path`](/docs/registry/attributes/process.md) | 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` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
6566

6667
## Process Runtime
6768

docs/resource/process.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ On Windows and other systems where the native format of process commands is a si
102102
| [`process.executable.build_id.go`](/docs/registry/attributes/process.md) | string | The Go build ID as retrieved by `go tool buildid <go executable>`. | `foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aY` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
103103
| [`process.executable.build_id.htlhash`](/docs/registry/attributes/process.md) | string | Profiling specific build ID for executables. See the OTel specification for Profiles for more information. | `600DCAFE4A110000F2BF38C493F5FB92` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
104104
| [`process.executable.name`](/docs/registry/attributes/process.md) | string | The name of the process executable. On Linux based systems, this SHOULD be set to the base name of the target of `/proc/[pid]/exe`. On Windows, this SHOULD be set to the base name of `GetProcessImageFileNameW`. | `otelcol` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
105-
| [`process.executable.path`](/docs/registry/attributes/process.md) | 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` | `Recommended` | ![Development](https://img.shields.io/badge/-development-blue) |
106105

107106
<!-- markdownlint-restore -->
108107
<!-- prettier-ignore-end -->

model/process/entities.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ groups:
4444
brief: The executable which is being run by the process.
4545
attributes:
4646
- ref: process.executable.name
47-
- ref: process.executable.path
47+
role: identifying
4848
- ref: process.executable.build_id.gnu
49+
role: descriptive
4950
- ref: process.executable.build_id.go
51+
role: descriptive
5052
- ref: process.executable.build_id.htlhash
53+
role: descriptive

0 commit comments

Comments
 (0)