mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:16:07 -04:00
Rename Metrics' "keys" to "labels"
This commit is contained in:
parent
399689dcc7
commit
f9478e475b
7 changed files with 26 additions and 26 deletions
|
@ -38,10 +38,10 @@ logger = logging.getLogger(__name__)
|
|||
metrics = synapse.metrics.get_metrics_for(__name__)
|
||||
|
||||
incoming_requests_counter = metrics.register_counter("incoming_requests",
|
||||
keys=["method"],
|
||||
labels=["method"],
|
||||
)
|
||||
outgoing_responses_counter = metrics.register_counter("outgoing_responses",
|
||||
keys=["method","code"],
|
||||
labels=["method","code"],
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue