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

chore!: remove duplicate hostname resource attribute #433

Merged
merged 3 commits into from
Oct 9, 2020

Conversation

mwear
Copy link
Member

@mwear mwear commented Oct 8, 2020

I noticed this in JS, so I thought I'd fix it here also. There were two host name attributes: host.name and host.hostname. This PR removes the latter as per: open-telemetry/opentelemetry-specification#838. The spec is pretty loose about the precedence to use when determining the host.name value. I chose the sequence: environment variable, gcp metadata hostname, Socket.gethostname. We can change that if there's a better ordering.

@mwear mwear merged commit c8e0e57 into open-telemetry:master Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants