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

rm-hull / dot-block / 19196371741
43%

Build:
DEFAULT BRANCH: main
Ran 08 Nov 2025 05:37PM UTC
Jobs 1
Files 11
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

08 Nov 2025 05:37PM UTC coverage: 49.003% (-4.2%) from 53.239%
19196371741

push

github

web-flow
refactor: Migrate to structured logging (slog) (#16)

* Refactor: Migrate to structured logging (slog)

This commit replaces usage of the standard `log` package with `log/slog`
throughout the application codebase.

Benefits include improved observability and easier parsing of logs:

*   Introduces `*slog.Logger` dependency injection into components
    (`App`, `DNSDispatcher`, `BlockList`).
*   Uses `github.com/samber/slog-gin` for structured logging of HTTP
    access requests.
*   Adds context (like `clientIP` and `requestId`) to DNS dispatch
    logging.

* style: Remove redundant logging comment

* refactor: Use consistent app.Logger

Migrates logging statements to use the application's internal
structured logger (`app.Logger`).

*   Replaces standard `log` calls with `app.Logger.Warn` or
    `app.Logger.Error`.
*   Removes reliance on external logging packages in `main.go`.
*   Ensures consistent severity levels and structured output.

* chore: Update OpenTelemetry dependency to v1.38.0

This updates the OpenTelemetry dependency modules listed in
`go.mod` from **v1.35.0** to **v1.38.0**.

20 of 56 new or added lines in 5 files covered. (35.71%)

56 existing lines in 4 files now uncovered.

344 of 702 relevant lines covered (49.0%)

0.53 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
0.0
0.0% main.go
8
71.98
-14.23% internal/dns.go
9
0.0
0.0% internal/downloader.go
14
0.0
0.0% internal/app.go

Uncovered Existing Lines

Lines Coverage ∆ File
3
0.0
0.0% main.go
7
79.49
-17.29% internal/blocklist.go
19
0.0
0.0% internal/app.go
27
71.98
-14.23% internal/dns.go
Jobs
ID Job ID Ran Files Coverage
1 19196371741.1 08 Nov 2025 05:37PM UTC 11
49.0
GitHub Action Run
Source Files on build 19196371741
  • Tree
  • List 11
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f4682fc7 on github
  • Prev Build on main (#19195692908)
  • Next Build on main (#19196454365)
  • 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