0
0
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:
TheFox0x7 2025-07-08 17:14:28 +02:00
parent 0e501fee11
commit c02ac93968
No known key found for this signature in database
GPG Key ID: 6CA33903484AF7C2
2 changed files with 4 additions and 1 deletions

View File

@ -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.
}) })

View File

@ -1,3 +1,6 @@
// Copyright 2025 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package common package common
import ( import (