Software /
code /
prosody
Changeset
13509:f14066ee3239
mod_s2s_bidi: Include empty list of labels in metrics
Throws error attempting to append the nil label list to an array for
host-scoped metrics.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 16 Aug 2024 18:39:46 +0200 |
parents | 13508:eac86b5fb04b |
children | 13510:393e265aafba |
files | plugins/mod_s2s_bidi.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_s2s_bidi.lua Fri Aug 16 17:06:41 2024 +0200 +++ b/plugins/mod_s2s_bidi.lua Fri Aug 16 18:39:46 2024 +0200 @@ -12,9 +12,9 @@ local require_encryption = module:get_option_boolean("s2s_require_encryption", true); -local offers_sent = module:metric("counter", "offers_sent", "", "Bidirectional connection offers sent"); -local offers_recv = module:metric("counter", "offers_recv", "", "Bidirectional connection offers received"); -local offers_taken = module:metric("counter", "offers_taken", "", "Bidirectional connection offers taken"); +local offers_sent = module:metric("counter", "offers_sent", "", "Bidirectional connection offers sent", {}); +local offers_recv = module:metric("counter", "offers_recv", "", "Bidirectional connection offers received", {}); +local offers_taken = module:metric("counter", "offers_taken", "", "Bidirectional connection offers taken", {}); module:hook("s2s-stream-features", function(event) local origin, features = event.origin, event.features;