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

rm-hull / dot-block / 19406973011
43%

Build:
DEFAULT BRANCH: main
Ran 16 Nov 2025 02:19PM UTC
Jobs 1
Files 13
Run time 1689min
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

16 Nov 2025 02:18PM UTC coverage: 53.298% (+0.4%) from 52.901%
19406973011

push

github

web-flow
feat: Add upstream latency & rename latency metric (#27)

* refactor: Rename latency metric and add upstream latency

The overall DNS request latency metric is renamed for clarity and
a new metric is introduced to track upstream query latency.

*   Renamed `LatencyHistogram` to `RequestLatency` in `DnsMetrics`.
*   Added `UpstreamLatency` histogram vector to track latency broken
    down by upstream IP address.
*   Updated `RoundRobinClient.Exchange` to return the upstream IP
    address used for the exchange.
*   Updated `DNSDispatcher` to record upstream latency.

* feat: Validate upstream servers in DNS client

The `RoundRobinClient` constructor now validates that at least one
upstream server is configured.

If the upstream list is empty, an error is returned during
initialization, preventing the application from starting with
an invalid configuration. This required updating the signature
of `NewRoundRobinClient` to return an error.

* refactor: Use shared `latencyBuckets` constant

Extracts the Prometheus histogram bucket definition into a shared
package-level variable `latencyBuckets`.

This eliminates duplication and ensures that all relevant DNS
latency metrics use the identical bucket scheme for consistency
and easier comparison.

23 of 29 new or added lines in 4 files covered. (79.31%)

404 of 758 relevant lines covered (53.3%)

0.57 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
40.54
-2.32% internal/forwarder/round_robin_client.go
4
0.0
0.0% internal/app.go
Jobs
ID Job ID Ran Files Coverage
1 19406973011.1 16 Nov 2025 02:19PM UTC 13
53.3
GitHub Action Run
Source Files on build 19406973011
  • Tree
  • List 13
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b1217235 on github
  • Prev Build on main (#19373333839)
  • Next Build on main (#19458178321)
  • Delete
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