Skip to content

[host] update the recommendations to use full paths to commands#3896

Merged
lmolkova merged 4 commits into
open-telemetry:mainfrom
lachmatt:host-detection-improvements
Jul 23, 2026
Merged

[host] update the recommendations to use full paths to commands#3896
lmolkova merged 4 commits into
open-telemetry:mainfrom
lachmatt:host-detection-improvements

Conversation

@lachmatt

@lachmatt lachmatt commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Fixes #

Changes

Update the recommendations to use full path to commands.
Recommendation is based on the implementation in opentelemetry-go which was recently fixed.

Important

Pull request acceptance is subject to the triage process as described in Issue and PR Triage Management.
PRs that do not follow the guidance above may be automatically rejected and closed.

Merge requirement checklist

  • CONTRIBUTING.md guidelines followed.
  • Links to prototypes or existing instrumentations (when adding or changing conventions)
  • Disclose AI usage, see OTel GenAI policy:
    • no AI used
    • AI-assisted
    • bulk AI-generated
  • I have the experience and knowledge necessary to understand, review, and validate all content in this PR.1

Footnotes

  1. Yes, I can answer maintainer questions about the content of this PR without using AI.

Copilot AI review requested due to automatic review settings July 15, 2026 10:05
@lachmatt
lachmatt requested review from a team as code owners July 15, 2026 10:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Host resource documentation to recommend using full filesystem paths when invoking system commands to retrieve machine identifiers, improving clarity and reducing ambiguity in command resolution.

Changes:

  • Use /bin/kenv (instead of kenv) for the BSD fallback machine ID lookup command.
  • Use /usr/sbin/ioreg (instead of ioreg) for the macOS primary machine ID lookup command.

@lachmatt
lachmatt requested a review from a team as a code owner July 15, 2026 11:01

@pellared pellared left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the PR description.
Please describe the reason behind the change and link some implementation PRs.

@github-project-automation github-project-automation Bot moved this from Untriaged to Needs More Approval in Semantic Conventions Triage Jul 17, 2026
@lmolkova lmolkova moved this from Needs More Approval to Awaiting codeowners approval in Semantic Conventions Triage Jul 17, 2026
Comment thread model/host/entities.yaml
@lmolkova lmolkova moved this from Awaiting codeowners approval to Ready to be Merged in Semantic Conventions Triage Jul 18, 2026
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Jul 21, 2026

Copy link
Copy Markdown

Pull request dashboard status

Status last refreshed: 2026-07-23 03:24:52 UTC.

  • Status: Merged.

This automated status or its linked feedback items may be incorrect. If something looks wrong, please report it with the result you expected.

@github-actions github-actions Bot added enhancement New feature or request area:host labels Jul 21, 2026
@martincostello

Copy link
Copy Markdown
Member

Please describe the reason behind the change and link some implementation PRs.

Context is the now-published GHSA-v8pv-4842-x354.

Merged via the queue into open-telemetry:main with commit e20cc37 Jul 23, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:host enhancement New feature or request

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

7 participants