Skip to content
Snippets Groups Projects
Commit f66f411f authored by ale's avatar ale
Browse files

Fix typo that prevents successful compilation

parent fd18f2d8
No related branches found
No related tags found
No related merge requests found
......@@ -188,7 +188,7 @@ func (p *ConnectionPool) doRequest(ctx context.Context, name string, attrs []tra
// Tracing: set the final status.
span.SetStatus(errorToTraceStatus(rerr))
requestsCounter.WithLabelValues(name).Inc()
if err != nil {
if rerr != nil {
requestErrors.WithLabelValues(name).Inc()
}
......@@ -293,3 +293,12 @@ var (
Help: "Counter of LDAP requests.",
}, []string{"method"})
)
func init() {
prometheus.MustRegister(
connectionsCounter,
connectionErrors,
requestsCounter,
requestErrors,
)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment