Skip to content

Commit c02ac93

Browse files
committed
add copyright info and unit
1 parent 0e501fe commit c02ac93

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

models/db/engine_hook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var _ contexts.Hook = (*EngineHook)(nil)
2727
var durationHistogram = promauto.NewHistogram(prometheus.HistogramOpts{
2828
Namespace: "db",
2929
Subsystem: "client",
30-
Name: "operation.duration",
30+
Name: "operation_duration_seconds",
3131
Help: "Duration of database client operations.",
3232
// ConstLabels: prometheus.Labels{"db.system.name": BuilderDialect()}, //TODO: add type of database per spec.
3333
})

routers/common/middleware_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2025 The Gitea Authors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
package common
25

36
import (

0 commit comments

Comments
 (0)