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

Set upstream connection_name to hostname #189

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

carlhoerberg
Copy link
Member

Kubernetes exposes the podname via the gethostname glibc call. This will show the podname as the easy to read identifier for the connection.

Fixes #187

Could expose it as a config variable too, but I think this addresses the need and is much simplier, both as a patch and for the user to use.

Kubernetes exposes the podname via the `gethostname` glibc call. This
will show the podname as the easy to read identifier for the connection.

Fixes #187

Could expose it as a config variable too, but I think this addresses the
need and is much simplier, both as a patch and for the user to use.
@carlhoerberg carlhoerberg requested a review from a team as a code owner November 11, 2024 09:38
Copy link
Member

@snichme snichme left a comment

Choose a reason for hiding this comment

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

Using hostname is fine for many use cases but in the issue they request setting the name using an environment variable and we would cover more cases if we allow setting a custom name. Hostname could be the default if there are no name from environment.

@carlhoerberg
Copy link
Member Author

The original issue requested to able to see which pod the connection came from, which this addresses. A custom config per pod seems more of a hassle?

@carlhoerberg carlhoerberg merged commit c9725e8 into main Nov 12, 2024
4 checks passed
@carlhoerberg carlhoerberg deleted the hostname-as-connection-name branch November 12, 2024 16:50
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.

Allow overriding connection_name with a different value
2 participants