Stop BackgroundProcessLoggingContext making new prometheus timeseries (#9854)

This undoes part of b076bc276e.
This commit is contained in:
Richard van der Hoff 2021-04-21 10:03:31 +01:00 committed by GitHub
parent 05fa06834d
commit 5d281c10dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 5 deletions

View file

@ -185,7 +185,7 @@ class BaseReplicationStreamProtocol(LineOnlyReceiver):
# a logcontext which we use for processing incoming commands. We declare it as a
# background process so that the CPU stats get reported to prometheus.
self._logging_context = BackgroundProcessLoggingContext(
"replication-conn-%s" % (self.conn_id,)
"replication-conn", self.conn_id
)
def connectionMade(self):