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

Sy/dns change #19276

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Sy/dns change #19276

wants to merge 6 commits into from

Conversation

steveny91
Copy link
Contributor

@steveny91 steveny91 commented Dec 17, 2024

What does this PR do?

We time response time by setting a timestamp then running some code and then calculate the time it took to ran that code. Setting the timestamp closer to the actual line of code that needs to be timed can help get a more accurate reading on the response time.

Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.64%. Comparing base (1a108b7) to head (28df615).
Report is 24 commits behind head on master.

Additional details and impacted files
Flag Coverage Δ
activemq ?
cassandra ?
dns_check 93.84% <100.00%> (+0.03%) ⬆️
hive ?
hivemq ?
ignite ?
jboss_wildfly ?
kafka ?
presto ?
solr ?

Flags with carried forward coverage won't be shown. Click here to find out more.

@steveny91 steveny91 marked this pull request as ready for review December 24, 2024 14:52
@steveny91 steveny91 requested a review from a team as a code owner December 24, 2024 14:52
resolver.query(self.hostname)
except dns.resolver.NXDOMAIN:
pass
response_time = get_precise_time() - t0
Copy link
Contributor

@Kyle-Neale Kyle-Neale Dec 24, 2024

Choose a reason for hiding this comment

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

Why do we still want to get the response time from a record we fail to query? Maybe I'm missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants