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

Cache name resolution #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

haileys
Copy link
Contributor

@haileys haileys commented Jan 27, 2021

We currently perform name resolution on every metric that is sent.

This pull request moves name resolution into the Options constructor. One consequence of this change is Options::new is now fallible, so this PR will introduce a breaking API change.

@mcasper
Copy link
Owner

mcasper commented Jan 27, 2021

I love the idea, but currently this introduces a new failure mode for long-lived clients if a DNS record they're sending metrics to rotates IPs, as is common in cloud providers like AWS. I think we probably need to either re-resolve the record on a NotConnected error, or provide a way for the client to be refreshed so users can do that on their own

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