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

rm-hull / fuel-prices-api / 23378851659
46%

Build:
DEFAULT BRANCH: main
Ran 21 Mar 2026 11:38AM 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

21 Mar 2026 11:37AM UTC coverage: 28.667% (+1.5%) from 27.204%
23378851659

push

github

web-flow
feat: add SQL query latency metrics (#38)

* chore: bump project dependencies

Update the following packages to their latest versions:
* `github.com/bytedance/gopkg`
* `github.com/cockroachdb/redact`
* `github.com/klauspost/compress`
* `github.com/oapi-codegen/runtime`

* feat: add SQL query latency metrics

Introduced Prometheus histogram metrics to track SQL execution
latency across repository operations.

```mermaid
sequenceDiagram
    participant Repo as sqliteRepository
    participant M as SqlMetrics
    participant DB as SQLite DB

    Repo->>Repo: Record(start)
    Repo->>DB: Execute Query
    DB-->>Repo: Result
    Repo->>M: Record(duration)
    M->>M: Observe latency
```

* refactor: improve json handling and metrics registration

- Centralized `jsoniter` configuration into a dedicated internal file.
- Introduced `RegisterOrPanic` helper to handle idempotent prometheus
  metric registration, preventing panics on duplicate registrations
  while ensuring errors are caught during startup.

* perf: move metrics recording before transaction

Ensure metric duration tracking starts at the entry of the repository
methods to capture the full overhead, including transaction
initialization.

33 of 42 new or added lines in 6 files covered. (78.57%)

1 existing line in 1 file now uncovered.

387 of 1350 relevant lines covered (28.67%)

0.31 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
62.5
internal/metrics/registry.go
6
0.0
0.0% internal/metrics/client_fetch_metrics.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% internal/metrics/client_fetch_metrics.go
Jobs
ID Job ID Ran Files Coverage
1 23378851659.1 21 Mar 2026 11:38AM UTC 22
28.67
GitHub Action Run
Source Files on build 23378851659
  • Tree
  • List 22
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 48279cd2 on github
  • Prev Build on main (#23377498627)
  • Next Build on main (#23451908461)
  • 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