• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

c-ares / c-ares / #807
92%

Build:
DEFAULT BRANCH: main
Ran 28 Apr 2024 09:29PM UTC
Jobs 1
Files 150
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Apr 2024 09:25PM UTC coverage: 80.619% (-0.007%) from 80.626%
#807

push

travis-ci

web-flow
Add observability into DNS server health via a server state callback, invoked whenever a query finishes (#744)

**Summary**

This PR adds a server state callback that is invoked whenever a query to
a DNS server finishes.

The callback is invoked with the server details (as a string), a boolean
indicating whether the query succeeded or failed, flags describing the
query (currently just indicating whether TCP or UDP was used), and
custom userdata.

This can be used by user applications to gain observability into DNS
server health and usage. For example, alerts when a DNS server
fails/recovers or metrics to track how often a DNS server is used and
responds successfully.

**Testing**

Three new regression tests `MockChannelTest.ServStateCallback*` have
been added to test the new callback in different success/failure
scenarios.

Fix By: Oliver Welsh (@oliverwelsh)

53 of 70 new or added lines in 3 files covered. (75.71%)

1 existing line in 1 file now uncovered.

8419 of 10443 relevant lines covered (80.62%)

3841.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #807.1 28 Apr 2024 09:29PM UTC 0
80.62
Source Files on build #807
Detailed source file information is not available for this build.
  • Back to Repo
  • 89a8856c on github
  • Prev Build on main
  • Next Build on main
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc