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

rm-hull / next-departures-api / 25232657800

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

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/cmd/api_server.go


Source Not Available

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