Rename summary/histogram params in metricsMiddleware to clarify intent#39475
Rename summary/histogram params in metricsMiddleware to clarify intent#39475Copilot wants to merge 10 commits intotest-new-metricsfrom
summary/histogram params in metricsMiddleware to clarify intent#39475Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
_total counters)
6eea18e to
edb0ad4
Compare
…counters)" Co-authored-by: d-gubert <1810309+d-gubert@users.noreply.github.com>
27f3984 to
1697a76
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
d-gubert
left a comment
There was a problem hiding this comment.
@copilot apply each of the comments in this change request as a separate commit.
Additionally, add the following metrics:
- A histogram to track response sizes in bytes
- A gauge to measure active requests
Both can be observed in the metrics middleware
…stogram Co-authored-by: d-gubert <1810309+d-gubert@users.noreply.github.com>
Co-authored-by: d-gubert <1810309+d-gubert@users.noreply.github.com>
Co-authored-by: d-gubert <1810309+d-gubert@users.noreply.github.com>
…chain Co-authored-by: d-gubert <1810309+d-gubert@users.noreply.github.com>
Co-authored-by: d-gubert <1810309+d-gubert@users.noreply.github.com>
…leware Co-authored-by: d-gubert <1810309+d-gubert@users.noreply.github.com>
All comments applied as separate commits:
|
Co-authored-by: d-gubert <1810309+d-gubert@users.noreply.github.com>
|
@copilot fix the errors in this CI run https://github.com/RocketChat/Rocket.Chat/actions/runs/22868898741?pr=39475 Each fix gets its own commit. Do not fix lint errors from files you did not previously edit |
…ctiveRequestsGauge mocks Co-authored-by: d-gubert <1810309+d-gubert@users.noreply.github.com>
Fixed in commit
|
…stogram in metricsMiddleware Co-authored-by: d-gubert <1810309+d-gubert@users.noreply.github.com>
_total counters)summary/histogram params in metricsMiddleware to clarify intent
The
summaryandhistogramparameters inmetricsMiddlewarewere too generic — they didn't communicate what was being measured.Changes
summary→endpointTimeSummaryandhistogram→endpointTimeHistogramin the middleware signature and all call sites (api.ts,integrations/api.ts,rest.ts,metrics.spec.ts)Original prompt
This pull request was created from Copilot chat.
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.