Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
592ee217
Commit
592ee217
authored
6 years ago
by
Richard van der Hoff
Browse files
Options
Downloads
Plain Diff
Merge commit '
b7e7fd2d
' into release-v0.31.0
parents
244ab974
b7e7fd2d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
synapse/metrics/__init__.py
+6
-3
6 additions, 3 deletions
synapse/metrics/__init__.py
synapse/replication/tcp/protocol.py
+2
-2
2 additions, 2 deletions
synapse/replication/tcp/protocol.py
with
8 additions
and
5 deletions
synapse/metrics/__init__.py
+
6
−
3
View file @
592ee217
...
...
@@ -60,10 +60,13 @@ class LaterGauge(object):
try
:
calls
=
self
.
caller
()
except
Exception
as
e
:
print
(
e
)
logger
.
err
()
except
Exception
:
logger
.
exception
(
"
Exception running callback for LaterGuage(%s)
"
,
self
.
name
,
)
yield
g
return
if
isinstance
(
calls
,
dict
):
for
k
,
v
in
calls
.
items
():
...
...
This diff is collapsed.
Click to expand it.
synapse/replication/tcp/protocol.py
+
2
−
2
View file @
592ee217
...
...
@@ -622,7 +622,7 @@ tcp_inbound_commands = LaterGauge(
lambda
:
{
(
k
[
0
],
p
.
name
,
p
.
conn_id
):
count
for
p
in
connected_connections
for
k
,
count
in
iteritems
(
p
.
inbound_commands_counter
.
counts
)
for
k
,
count
in
iteritems
(
p
.
inbound_commands_counter
)
})
tcp_outbound_commands
=
LaterGauge
(
...
...
@@ -630,7 +630,7 @@ tcp_outbound_commands = LaterGauge(
lambda
:
{
(
k
[
0
],
p
.
name
,
p
.
conn_id
):
count
for
p
in
connected_connections
for
k
,
count
in
iteritems
(
p
.
outbound_commands_counter
.
counts
)
for
k
,
count
in
iteritems
(
p
.
outbound_commands_counter
)
})
# number of updates received for each RDATA stream
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment