Skip to content

Cache name resolution#32

Open
haileys wants to merge 1 commit intomcasper:masterfrom
haileys:cache-dns-lookup
Open

Cache name resolution#32
haileys wants to merge 1 commit intomcasper:masterfrom
haileys:cache-dns-lookup

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