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

rm-hull / dot-block / 26843098957
47%

Build:
DEFAULT BRANCH: main
Ran 02 Jun 2026 07:30PM UTC
Jobs 1
Files 22
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

02 Jun 2026 07:30PM UTC coverage: 47.324% (-0.06%) from 47.388%
26843098957

push

github

web-flow
refactor: relocate error metric increment (#137)

* feat: buffer metrics collection in RequestContext

Refactored telemetry recording to collect data within `RequestContext`
instead of immediate metric emission. This ensures consistency and
avoids partial updates during request processing.

* refactor: centralize telemetry recording in metrics package

Move the telemetry recording logic from `DNSDispatcher` to
`metrics.DnsMetrics` to encapsulate metric operations and reduce
dependency on the dispatcher.

- Introduced `TelemetryData` struct to hold request-scoped telemetry.
- Migrated all `prometheus` recording operations into
`DnsMetrics.RecordTelemetry`.
- Moved geolocation lookup to the background worker to ensure cleaner
data collection flow.

* refactor: move geo-ip lookup logic into metrics

Centralize geolocation logic within the `metrics` package by injecting
the `GeoIpLookup` interface directly into `DnsMetrics`. This removes the
 dependency from the `DNSDispatcher` and simplifies the telemetry
recording flow.

* refactor: encapsulate TelemetryData fields

- Encapsulated `TelemetryData` fields to private to ensure controlled
  access.
- Added setter and helper methods to manage state, improving
  encapsulation and preventing direct field mutation from external
  packages.

* refactor: remove unused metrics structs

Clean up `dispatcher.go` by removing `queryCountInfo` and
`upstreamTTLInfo` structs which are no longer utilized in the
forwarder logic.

* refactor: improve telemetry recording and structure

- Move telemetry state management into `metrics.TelemetryData`.
- Encapsulate metric recording within the `TelemetryData` struct.
- Simplify `GeoIpLookup` usage by removing the wrapper.
- Improve `RequestContext` by delegating telemetry life-cycle
management.

* refactor: optimize telemetry tracking for request types

- Change `requestTypes` slice to a boolean `forwarded` field.
- Encapsulate request type logic within `TelemetryData.Record`.
-... (continued)

1 of 1 new or added line in 1 file covered. (100.0%)

778 of 1644 relevant lines covered (47.32%)

1095.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26843098957.1 02 Jun 2026 07:30PM UTC 22
47.32
GitHub Action Run
Source Files on build 26843098957
  • Tree
  • List 22
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • c1ec4cb3 on github
  • Prev Build on main (#26842860598)
  • 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