mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-01-30 04:40:41 +02:00
Add semantic conventions for OS process as resource attributes (#919)
* 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 <evantorrie@users.noreply.github.com> * Update comments to Linux Co-authored-by: ET <evantorrie@users.noreply.github.com>
This commit is contained in:
parent
54fffd6467
commit
d979977a40
@ -19,6 +19,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
||||
- Add semantic convention for `faas.coldstart` and `container.id`. (#909)
|
||||
- Add http content size semantic conventions. (#905)
|
||||
- Include `http.request_content_length` in HTTP request basic attributes. (#905)
|
||||
- Add semantic conventions for operating system process resource attribute keys. (#919)
|
||||
|
||||
### Changed
|
||||
|
||||
|
@ -92,6 +92,34 @@ const (
|
||||
FaaSInstanceKey = kv.Key("faas.instance")
|
||||
)
|
||||
|
||||
// Standard operating system process resource attribute keys.
|
||||
const (
|
||||
// Process identifier (PID).
|
||||
ProcessPIDKey = kv.Key("process.pid")
|
||||
// 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`.
|
||||
ProcessExecutableNameKey = kv.Key("process.executable.name")
|
||||
// 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`.
|
||||
ProcessExecutablePathKey = kv.Key("process.executable.path")
|
||||
// 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`.
|
||||
ProcessCommandKey = kv.Key("process.command")
|
||||
// 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 Linux 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`.
|
||||
ProcessCommandLineKey = kv.Key("process.command_line")
|
||||
// The username of the user that owns the process.
|
||||
ProcessOwnerKey = kv.Key("process.owner")
|
||||
)
|
||||
|
||||
// Standard Kubernetes resource attribute keys.
|
||||
const (
|
||||
// A uniquely identifying name for the Kubernetes cluster. Kubernetes
|
||||
|
Loading…
x
Reference in New Issue
Block a user