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

feat(metrics): Add option to send hostname with every metric #513

Merged
merged 4 commits into from
Aug 3, 2021

Conversation

loewenheim
Copy link
Contributor

@loewenheim loewenheim requested a review from a team August 2, 2021 15:00
@loewenheim
Copy link
Contributor Author

Incidentally, is there a way to test this? Would it even make sense to do so?

@Swatinem
Copy link
Member

Swatinem commented Aug 2, 2021

the way to test these metrics things would be to set up a local docker image will all the relevant servers in there, which is a bit of a pain in the rear.

@loewenheim loewenheim merged commit 3c628c8 into master Aug 3, 2021
@loewenheim loewenheim deleted the feat/metrics-hostname branch August 3, 2021 08:14
Comment on lines +9 to +10
type Hostname = String;
type HostnameTag = String;
Copy link
Contributor

Choose a reason for hiding this comment

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

i'm curious why you chose aliases rather than newtypes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just wanted it to be clear which string is which in the definition of MetricsClient. I don't think a newtype would provide any extra safety in this situation.

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.

3 participants