Skip to content

chore: add destination to incoming federation responses metrics#272

Open
jason-famedly wants to merge 1 commit into
masterfrom
jason/add-fed-metrics-requests
Open

chore: add destination to incoming federation responses metrics#272
jason-famedly wants to merge 1 commit into
masterfrom
jason/add-fed-metrics-requests

Conversation

@jason-famedly

Copy link
Copy Markdown
Member

SYN-61
Add a destination label to the incoming responses for federation requests, under synapse_http_matrixfederationclient_responses.

@jason-famedly jason-famedly requested a review from a team as a code owner June 15, 2026 18:26
Copilot AI review requested due to automatic review settings June 15, 2026 18:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a destination label to the synapse_http_matrixfederationclient_responses Prometheus counter so incoming federation response metrics can be broken down by the remote server being contacted.

Changes:

  • Extend synapse_http_matrixfederationclient_responses counter label set to include destination.
  • Populate the new destination label from MatrixFederationRequest.destination when incrementing the counter.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.42%. Comparing base (c2ac46f) to head (a165b9a).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #272      +/-   ##
==========================================
- Coverage   80.42%   80.42%   -0.01%     
==========================================
  Files         502      502              
  Lines       72430    72430              
  Branches    10917    10917              
==========================================
- Hits        58254    58250       -4     
- Misses      10896    10900       +4     
  Partials     3280     3280              
Files with missing lines Coverage Δ
synapse/http/matrixfederationclient.py 83.40% <ø> (ø)

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c2ac46f...a165b9a. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jason-famedly jason-famedly changed the title add destination to incoming federation responses metrics chore: add destination to incoming federation responses metrics Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants