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

Properly set meta.refinery.local_hostname field #387

Merged
merged 3 commits into from
Feb 1, 2022

Conversation

jharley
Copy link
Contributor

@jharley jharley commented Jan 31, 2022

Ensure the hostname is set before transmitting upstream to the current hostname.

Which problem is this PR solving?

Short description of the changes

@jharley jharley requested a review from a team January 31, 2022 21:12
@puckpuck
Copy link
Contributor

puckpuck commented Feb 1, 2022

Since this will get called with each outgoing span, instead of just once at startup, does it make sense to cache the hostname and reuse it instead of calling os.Hostname() for each span?

Copy link
Contributor

@MikeGoldsmith MikeGoldsmith left a comment

Choose a reason for hiding this comment

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

Thanks for working on this @jharley.

I made a small adjustment to get the hostname during the collector Start func to be reused across all traces.

@MikeGoldsmith MikeGoldsmith merged commit d4da596 into main Feb 1, 2022
@MikeGoldsmith MikeGoldsmith deleted the jharley.fix-meta-localhostname branch February 1, 2022 10:32
ghost pushed a commit to opsramp/tracing-proxy that referenced this pull request Jul 5, 2024
Co-authored-by: Mike Goldsmth <goldsmith.mike@gmail.com>
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.

The meta.refinery.local_hostname field, is not set properly
3 participants