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

map-services / fuel-prices-api / 26314158067
51%

Build:
DEFAULT BRANCH: main
Ran 22 May 2026 10:03PM UTC
Jobs 1
Files 25
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

22 May 2026 10:03PM UTC coverage: 50.098% (+0.3%) from 49.833%
26314158067

push

github

web-flow
refactor: replace log with structured slog (#63)

* refactor: replace log with structured slog

Migrated project logging to use `log/slog` for structured output.
Implemented a new `middleware.RequestLogger` to provide detailed,
structured request logging.

```mermaid
graph TD
    A[HTTP Request] --> B{RequestLogger Middleware}
    B -->|Log Request Data| C[slog.JSONHandler]
    C --> D[stderr]
```

* refactor: improve logging precision and formatting

- Trim whitespace from migration logs to improve output cleanliness.
- Switch to `RequestURI` to capture full query parameters in logs.
- Increase latency precision to sub-millisecond accuracy by using
  microseconds converted to float milliseconds.

* refactor: sanitize request path in logger

* Changed `RequestURI` to `URL.Path` to avoid logging query parameters
  in the request logs, improving security and log readability.

34 of 99 new or added lines in 19 files covered. (34.34%)

5 existing lines in 2 files now uncovered.

767 of 1531 relevant lines covered (50.1%)

0.55 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
60.6
0.0% internal/repository.go
8
0.0
internal/logger.go
8
0.0
0.0% main.go
7
0.0
0.0% internal/cron.go
4
0.0
0.0% cmd/api_server.go
3
0.0
0.0% cmd/bootstrap.go
3
0.0
0.0% cmd/import.go
3
0.0
0.0% cmd/update_favicons.go
3
87.36
0.0% internal/client_fetch.go
3
89.33
-1.21% internal/models/fuel_prices.go
2
91.67
internal/middleware/logger.go
2
0.0
0.0% internal/routes/price_history.go
2
0.0
0.0% internal/routes/stats.go
1
71.79
0.0% internal/db.go
1
0.0
0.0% internal/favicon/extractor.go
1
89.06
0.0% internal/metrics/client_fetch_metrics.go
1
88.89
0.0% internal/metrics/distribution_metrics.go
1
91.89
0.0% internal/metrics/snapshot_metrics.go
1
0.0
0.0% internal/routes/search.go

Coverage Regressions

Lines Coverage ∆ File
4
0.0
0.0% main.go
1
89.33
-1.21% internal/models/fuel_prices.go
Jobs
ID Job ID Ran Files Coverage
1 26314158067.1 22 May 2026 10:03PM UTC 25
50.1
GitHub Action Run
Source Files on build 26314158067
  • Tree
  • List 25
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 0a069b37 on github
  • Prev Build on main (#26312647764)
  • Next Build on main (#26329612676)
  • 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