@@ -75,7 +75,7 @@ export class WebServer {
7575 private static _logger : winston . Logger ;
7676 private static app : express . Express = null ;
7777
78- public static openflow_nodered_node_activations : Counter ;
78+ // public static openflow_nodered_node_activations: Counter;
7979 public static openflow_nodered_node_duration : ValueRecorder ;
8080 public static message_queue_count : BaseObserver ;
8181
@@ -98,9 +98,9 @@ export class WebServer {
9898 if ( this . app !== null ) { return ; }
9999
100100 if ( ! NoderedUtil . IsNullUndefinded ( _otel ) ) {
101- this . openflow_nodered_node_activations = _otel . meter . createCounter ( "openflow_nodered_node_activations" , {
102- description : 'Total number of node type activations calls'
103- } ) // "nodetype"
101+ // this.openflow_nodered_node_activations = _otel.meter.createCounter("openflow_nodered_node_activations", {
102+ // description: 'Total number of node type activations calls'
103+ // }) // "nodetype"
104104
105105 this . openflow_nodered_node_duration = _otel . meter . createValueRecorder ( 'openflow_nodered_node_duration' , {
106106 description : 'Duration of each node type call' ,
@@ -230,8 +230,8 @@ export class WebServer {
230230 if ( ! NoderedUtil . IsNullEmpty ( msg . msgid ) && msg . event . startsWith ( "node." ) ) {
231231 msg . event = msg . event . substring ( 5 ) ;
232232 if ( msg . event . endsWith ( ".receive" ) ) {
233- if ( ! NoderedUtil . IsNullUndefinded ( WebServer . openflow_nodered_node_activations ) )
234- WebServer . openflow_nodered_node_activations . bind ( { ...otel . defaultlabels , nodetype : msg . event } ) . add ( 1 ) ;
233+ // if (!NoderedUtil.IsNullUndefinded(WebServer.openflow_nodered_node_activations))
234+ // WebServer.openflow_nodered_node_activations.bind({ ...otel.defaultlabels, nodetype: msg.event }).add(1);
235235
236236 if ( WebServer . log_messages [ msg . msgid ] == undefined ) WebServer . log_messages [ msg . msgid ] = new log_message ( msg . msgid , msg . nodeid ) ;
237237 const logmessage = WebServer . log_messages [ msg . msgid ] ;
0 commit comments