Repository navigation
chore(metrics): deprecate the latency Summaries of invitations and webfinger - #3827
Open
pbleser-oc wants to merge 1 commit into
Open
pbleser-oc wants to merge 1 commit into
pbleser-oc wants to merge 1 commit into
Conversation
…bfinger Mark the Summaries opencloud_invitations_invitation_latency_microseconds and opencloud_webfinger_webfinger_latency_microseconds as deprecated, in their Help text and on the Latency fields of the metrics structs, so that they can be removed in a future release (opencloud-eu#3826). Summaries compute their quantiles on each instance, so they can't be aggregated across instances. Both services already expose the same measurement as a histogram (opencloud_invitations_invitation_duration_seconds and opencloud_webfinger_webfinger_duration_seconds), which should be used instead: note that it is in seconds, not in microseconds. The metrics themselves are unchanged and keep being recorded. Fixes opencloud-eu#3824
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Coverage variation | ✅ -0.01% coverage variation (-1.00%) |
| Diff coverage | ✅ 0.00% diff coverage |
Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (4c6d7e7) 92640 25430 27.45% Head commit (63a5343) 92640 (+0) 25420 (-10) 27.44% (-0.01%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>
Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#3827) 2 0 0.00% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3824 (part of #3817)
Changes
Deprecate the two remaining Prometheus Summaries, so that they can be removed in a future release (#3826):
opencloud_invitations_invitation_latency_microsecondsopencloud_invitations_invitation_duration_secondsopencloud_webfinger_webfinger_latency_microsecondsopencloud_webfinger_webfinger_duration_secondsLatencyfields of both metrics structs have aDeprecated:doc comment.Summaries compute their quantiles on each instance, so they can't be aggregated across instances. The histograms measure the same requests, and already exist next to the Summaries.
For the release notes
The Summaries
opencloud_invitations_invitation_latency_microsecondsandopencloud_webfinger_webfinger_latency_microsecondsare deprecated and will be removed in a future release. Use the histogramsopencloud_invitations_invitation_duration_secondsandopencloud_webfinger_webfinger_duration_secondsinstead. Note that they are in seconds, not microseconds, and that quantiles are computed withhistogram_quantile(), e.g.:With native histograms enabled in Prometheus (once #3825 is merged), the same query on the native histogram is:
Tests
go build,go vetand the tests of both services pass.