open-telemetry / open-telemetry/opentelemetry-python
Add host.id resource attribute detector
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.6k
- Forks
- 1k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 19
Description
Is your feature request related to a problem?
host.id is a recommended resource attribute: https://opentelemetry.io/docs/specs/semconv/resource/host/
Describe the solution you'd like
I'd like to augment the existing host resource detector to also include host.id when available
Describe alternatives you've considered
The collector can stamp the host.id, but that doesn't help in all deployment types where there might not be a collector in the position to do that.
Additional Context
Originally opened an issue in contrib (https://github.com/open-telemetry/opentelemetry-python-contrib/issues/4830) but was redirected to add it here instead of establishing a new module
Would you like to implement a fix?
Yes
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing host resource detector in the OpenTelemetry Python SDK and read the host resource semantic-conventions documentation linked in the issue. Add host.id when it is available, and verify the detector's tests cover both availability and absence of the attribute.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- observability-sre
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100