Skip to content

Commit 4423e7f

Browse files
committed
Call updateMonitoringMetrics for all queries
1 parent b01ce77 commit 4423e7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dnscrypt-proxy/proxy.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,9 @@ func (proxy *Proxy) processIncomingQuery(
713713
// Initialize plugin state
714714
pluginsState := NewPluginsState(proxy, clientProto, clientAddr, serverProto, start)
715715

716+
// Update monitoring metrics
717+
defer updateMonitoringMetrics(proxy, &pluginsState)
718+
716719
var serverInfo *ServerInfo
717720
var serverName string = "-"
718721

@@ -818,9 +821,6 @@ func (proxy *Proxy) processIncomingQuery(
818821
// Apply logging plugins
819822
pluginsState.ApplyLoggingPlugins(&proxy.pluginsGlobals)
820823

821-
// Update monitoring metrics
822-
updateMonitoringMetrics(proxy, &pluginsState)
823-
824824
return response
825825
}
826826

0 commit comments

Comments
 (0)