mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-20 23:28:28 +02:00
add copyright info and unit
This commit is contained in:
parent
0e501fee11
commit
c02ac93968
@ -27,7 +27,7 @@ var _ contexts.Hook = (*EngineHook)(nil)
|
|||||||
var durationHistogram = promauto.NewHistogram(prometheus.HistogramOpts{
|
var durationHistogram = promauto.NewHistogram(prometheus.HistogramOpts{
|
||||||
Namespace: "db",
|
Namespace: "db",
|
||||||
Subsystem: "client",
|
Subsystem: "client",
|
||||||
Name: "operation.duration",
|
Name: "operation_duration_seconds",
|
||||||
Help: "Duration of database client operations.",
|
Help: "Duration of database client operations.",
|
||||||
// ConstLabels: prometheus.Labels{"db.system.name": BuilderDialect()}, //TODO: add type of database per spec.
|
// ConstLabels: prometheus.Labels{"db.system.name": BuilderDialect()}, //TODO: add type of database per spec.
|
||||||
})
|
})
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
// Copyright 2025 The Gitea Authors. All rights reserved.
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
package common
|
package common
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user