process.executable.name
shouldn't use /proc/[pid]/status
#1736
Labels
process.executable.name
shouldn't use /proc/[pid]/status
#1736
Area(s)
area:process
Is your change request related to a problem? Please describe.
Today, the
process.executable.name
attribute has the following description:The Windows guidance in the description will provide an accurate result, but the Linux guidance is problematic.
/proc/[pid]/status
may not have the executable name under two circumstances:TASK_COMM_LEN
-1) (man page)prctl(PR_SET_NAME,...)
(man page)Describe the solution you'd like
The current description for
process.executable.name
should instead be applied to a new attribute calledprocess.name
, andprocess.executable.name
should have guidance adjusted so that it actually will represent the executable name.Describe alternatives you've considered
No response
Additional context
Issue was first brought forward by @christos68k in the Semantic Conventions WG meeting on Jan 6, 2025. Further discussion took place in the
#otel-system-metrics
CNCF Slack channel.The text was updated successfully, but these errors were encountered: