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

rm-hull / next-departures-api / 25230759341
28%
main: 28%

Build:
Build:
LAST BUILD BRANCH: chore/update-go-deps
DEFAULT BRANCH: main
Ran 01 May 2026 08:02PM 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:01PM UTC coverage: 29.894% (+7.8%) from 22.073%
25230759341

Pull #9

github

rm-hull
feat: add prometheus metrics for siri client

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)
```
Pull Request #9: feat: add prometheus metrics for siri client

58 of 66 new or added lines in 3 files covered. (87.88%)

11 existing lines in 2 files now uncovered.

310 of 1037 relevant lines covered (29.89%)

0.32 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
88.24
internal/metrics/siri_metrics.go
1
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 25230759341.1 01 May 2026 08:02PM UTC 17
29.89
GitHub Action Run
Source Files on build 25230759341
  • Tree
  • List 17
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #9
  • PR Base - main (#25230342317)
  • 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