File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,6 @@ module.exports = class AudioSession extends BaseProvider {
122
122
force : true ,
123
123
reason : 'consumer_bridge_restarting' ,
124
124
} ) ;
125
- PrometheusAgent . increment ( SFUA_NAMES . TRANSCEIVER_CONSUMER_RESTARTS ) ;
126
125
}
127
126
128
127
_onConsumerBridgeRestarted ( ) {
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ const config = require('config');
5
5
const C = require ( '../bbb/messages/Constants' ) ;
6
6
const Logger = require ( '../common/logger.js' ) ;
7
7
const errors = require ( '../base/errors.js' ) ;
8
+ const { PrometheusAgent, SFUA_NAMES } = require ( './metrics/audio-metrics.js' ) ;
8
9
9
10
const GLOBAL_AUDIO_PREFIX = "GLOBAL_AUDIO_" ;
10
11
const GLOBAL_AUDIO_CONNECTION_TIMEOUT = config . get ( 'mediaFlowTimeoutDuration' ) ;
@@ -340,6 +341,7 @@ module.exports = class FSConsumerBridge extends EventEmitter {
340
341
if ( this . _restarting ) {
341
342
this . emit ( C . MEDIA_RESTARTED ) ;
342
343
this . _restarting = false ;
344
+ PrometheusAgent . increment ( SFUA_NAMES . TRANSCEIVER_CONSUMER_RESTARTS ) ;
343
345
}
344
346
345
347
this . emit ( C . MEDIA_STARTED ) ;
You can’t perform that action at this time.
0 commit comments