Fix Failed to stop metrics warnings in request metrics#18753
Merged
MadLittleMods merged 2 commits intodevelopfrom Jul 31, 2025
Merged
Fix Failed to stop metrics warnings in request metrics#18753MadLittleMods merged 2 commits intodevelopfrom
Failed to stop metrics warnings in request metrics#18753MadLittleMods merged 2 commits intodevelopfrom
Conversation
```
Failed to stop metrics: TypeError("prometheus_client.metrics.MetricWrapperBase.labels() got multiple values for keyword argument 'server_name'")
```
Failed to stop metrics in request metricsFailed to stop metrics warnings in request metrics
Same changelog as #18724 so they merge
MadLittleMods
commented
Jul 30, 2025
| @@ -0,0 +1 @@ | |||
| Refactor `Histogram` metrics to be homeserver-scoped. | |||
devonh
approved these changes
Jul 31, 2025
Contributor
Author
|
Thanks for the review @devonh 🦘 |
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.
Fix
Failed to stop metricswarnings in request metricsNoticed while running and debugging some tests.
This bug was introduced in #18724
Testing strategy
SYNAPSE_TEST_LOG_LEVEL=INFO poetry run trial tests.handlers.test_message_trial_temp/test.logto see any warnings/errors in the logs (search forFailed to stop metrics)Pull Request Checklist
EventStoretoEventWorkerStore.".code blocks.