We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e501fe commit c02ac93Copy full SHA for c02ac93
models/db/engine_hook.go
@@ -27,7 +27,7 @@ var _ contexts.Hook = (*EngineHook)(nil)
27
var durationHistogram = promauto.NewHistogram(prometheus.HistogramOpts{
28
Namespace: "db",
29
Subsystem: "client",
30
- Name: "operation.duration",
+ Name: "operation_duration_seconds",
31
Help: "Duration of database client operations.",
32
// ConstLabels: prometheus.Labels{"db.system.name": BuilderDialect()}, //TODO: add type of database per spec.
33
})
routers/common/middleware_test.go
@@ -1,3 +1,6 @@
1
+// Copyright 2025 The Gitea Authors. All rights reserved.
2
+// SPDX-License-Identifier: MIT
3
+
4
package common
5
6
import (
0 commit comments