Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add semantic conventions for process resource to api/standard package #891

Closed
MrAlias opened this issue Jul 2, 2020 · 0 comments · Fixed by #919
Closed

Add semantic conventions for process resource to api/standard package #891

MrAlias opened this issue Jul 2, 2020 · 0 comments · Fixed by #919
Assignees
Labels
pkg:API Related to an API package

Comments

@MrAlias
Copy link
Contributor

MrAlias commented Jul 2, 2020

Attribute Description Example Required
process.pid Process identifier (PID). 1234 Yes
process.executable.name The name of the process executable. On Unix based systems, can be set to the Name in proc/[pid]/status. On Windows, can be set to the base name of GetProcessImageFileNameW. otelcol See below
process.executable.path The full path to the process executable. On Unix 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 See below
process.command The command used to launch the process (i.e. the command name). On Unix 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 See below
process.command_line The full command used to launch the process. The value can be either a list of strings representing the ordered list of arguments, or a single string representing the full command. On Unix based systems, can be set to the list of null-delimited strings extracted from proc/[pid]/cmdline. On Windows, can be set to the result of GetCommandLineW. Unix: [ cmd/otecol, --config=config.yaml ], Windows: cmd/otecol --config=config.yaml See below
process.owner The username of the user that owns the process. root No

Related to open-telemetry/opentelemetry-specification#635

@MrAlias MrAlias added this to the Implement v0.6.0 Specification milestone Jul 2, 2020
@MrAlias MrAlias added the pkg:API Related to an API package label Jul 2, 2020
@MrAlias MrAlias self-assigned this Jul 8, 2020
MrAlias referenced this issue in MrAlias/opentelemetry-go Jul 8, 2020
MrAlias added a commit that referenced this issue Jul 9, 2020
* Add sem-conv for OS process as resource attr keys

Resolves #891

* Add PR number to Changelog

* Apply suggestions from code review

Co-authored-by: ET <[email protected]>

* Update comments to Linux

Co-authored-by: ET <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:API Related to an API package
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant