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

thoughtspot / mcp-server / 25421235134
88%

Build:
DEFAULT BRANCH: main
Ran 06 May 2026 07:03AM UTC
Jobs 1
Files 33
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

06 May 2026 07:02AM UTC coverage: 88.383% (+0.05%) from 88.33%
25421235134

push

github

web-flow
SCAL-308280 Instrument request and auth health metrics (#134)

* SCAL-308280 Instrument request and auth health metrics

## Summary

Add the request-layer metrics for SCAL-308280 so MCP traffic and auth flows
emit bounded counters and latency through the shared runtime recorder.

## What Changed

- record ts_mcp_http_requests_total and ts_mcp_http_request_duration_ms at the worker edge with route, transport, auth mode, api surface, outcome, status class, and canonical api version labels
- add helpers to resolve bounded api_version values through the version registry instead of copying raw query params
- emit auth outcome counters for /authorize, /callback, /store-token, and /bearer/* / /token/* requests
- add focused tests for request metric labeling and auth metric emission
- include the small metrics-runtime review nits from PR #126 while touching the same files

## Notes

- ts_mcp_http_inflight_requests remains intentionally unimplemented because the current request-scoped recorder cannot represent a real inflight gauge safely

## Validation

- npm run lint -- src/index.ts src/bearer.ts src/handlers.ts src/metrics/runtime/request-metrics.ts src/metrics/runtime/grafana-otlp-sink.ts test/metrics/runtime/request-metrics.spec.ts test/bearer.spec.ts test/handlers.spec.ts
- npm test -- --coverage.enabled false test/metrics/runtime/request-metrics.spec.ts test/bearer.spec.ts test/handlers.spec.ts

* SCAL-308280 Fix API version labels in request metrics

## Summary

- map resolved API versions to stable low-cardinality labels
- reuse the parsed request URL in bearer auth handling
- add coverage for date-based API version label mapping

613 of 712 branches covered (86.1%)

Branch coverage included in aggregate %.

125 of 139 new or added lines in 5 files covered. (89.93%)

1426 of 1595 relevant lines covered (89.4%)

631.5 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
89.16
-0.06% src/handlers.ts
3
92.86
-1.14% src/metrics/runtime/request-metrics.ts
2
95.31
-4.69% src/bearer.ts
2
64.29
0.4% src/index.ts
1
85.63
0.0% src/metrics/runtime/grafana-otlp-sink.ts
Jobs
ID Job ID Ran Files Coverage
1 25421235134.1 06 May 2026 07:03AM UTC 33
88.38
GitHub Action Run
Source Files on build 25421235134
  • Tree
  • List 33
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25421235134
  • d9ed7b79 on github
  • Prev Build on main (#25397941180)
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