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

rm-hull / next-departures-api / 25232657800
28%

Build:
DEFAULT BRANCH: main
Ran 01 May 2026 08:53PM UTC
Jobs 1
Files 17
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

01 May 2026 08:52PM UTC coverage: 28.445% (+6.4%) from 22.073%
25232657800

push

github

web-flow
feat: add prometheus metrics for siri client (#9)

Implement instrumentation for the SIRI API client to monitor external
service dependencies. This allows for better observability into the
performance and reliability of the TransportAPI integration.

The following metrics are now collected:
- **Request Latency**: Histogram of HTTP response times for SIRI
requests.
- **Status Codes**: Counter of HTTP response statuses (success/error).
- **Items Fetched**: Counter tracking the total number of monitored stop
visits retrieved.

```mermaid
sequenceDiagram
    participant C as SiriClient
    participant M as SiriMetrics
    participant API as TransportAPI

    Note over C, M: Start request timer
    C->>API: GET /stop-monitoring
    API-->>C: XML Response
    C->>M: RecordHttpCall (latency, status)

    Note over C: Parse XML body
    C->>M: RecordFetchedItems (count)
```

37 of 47 new or added lines in 3 files covered. (78.72%)

11 existing lines in 2 files now uncovered.

289 of 1016 relevant lines covered (28.44%)

0.31 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
80.0
internal/metrics/siri_metrics.go
3
0.0
0.0% cmd/api_server.go
1
80.0
80.0% internal/siri_client.go

Coverage Regressions

Lines Coverage ∆ File
7
0.0
0.0% cmd/api_server.go
4
80.0
80.0% internal/siri_client.go
Jobs
ID Job ID Ran Files Coverage
1 25232657800.1 01 May 2026 08:53PM UTC 17
28.44
GitHub Action Run
Source Files on build 25232657800
  • Tree
  • List 17
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a6f50caf on github
  • Prev Build on main (#25232538890)
  • Next Build on main (#25361773757)
  • 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