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

rm-hull / next-departures-api / 25230759341

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

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